HttpAuthentication
extends AbstractAuthentication
in package
Table of Contents
Properties
- $authenticatedUser : AbstractUser|null
- $impersonatedUser : AbstractUser|null
- $request : InputRequest|null
Methods
- __construct() : mixed
- AbstractAuthentication constructor
- authenticate() : void
- authenticateByToken() : void
- getAuthenticatedUser() : AbstractUser|null
- getAuthenticationToken() : string|null
- getImpersonatedUser() : AbstractUser|null
- getRequest() : InputRequest
- impersonate() : void
- impersonateByToken() : void
- isAuthenticated() : bool
- revoke() : void
- terminateImpersonation() : void
- getUserNameField() : string
Properties
$authenticatedUser
protected
AbstractUser|null
$authenticatedUser
= null
$impersonatedUser
protected
AbstractUser|null
$impersonatedUser
= null
$request
protected
InputRequest|null
$request
Methods
__construct()
AbstractAuthentication constructor
public
__construct([InputRequest|null $request = null ]) : mixed
Parameters
- $request : InputRequest|null = null
authenticate()
public
authenticate() : void
authenticateByToken()
public
authenticateByToken(string $token) : void
Parameters
- $token : string
getAuthenticatedUser()
public
getAuthenticatedUser() : AbstractUser|null
Return values
AbstractUser|nullgetAuthenticationToken()
public
getAuthenticationToken() : string|null
Return values
string|nullgetImpersonatedUser()
public
getImpersonatedUser() : AbstractUser|null
Return values
AbstractUser|nullgetRequest()
public
getRequest() : InputRequest
Return values
InputRequestimpersonate()
public
impersonate(AbstractUser $user) : void
Parameters
- $user : AbstractUser
impersonateByToken()
public
impersonateByToken(string $token) : void
Parameters
- $token : string
isAuthenticated()
public
isAuthenticated() : bool
Return values
boolrevoke()
public
revoke() : void
terminateImpersonation()
public
terminateImpersonation() : void
getUserNameField()
protected
getUserNameField() : string