cesarga/socialite-clio is a Laravel package for clio oauth2 provider for laravel socialite.
It currently has 0 GitHub stars and 278 downloads on Packagist (latest version v1.0.0).
Install it with composer require cesarga/socialite-clio.
Discover more Laravel packages by cesarga
or browse all Laravel packages to compare alternatives.
Last updated
Clio OAuth2 Provider for Laravel Socialite.
composer require cesarga/socialite-clio
app/Providers/EventServiceProvider.php
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
// ...
'SocialiteProviders\\Manager\\SocialiteWasCalled' => [
'SocialiteProviders\\Clio\\ClioExtendSocialite@handle',
],
// ...
];
config/services.php
return [
// ...
'clio' => [
'base_url' => env('CLIO_BASE_URL', 'https://app.clio.com'),
'client_id' => env('CLIO_APP_KEY'),
'client_secret' => env('CLIO_APP_SECRET'),
'redirect' => env('CLIO_APP_REDIRECT'),
],
// ...
];
.env
CLIO_BASE_URL=https://eu.app.clio.com
CLIO_APP_KEY=C8dEOljM3EHMK6h4Em8DkmZuzovW6R4JcW06RcMH
CLIO_APP_SECRET=R1bOno3oEt9qUoCYm7vlIKylfJ1nD1OJY0Jc3WVT
CLIO_APP_REDIRECT=http://laravel.local/oauth/clio/callback
return Socialite::driver('clio')->redirect();