katzen48 / socialite-sso
SSO OAuth2 Provider for Laravel Socialite
Installs: 41
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/katzen48/socialite-sso
Requires
- php: ^8.0
- ext-json: *
- socialiteproviders/manager: ^4.4
This package is auto-updated.
Last update: 2025-09-18 19:09:02 UTC
README
composer require katzen48/socialite-sso
Add configuration to config/services.php
'sso' => [ 'client_id' => env('SSO_CLIENT_ID'), 'client_secret' => env('SSO_CLIENT_SECRET'), 'redirect' => env('SSO_REDIRECT_URI') ],
Add provider event listener
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 = [ \Katzen48\Socialite\SSO\SocialiteWasCalled::class => [ // ... other providers \Katzen48\Socialite\SSO\SSOExtendSocialite::class.'@handle', ], ];
Usage
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('sso')->redirect();