alternatelife/portal-socialite-provider

Alternate-Life Portal OAuth2 Provider for Laravel Socialite

1.0.1 2019-07-15 20:21 UTC

README

Alternate-Life Portal OAuth2 Provider for Laravel Socialite

Install

composer require alternatelife/portal-socialite-provider

Register

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        'AlternateLife\Socialite\Portal\AlternateLifeExtendSocialite@handle'
    ],
];

Configure

'alternatelife' => [
    'client_id'     => env('ALTERNATELIFE_KEY'),
    'client_secret' => env('ALTERNATELIFE_SECRET'),
    'redirect'      => env('ALTERNATELIFE_REDIRECT_URI'),
]

Start building

return Socialite::with('alternatelife')->redirect();