PHP Class 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
Inheritance: implements Neos\Flow\Security\Authorization\InterceptorInterface
Datei anzeigen Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$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

Public Methods

Method Description
__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

Protected Methods

Method Description
renderDecisionReasonMessage ( string $privilegeReasonMessage ) : string Returns a string message, giving insights what happened during privilege evaluation.

Method Details

__construct() public method

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() public method

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

renderDecisionReasonMessage() protected method

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

setJoinPoint() public method

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

Property Details

$authenticationManager protected_oe property

protected AuthenticationManagerInterface,Neos\Flow\Security\Authentication $authenticationManager
return Neos\Flow\Security\Authentication\AuthenticationManagerInterface

$joinPoint protected_oe property

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

$privilegeManager protected_oe property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
return Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$securityContext protected_oe property

protected Context,Neos\Flow\Security $securityContext
return Neos\Flow\Security\Context