Свойство | Type | Description | |
---|---|---|---|
$socialAccount | |||
$socialite | |||
$userRepo | |||
$validSocialDrivers |
Méthode | 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 |
Méthode | 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 | ||
Résultat | Illuminate\Http\RedirectResponse | |
public fillSocialAccount ( string $socialDriver, Laravel\Socialite\Contracts\User $socialUser ) : |
||
$socialDriver | string | |
$socialUser | Laravel\Socialite\Contracts\User | |
Résultat |
public getActiveDrivers ( ) : array | ||
Résultat | array |
public handleLoginCallback ( $socialDriver ) : Illuminate\Http\RedirectResponse | |
||
$socialDriver | ||
Résultat | Illuminate\Http\RedirectResponse | |
public handleRegistrationCallback ( $socialDriver ) : Laravel\Socialite\Contracts\User | ||
$socialDriver | ||
Résultat | Laravel\Socialite\Contracts\User |
public startLogIn ( string $socialDriver ) : |
||
$socialDriver | string | |
Résultat |
public startRegister ( string $socialDriver ) : |
||
$socialDriver | string | |
Résultat |