Property | Type | Description | |
---|---|---|---|
$socialAccount | |||
$socialite | |||
$userRepo | |||
$validSocialDrivers |
Method | Description | |
---|---|---|
__construct ( |
SocialAuthService constructor. | |
detachSocialAccount ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
Detach a social account from a user. | |
fillSocialAccount ( string $socialDriver, Laravel\Socialite\Contracts\User $socialUser ) : |
||
getActiveDrivers ( ) : array | Gets the names of the active social drivers. | |
handleLoginCallback ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
Handle the login process on a oAuth callback. | |
handleRegistrationCallback ( $socialDriver ) : Laravel\Socialite\Contracts\User | Handle the social registration process on callback. | |
startLogIn ( string $socialDriver ) : |
Start the social login path. | |
startRegister ( string $socialDriver ) : |
Start the social registration process |
Method | Description | |
---|---|---|
checkDriverConfigured ( $driver ) : boolean | Check a social driver has been configured correctly. | |
logUserIn ( $user ) | ||
validateDriver ( $socialDriver ) : string | Ensure the social driver is correct and supported. |
public __construct ( |
||
$userRepo | ||
$socialite | Laravel\Socialite\Contracts\Factory | |
$socialAccount |
public detachSocialAccount ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
||
$socialDriver | ||
return | Illuminate\Http\RedirectResponse | |
public fillSocialAccount ( string $socialDriver, Laravel\Socialite\Contracts\User $socialUser ) : |
||
$socialDriver | string | |
$socialUser | Laravel\Socialite\Contracts\User | |
return |
public getActiveDrivers ( ) : array | ||
return | array |
public handleLoginCallback ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
||
$socialDriver | ||
return | Illuminate\Http\RedirectResponse | |
public handleRegistrationCallback ( $socialDriver ) : Laravel\Socialite\Contracts\User | ||
$socialDriver | ||
return | Laravel\Socialite\Contracts\User |
public startLogIn ( string $socialDriver ) : |
||
$socialDriver | string | |
return |
public startRegister ( string $socialDriver ) : |
||
$socialDriver | string | |
return |