kodular / kodular-socialite
There is no license information available for the latest version (v1.1.0) of this package.
Kodular OAuth2 Provider for Laravel Socialite
v1.1.0
2020-03-22 15:01 UTC
Requires
- php: ^7.2
- socialiteproviders/manager: ^3.0
This package is auto-updated.
Last update: 2022-02-15 12:56:39 UTC
README
Kodular Auth Provider for Laravel Socialite
Usage
Socialite::with('kodular')->redirect();
Development
Requirements
- PHP 7.2 or higher
- Laravel 6.0 or higher
Installation
- Add the repository to composer:
composer require kodular/kodular-socialite
- Add the
SocialiteWasCalled
toapp/Providers/EventServiceProvider.php
protected $listen = [ // a whole bunch of listeners \SocialiteProviders\Manager\SocialiteWasCalled::class => [ // add your listeners (aka providers) here 'SocialiteProviders\\Kodular\\KodularExtendSocialite@handle', ], ];
- Add the Kodular Auth settings to
config/services.php
'kodular' => [ 'client_id' => env('KODULAR_CLIENT_ID'), 'client_secret' => env('KODULAR_CLIENT_SECRET'), 'redirect' => env('KODULAR_REDIRECT_URI'), ],