PHP Интерфейс Neos\Flow\Security\Authentication\AuthenticationManagerInterface

Has to add a TokenInterface to the security context Might set a UserDetailsService, RequestPattern and AuthenticationEntryPoint (from configuration).
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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

Описание методов

authenticate() публичный Метод

(Have a look at the Authentication\TokenManager for an implementation example)
public authenticate ( ) : void
Результат void

getProviders() публичный Метод

Returns all configured authentication providers
public getProviders ( ) : array
Результат array Array of \Neos\Flow\Security\Authentication\AuthenticationProviderInterface

getSecurityContext() публичный Метод

Returns the security context
public getSecurityContext ( ) : Context
Результат Neos\Flow\Security\Context $securityContext The security context of the current request

getTokens() публичный Метод

Note: The order of the tokens in the array is important, as the tokens will be authenticated in the given order.
public getTokens ( ) : array
Результат array

isAuthenticated() публичный Метод

Checks if at least one token is authenticated
public isAuthenticated ( ) : boolean
Результат boolean

logout() публичный Метод

Logs all active authentication tokens out
public logout ( ) : void
Результат void

setSecurityContext() публичный Метод

Sets the security context
public setSecurityContext ( Context $securityContext ) : void
$securityContext Neos\Flow\Security\Context The security context of the current request
Результат void