A Worksome provider for Laravel Socialite
Via Composer
composer require worksome/socialitePlease see the Base Installation Guide, then follow the provider specific instructions below.
'worksome' => [
'client_id' => env('WORKSOME_CLIENT_ID'),
'client_secret' => env('WORKSOME_CLIENT_SECRET'),
'redirect' => env('WORKSOME_REDIRECT_URI'),
// Optional
'auth_uri' => env('WORKSOME_AUTH_URI', 'https://use.worksome.com'),
'auth_redirect_uri' => env('WORKSOME_AUTH_REDIRECT_URI', 'https://use.worksome.com'),
],Configure the package's listener to listen for SocialiteWasCalled events.
Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// ... other providers
\Worksome\Socialite\WorksomeExtendSocialite::class,
],
];You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('worksome')->redirect();id: The id of the authenticated username: The name of the authenticated useremail: The email address of the authenticated user
Please see GitHub Releases for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.