Interface ApiAuthInterface
Describe the methods that every API Auth Component should comply with API auth should be a token based authentication that uses 'access_token' and 'refresh_token'
Direct known implementers
Methods summary
public
array|boolean
|
|
public
boolean
|
#
authenticate( string $username, string $password, array $authGroupName = array() )
Authenticate a user based on username and password |
public
string|null
|
#
generateToken( )
Generate and return a new access_token If user is not identified/authenticated it returns null |
public
string|boolean
|
#
renewToken( string $refreshToken )
Renew an access_token using a refresh token If it fails then return false |
public
string|boolean
|
#
generateRefreshToken( )
Generate a refresh token to use for renew an access_token The refresh token should be saved in hash_jobs table If user is not identified/authenticated then return false |
public
boolean
|
#
revokeRefreshToken( string $refreshToken )
Revoke a refresh token If user is not identified/authenticated then return false |
public
string|boolean
|
|
public
integer
|
|
public
string
|
|
public
array
|
#
getUserSession( )
Return the user data it replaces BeAuthComponent::getUserSession() in API context |
public
array
|