PHP Трейт Adldap\Laravel\Traits\AuthenticatesUsers

Наследование: use trait UsesAdldap
Показать файл Открыть проект

Открытые методы

Метод Описание
getLoginUsernameFromUser ( User $user ) : string Retrieves the configured login username from the LDAP user.
retrieveByCredentials ( array $credentials = [] ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieves an LDAP user by their credentials.

Защищенные методы

Метод Описание
authenticate ( string $username, string $password ) : boolean Authenticates a user against our default LDAP connection.
getLoginAttribute ( ) : string Returns the configured login attribute for authenticating users.
getLoginFallback ( ) : boolean Retrieves the Adldap login fallback option for falling back to the local database if AD authentication fails.
getPasswordFromCredentials ( array $credentials = [] ) : string Returns the configured users password from the credentials array.
getPasswordKey ( ) : mixed Returns the password key to retrieve the password from the user input array.
getUsernameAttribute ( ) : array Returns the configured username attribute for discovering LDAP users.
getUsernameFromCredentials ( array $credentials = [] ) : string Returns the username from the specified credentials.
getUsernameKey ( ) : string Returns the configured username key.
getUsernameValue ( ) : string Returns the configured username value.
handleAuthenticatedModelTrashed ( User $user, Illuminate\Contracts\Auth\Authenticatable $model ) : void Handle an authenticated users model that has been soft deleted.
handleAuthenticatedWithCredentials ( User $user, Illuminate\Contracts\Auth\Authenticatable $model ) : void Handle an authenticated LDAP user with their model.
handleDiscoveredUserWithCredentials ( User $user ) : void Handle discovered LDAP users before they are authenticated.
isConnected ( ) : boolean Checks if we're currently connected to our configured LDAP server.

Описание методов

authenticate() защищенный Метод

Authenticates a user against our default LDAP connection.
protected authenticate ( string $username, string $password ) : boolean
$username string
$password string
Результат boolean

getLoginAttribute() защищенный Метод

Returns the configured login attribute for authenticating users.
protected getLoginAttribute ( ) : string
Результат string

getLoginFallback() защищенный Метод

Retrieves the Adldap login fallback option for falling back to the local database if AD authentication fails.
protected getLoginFallback ( ) : boolean
Результат boolean

getLoginUsernameFromUser() публичный Метод

Retrieves the configured login username from the LDAP user.
public getLoginUsernameFromUser ( User $user ) : string
$user Adldap\Models\User
Результат string

getPasswordFromCredentials() защищенный Метод

Returns the configured users password from the credentials array.
protected getPasswordFromCredentials ( array $credentials = [] ) : string
$credentials array
Результат string

getPasswordKey() защищенный Метод

Returns the password key to retrieve the password from the user input array.
protected getPasswordKey ( ) : mixed
Результат mixed

getUsernameAttribute() защищенный Метод

Returns the configured username attribute for discovering LDAP users.
protected getUsernameAttribute ( ) : array
Результат array

getUsernameFromCredentials() защищенный Метод

Returns the username from the specified credentials.
protected getUsernameFromCredentials ( array $credentials = [] ) : string
$credentials array
Результат string

getUsernameKey() защищенный Метод

For example: 'email' or 'username'.
protected getUsernameKey ( ) : string
Результат string

getUsernameValue() защищенный Метод

For example: 'samaccountname' or 'mail'.
protected getUsernameValue ( ) : string
Результат string

handleAuthenticatedModelTrashed() защищенный Метод

Handle an authenticated users model that has been soft deleted.
protected handleAuthenticatedModelTrashed ( User $user, Illuminate\Contracts\Auth\Authenticatable $model ) : void
$user Adldap\Models\User
$model Illuminate\Contracts\Auth\Authenticatable
Результат void

handleAuthenticatedWithCredentials() защищенный Метод

Handle an authenticated LDAP user with their model.
protected handleAuthenticatedWithCredentials ( User $user, Illuminate\Contracts\Auth\Authenticatable $model ) : void
$user Adldap\Models\User
$model Illuminate\Contracts\Auth\Authenticatable
Результат void

handleDiscoveredUserWithCredentials() защищенный Метод

Handle discovered LDAP users before they are authenticated.
protected handleDiscoveredUserWithCredentials ( User $user ) : void
$user Adldap\Models\User
Результат void

isConnected() защищенный Метод

Checks if we're currently connected to our configured LDAP server.
protected isConnected ( ) : boolean
Результат boolean

retrieveByCredentials() публичный Метод

Retrieves an LDAP user by their credentials.
public retrieveByCredentials ( array $credentials = [] ) : Illuminate\Contracts\Auth\Authenticatable | null
$credentials array
Результат Illuminate\Contracts\Auth\Authenticatable | null