PHP 클래스 Neos\Flow\Security\Authorization\Interceptor\PolicyEnforcement

1. If authentication has not been performed (flag is set in the security context) the configured authentication manager is called to authenticate its tokens 2. If a AuthenticationRequired exception has been thrown we look for an authentication entry point in the active tokens to redirect to authentication 3. Then the configured AccessDecisionManager is called to authorize the request/action
상속: implements Neos\Flow\Security\Authorization\InterceptorInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$authenticationManager Neos\Flow\Security\Authentication\AuthenticationManagerInterface
$joinPoint Neos\Flow\Aop\JoinPointInterface The current joinpoint
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$securityContext Neos\Flow\Security\Context

공개 메소드들

메소드 설명
__construct ( Context $securityContext, Neos\Flow\Security\Authentication\AuthenticationManagerInterface $authenticationManager, Neos\Flow\Security\Authorization\PrivilegeManagerInterface $privilegeManager )
invoke ( ) : boolean Invokes the security interception
setJoinPoint ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void Sets the current joinpoint for this interception

보호된 메소드들

메소드 설명
renderDecisionReasonMessage ( string $privilegeReasonMessage ) : string Returns a string message, giving insights what happened during privilege evaluation.

메소드 상세

__construct() 공개 메소드

public __construct ( Context $securityContext, Neos\Flow\Security\Authentication\AuthenticationManagerInterface $authenticationManager, Neos\Flow\Security\Authorization\PrivilegeManagerInterface $privilegeManager )
$securityContext Neos\Flow\Security\Context The current security context
$authenticationManager Neos\Flow\Security\Authentication\AuthenticationManagerInterface The authentication manager
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface The access decision manager

invoke() 공개 메소드

Invokes the security interception
public invoke ( ) : boolean
리턴 boolean TRUE if the security checks was passed

renderDecisionReasonMessage() 보호된 메소드

Returns a string message, giving insights what happened during privilege evaluation.
protected renderDecisionReasonMessage ( string $privilegeReasonMessage ) : string
$privilegeReasonMessage string
리턴 string

setJoinPoint() 공개 메소드

Sets the current joinpoint for this interception
public setJoinPoint ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface The current joinpoint
리턴 void

프로퍼티 상세

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

protected AuthenticationManagerInterface,Neos\Flow\Security\Authentication $authenticationManager
리턴 Neos\Flow\Security\Authentication\AuthenticationManagerInterface

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

The current joinpoint
protected JoinPointInterface,Neos\Flow\Aop $joinPoint
리턴 Neos\Flow\Aop\JoinPointInterface

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

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
리턴 Neos\Flow\Security\Authorization\PrivilegeManagerInterface

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

protected Context,Neos\Flow\Security $securityContext
리턴 Neos\Flow\Security\Context