AuthenticationManagerInterface
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
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
void
logout()
Logs all active authentication tokens out