zipzoft / laravel-id-socialite-provider
Zipzoft ID Provider
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 1 117
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- socialiteproviders/manager: ~4.0
This package is auto-updated.
Last update: 2023-08-22 14:56:34 UTC
README
Installation & Basic Usage
composer require zipzoft/laravel-id-socialite-provider
Add configuration to config/services.php
'zipzoft' => [ 'client_id' => env('CLIENT_ID'), 'client_secret' => env('CLIENT_SECRET'), 'redirect' => env('CLIENT_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
protected $listen = [ \SocialiteProviders\Manager\SocialiteWasCalled::class => [ // ... other providers \Zipzoft\ID\SocialiteProviderExtend::class, ], ];
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('zipzoft')->redirect();