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
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

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

Method Details

__construct() public méthode

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 méthode

Invokes the security interception
public invoke ( ) : boolean
Résultat boolean TRUE if the security checks was passed

renderDecisionReasonMessage() protected méthode

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

setJoinPoint() public méthode

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

Property Details

$authenticationManager protected_oe property

protected AuthenticationManagerInterface,Neos\Flow\Security\Authentication $authenticationManager
Résultat Neos\Flow\Security\Authentication\AuthenticationManagerInterface

$joinPoint protected_oe property

The current joinpoint
protected JoinPointInterface,Neos\Flow\Aop $joinPoint
Résultat Neos\Flow\Aop\JoinPointInterface

$privilegeManager protected_oe property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
Résultat Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$securityContext protected_oe property

protected Context,Neos\Flow\Security $securityContext
Résultat Neos\Flow\Security\Context