PHP 클래스 BookStack\Services\SocialAuthService

파일 보기 프로젝트 열기: ssddanbrown/bookstack 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$socialAccount
$socialite
$userRepo
$validSocialDrivers

공개 메소드들

메소드 설명
__construct ( UserRepo $userRepo, Laravel\Socialite\Contracts\Factory $socialite, SocialAccount $socialAccount ) SocialAuthService constructor.
detachSocialAccount ( $socialDriver ) : Illuminate\Http\RedirectResponse | Redirector Detach a social account from a user.
fillSocialAccount ( string $socialDriver, Laravel\Socialite\Contracts\User $socialUser ) : SocialAccount
getActiveDrivers ( ) : array Gets the names of the active social drivers.
handleLoginCallback ( $socialDriver ) : Illuminate\Http\RedirectResponse | Redirector Handle the login process on a oAuth callback.
handleRegistrationCallback ( $socialDriver ) : Laravel\Socialite\Contracts\User Handle the social registration process on callback.
startLogIn ( string $socialDriver ) : RedirectResponse Start the social login path.
startRegister ( string $socialDriver ) : RedirectResponse Start the social registration process

비공개 메소드들

메소드 설명
checkDriverConfigured ( $driver ) : boolean Check a social driver has been configured correctly.
logUserIn ( $user )
validateDriver ( $socialDriver ) : string Ensure the social driver is correct and supported.

메소드 상세

__construct() 공개 메소드

SocialAuthService constructor.
public __construct ( UserRepo $userRepo, Laravel\Socialite\Contracts\Factory $socialite, SocialAccount $socialAccount )
$userRepo BookStack\Repos\UserRepo
$socialite Laravel\Socialite\Contracts\Factory
$socialAccount BookStack\SocialAccount

detachSocialAccount() 공개 메소드

Detach a social account from a user.
public detachSocialAccount ( $socialDriver ) : Illuminate\Http\RedirectResponse | Redirector
$socialDriver
리턴 Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

fillSocialAccount() 공개 메소드

public fillSocialAccount ( string $socialDriver, Laravel\Socialite\Contracts\User $socialUser ) : SocialAccount
$socialDriver string
$socialUser Laravel\Socialite\Contracts\User
리턴 BookStack\SocialAccount

getActiveDrivers() 공개 메소드

Gets the names of the active social drivers.
public getActiveDrivers ( ) : array
리턴 array

handleLoginCallback() 공개 메소드

Handle the login process on a oAuth callback.
public handleLoginCallback ( $socialDriver ) : Illuminate\Http\RedirectResponse | Redirector
$socialDriver
리턴 Illuminate\Http\RedirectResponse | Illuminate\Routing\Redirector

handleRegistrationCallback() 공개 메소드

Handle the social registration process on callback.
public handleRegistrationCallback ( $socialDriver ) : Laravel\Socialite\Contracts\User
$socialDriver
리턴 Laravel\Socialite\Contracts\User

startLogIn() 공개 메소드

Start the social login path.
public startLogIn ( string $socialDriver ) : RedirectResponse
$socialDriver string
리턴 Symfony\Component\HttpFoundation\RedirectResponse

startRegister() 공개 메소드

Start the social registration process
public startRegister ( string $socialDriver ) : RedirectResponse
$socialDriver string
리턴 Symfony\Component\HttpFoundation\RedirectResponse

프로퍼티 상세

$socialAccount 보호되어 있는 프로퍼티

protected $socialAccount

$socialite 보호되어 있는 프로퍼티

protected $socialite

$userRepo 보호되어 있는 프로퍼티

protected $userRepo

$validSocialDrivers 보호되어 있는 프로퍼티

protected $validSocialDrivers