You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
 
 
 
 

21 lines
576 B

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Laravel\Socialite\Contracts\Factory;
class SocialiteKainooSSOServiceProvider extends ServiceProvider
{
public function boot()
{
$socialite = $this->app->make('Laravel\Socialite\Contracts\Factory');
$socialite->extend(
'kainoo-sso',
function ($app) use ($socialite) {
$config = config('services.kainoo-sso');
return $socialite->buildProvider(SocialiteKainooSSOProvider::class, $config);
}
);
}
}