PHP 클래스 Neos\Flow\Security\Authentication\AuthenticationProviderManager

상속: implements Neos\Flow\Security\Authentication\AuthenticationManagerInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$isAuthenticated boolean
$providerResolver AuthenticationProviderResolver The provider resolver
$providers array
$requestPatternResolver Neos\Flow\Security\RequestPatternResolver The request pattern resolver
$securityContext Neos\Flow\Security\Context The security context of the current request
$securityLogger Neos\Flow\Log\SecurityLoggerInterface
$session Neos\Flow\Session\SessionInterface
$tokens array

공개 메소드들

메소드 설명
__construct ( AuthenticationProviderResolver $providerResolver, RequestPatternResolver $requestPatternResolver )
authenticate ( ) : void Tries to authenticate the tokens in the security context (in the given order) with the available authentication providers, if needed.
getProviders ( ) : array Returns all configured authentication providers
getSecurityContext ( ) : Context Returns the security context
getTokens ( ) : array Returns clean tokens this manager is responsible for.
injectSettings ( array $settings ) : void Inject the settings and does a fresh build of tokens based on the injected settings
isAuthenticated ( ) : boolean Checks if one or all tokens are authenticated (depending on the authentication strategy).
logout ( ) : void Logout all active authentication tokens
setSecurityContext ( Context $securityContext ) : void Sets the security context

보호된 메소드들

메소드 설명
buildProvidersAndTokensFromConfiguration ( array $providerConfigurations ) : void Builds the provider and token objects based on the given configuration
emitAuthenticatedToken ( Neos\Flow\Security\Authentication\TokenInterface $token ) : void Signals that the specified token has been successfully authenticated.
emitLoggedOut ( ) : void Signals that all active authentication tokens have been invalidated.

메소드 상세

__construct() 공개 메소드

public __construct ( AuthenticationProviderResolver $providerResolver, RequestPatternResolver $requestPatternResolver )
$providerResolver AuthenticationProviderResolver The provider resolver
$requestPatternResolver Neos\Flow\Security\RequestPatternResolver The request pattern resolver

authenticate() 공개 메소드

If the authentication strategy is set to "allTokens", all tokens have to be authenticated. If the strategy is set to "oneToken", only one token needs to be authenticated, but the authentication will stop after the first authenticated token. The strategy "atLeastOne" will try to authenticate at least one and as many tokens as possible.
public authenticate ( ) : void
리턴 void

buildProvidersAndTokensFromConfiguration() 보호된 메소드

Builds the provider and token objects based on the given configuration
protected buildProvidersAndTokensFromConfiguration ( array $providerConfigurations ) : void
$providerConfigurations array The configured provider settings
리턴 void

emitAuthenticatedToken() 보호된 메소드

Signals that the specified token has been successfully authenticated.
protected emitAuthenticatedToken ( Neos\Flow\Security\Authentication\TokenInterface $token ) : void
$token Neos\Flow\Security\Authentication\TokenInterface The token which has been authenticated
리턴 void

emitLoggedOut() 보호된 메소드

Note: the session will be destroyed after this signal has been emitted.
protected emitLoggedOut ( ) : 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 Array of TokenInterface this manager is responsible for

injectSettings() 공개 메소드

Inject the settings and does a fresh build of tokens based on the injected settings
public injectSettings ( array $settings ) : void
$settings array The settings
리턴 void

isAuthenticated() 공개 메소드

Will call authenticate() if not done before.
public isAuthenticated ( ) : boolean
리턴 boolean

logout() 공개 메소드

Logout all active authentication tokens
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

프로퍼티 상세

$isAuthenticated 보호되어 있는 프로퍼티

protected bool $isAuthenticated
리턴 boolean

$providerResolver 보호되어 있는 프로퍼티

The provider resolver
protected AuthenticationProviderResolver,Neos\Flow\Security\Authentication $providerResolver
리턴 AuthenticationProviderResolver

$providers 보호되어 있는 프로퍼티

protected array $providers
리턴 array

$requestPatternResolver 보호되어 있는 프로퍼티

The request pattern resolver
protected RequestPatternResolver,Neos\Flow\Security $requestPatternResolver
리턴 Neos\Flow\Security\RequestPatternResolver

$securityContext 보호되어 있는 프로퍼티

The security context of the current request
protected Context,Neos\Flow\Security $securityContext
리턴 Neos\Flow\Security\Context

$securityLogger 보호되어 있는 프로퍼티

protected SecurityLoggerInterface,Neos\Flow\Log $securityLogger
리턴 Neos\Flow\Log\SecurityLoggerInterface

$session 보호되어 있는 프로퍼티

protected SessionInterface,Neos\Flow\Session $session
리턴 Neos\Flow\Session\SessionInterface

$tokens 보호되어 있는 프로퍼티

protected array $tokens
리턴 array