interface AuthenticationManagerInterface (View source)

Contract for an authentication manager.

Has to add a TokenInterface to the security context Might set a UserDetailsService, RequestPattern and AuthenticationEntryPoint (from configuration).

Methods

getSecurityContext()

Returns the security context

void
authenticate()

Tries to authenticate the tokens in the security context, if needed.

bool
isAuthenticated()

Checks if at least one token is authenticated

void
logout()

Logs all active authentication tokens out

Details

Context getSecurityContext()

Returns the security context

Return Value

Context

$securityContext The security context of the current request

void authenticate()

Tries to authenticate the tokens in the security context, if needed.

(Have a look at the Authentication\TokenManager for an implementation example)

bool isAuthenticated()

Checks if at least one token is authenticated

Return Value

bool

void logout()

Logs all active authentication tokens out

Return Value

void