class LoggingAspect (View source)

An aspect which centralizes the logging of security relevant actions.

Properties

protected LoggerInterface $securityLogger
protected bool $alreadyLoggedAuthenticateCall

Methods

mixed
logManagerAuthenticate(JoinPointInterface $joinPoint)

Logs calls and results of the authenticate() method of the Authentication Manager

mixed
logManagerLogout(JoinPointInterface $joinPoint)

Logs calls and results of the logout() method of the Authentication Manager

array
reduceTokenToAccountIdentifier(array $collectedIdentifiers, TokenInterface $token)

No description

mixed
logPersistedUsernamePasswordProviderAuthenticate(JoinPointInterface $joinPoint)

Logs calls and results of the authenticate() method of an authentication provider

void
logJoinPointAccessDecisions(JoinPointInterface $joinPoint)

Logs calls and result of vote() for method privileges

void
logPrivilegeAccessDecisions(JoinPointInterface $joinPoint)

Logs calls and result of isPrivilegeTargetGranted()

array

Details

mixed logManagerAuthenticate(JoinPointInterface $joinPoint)

Logs calls and results of the authenticate() method of the Authentication Manager

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

mixed

The result of the target method if it has not been intercepted

Exceptions

Exception

mixed logManagerLogout(JoinPointInterface $joinPoint)

Logs calls and results of the logout() method of the Authentication Manager

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

mixed

The result of the target method if it has not been intercepted

protected array reduceTokenToAccountIdentifier(array $collectedIdentifiers, TokenInterface $token)

No description

Parameters

array $collectedIdentifiers
TokenInterface $token

Return Value

array

mixed logPersistedUsernamePasswordProviderAuthenticate(JoinPointInterface $joinPoint)

Logs calls and results of the authenticate() method of an authentication provider

Parameters

JoinPointInterface $joinPoint

The current joinpoint

Return Value

mixed

The result of the target method if it has not been intercepted

void logJoinPointAccessDecisions(JoinPointInterface $joinPoint)

Logs calls and result of vote() for method privileges

Parameters

JoinPointInterface $joinPoint

Return Value

void

void logPrivilegeAccessDecisions(JoinPointInterface $joinPoint)

Logs calls and result of isPrivilegeTargetGranted()

Parameters

JoinPointInterface $joinPoint

Return Value

void

protected array getLogEnvironmentFromJoinPoint(JoinPointInterface $joinPoint)

No description

Parameters

JoinPointInterface $joinPoint

Return Value

array