PHP Interface Neos\Flow\Security\Authentication\AuthenticationManagerInterface

Has to add a TokenInterface to the security context Might set a UserDetailsService, RequestPattern and AuthenticationEntryPoint (from configuration).
显示文件 Open project: neos/flow-development-collection Interface Usage Examples

Public Methods

Method Description
authenticate ( ) : void Tries to authenticate the tokens in the security context, if needed.
getProviders ( ) : array Returns all configured authentication providers
getSecurityContext ( ) : Context Returns the security context
getTokens ( ) : array Returns the tokens this manager is responsible for.
isAuthenticated ( ) : boolean Checks if at least one token is authenticated
logout ( ) : void Logs all active authentication tokens out
setSecurityContext ( Context $securityContext ) : void Sets the security context

Method Details

authenticate() public method

(Have a look at the Authentication\TokenManager for an implementation example)
public authenticate ( ) : void
return void

getProviders() public method

Returns all configured authentication providers
public getProviders ( ) : array
return array Array of \Neos\Flow\Security\Authentication\AuthenticationProviderInterface

getSecurityContext() public method

Returns the security context
public getSecurityContext ( ) : Context
return Neos\Flow\Security\Context $securityContext The security context of the current request

getTokens() public method

Note: The order of the tokens in the array is important, as the tokens will be authenticated in the given order.
public getTokens ( ) : array
return array

isAuthenticated() public method

Checks if at least one token is authenticated
public isAuthenticated ( ) : boolean
return boolean

logout() public method

Logs all active authentication tokens out
public logout ( ) : void
return void

setSecurityContext() public method

Sets the security context
public setSecurityContext ( Context $securityContext ) : void
$securityContext Neos\Flow\Security\Context The security context of the current request
return void