PHP Class Owl\Authenticate\Driver\OwlUserProvider

Inheritance: implements Illuminate\Contracts\Auth\UserProvider
Show file Open project: owl/owl

Protected Properties

Property Type Description
$userService Owl\Services\UserService

Public Methods

Method Description
__construct ( UserService $userService ) Create constructor.
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 unique identifer.
retrieveByToken ( mixed $identifier, string $token ) : Illuminate\Contracts\Auth\Authenticatable | null Retrieve a user by unique token and identifier.
updateRememberToken ( Illuminate\Contracts\Auth\Authenticatable $user, string $token ) 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.

Protected Methods

Method Description
getOwlUser ( mixed $user ) : Owl\Authenticate\Driver\OwlUser | null Get the owl user.

Method Details

__construct() public method

Create constructor.
public __construct ( UserService $userService )
$userService Owl\Services\UserService

getOwlUser() protected method

Get the owl user.
protected getOwlUser ( mixed $user ) : Owl\Authenticate\Driver\OwlUser | null
$user mixed
return Owl\Authenticate\Driver\OwlUser | null

retrieveByCredentials() public method

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

retrieveById() public method

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

retrieveByToken() public method

Retrieve a user by unique token and identifier.
public retrieveByToken ( mixed $identifier, string $token ) : Illuminate\Contracts\Auth\Authenticatable | null
$identifier mixed
$token string
return Illuminate\Contracts\Auth\Authenticatable | null

updateRememberToken() public method

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

validateCredentials() public method

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

Property Details

$userService protected property

protected UserService,Owl\Services $userService
return Owl\Services\UserService