Documentation

ApiAuthenticationService
in package
implements AuthenticationServiceInterface

Table of Contents

Interfaces

AuthenticationServiceInterface

Properties

$adapter  : ApiUserAdapter
$identity  : ApiUser|null
The identity is only persisted for one request.

Methods

__construct()  : mixed
authenticate()  : Result
Authenticates against the authentication adapter. The default values must be `null` to be compatible with the `AuthenticationServiceInterface`.
clearIdentity()  : void
Clears the identity.
getAdapter()  : ApiUserAdapter
Returns the authentication adapter.
getIdentity()  : ApiUser|null
Returns the authenticated ApiUser or null if no identity is available.
hasIdentity()  : bool
Returns true if and only if an identity is available.
setAdapter()  : self
Sets the authentication adapter.

Properties

Methods

authenticate()

Authenticates against the authentication adapter. The default values must be `null` to be compatible with the `AuthenticationServiceInterface`.

public authenticate([string|null $token = null ]) : Result
Parameters
$token : string|null = null
Return values
Result

hasIdentity()

Returns true if and only if an identity is available.

public hasIdentity() : bool
Return values
bool

        
On this page

Search results