pinweb / socialite-tjad
Tjad OAuth2 Provider for Laravel Socialite
v2.1.2
2023-11-17 07:36 UTC
Requires
- php: >=5.5.9
- socialiteproviders/manager: ~2.0 || ~3.0 || ~4.0
This package is auto-updated.
Last update: 2024-12-24 01:31:52 UTC
README
composer require pinweb/socialite-tjad
Add provider event listener
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 'SocialiteProviders\\Tjad\\TjadExtendSocialite@handle', ], ];
Configuration
Add configuration to config/services.php
'tjad' => [ 'client_id' => env('CLIENT_ID'), 'client_secret' => env('CLIENT_SECRET'), 'redirect' => env('REDIRECT'), 'passport_url' => env('PASSPORT_URL') ],
Usage
return Socialite::driver('tjad')->redirect();