PHP 클래스 BookStack\Providers\LdapUserProvider

상속: implements Illuminate\Contracts\Auth\UserProvider
파일 보기 프로젝트 열기: ssddanbrown/bookstack

보호된 프로퍼티들

프로퍼티 타입 설명
$ldapService BookStack\Services\LdapService
$model string The user model.

공개 메소드들

메소드 설명
__construct ( $model, LdapService $ldapService ) LdapUserProvider constructor.
createModel ( ) : Model Create a new instance of the model.
retrieveByCredentials ( array $credentials ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieve a user by the given credentials.
retrieveById ( mixed $identifier ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieve a user by their unique identifier.
retrieveByToken ( mixed $identifier, string $token ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieve a user by their unique identifier and "remember me" token.
updateRememberToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) : void Update the "remember me" token for the given user in storage.
validateCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, array $credentials ) : boolean Validate a user against the given credentials.

메소드 상세

__construct() 공개 메소드

LdapUserProvider constructor.
public __construct ( $model, LdapService $ldapService )
$model
$ldapService BookStack\Services\LdapService

createModel() 공개 메소드

Create a new instance of the model.
public createModel ( ) : Model
리턴 Illuminate\Database\Eloquent\Model

retrieveByCredentials() 공개 메소드

Retrieve a user by the given credentials.
public retrieveByCredentials ( array $credentials ) : Illuminate\Contracts\Auth\Authenticatable | null
$credentials array
리턴 Illuminate\Contracts\Auth\Authenticatable | null

retrieveById() 공개 메소드

Retrieve a user by their unique identifier.
public retrieveById ( mixed $identifier ) : Illuminate\Contracts\Auth\Authenticatable | null
$identifier mixed
리턴 Illuminate\Contracts\Auth\Authenticatable | null

retrieveByToken() 공개 메소드

Retrieve a user by their unique identifier and "remember me" token.
public retrieveByToken ( mixed $identifier, string $token ) : Illuminate\Contracts\Auth\Authenticatable | null
$identifier mixed
$token string
리턴 Illuminate\Contracts\Auth\Authenticatable | null

updateRememberToken() 공개 메소드

Update the "remember me" token for the given user in storage.
public updateRememberToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) : void
$user Illuminate\Contracts\Auth\Authenticatable
$token string
리턴 void

validateCredentials() 공개 메소드

Validate a user against the given credentials.
public validateCredentials ( Illuminate\Contracts\Auth\Authenticatable $user, array $credentials ) : boolean
$user Illuminate\Contracts\Auth\Authenticatable
$credentials array
리턴 boolean

프로퍼티 상세

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

protected LdapService,BookStack\Services $ldapService
리턴 BookStack\Services\LdapService

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

The user model.
protected string $model
리턴 string