Skip to content

Commit

Permalink
Merge pull request #3396 from robertlemke/task/security-log-level
Browse files Browse the repository at this point in the history
TASK: Adjust log level of authentication messages
  • Loading branch information
kitsunet authored Sep 26, 2024
2 parents 7cc9fb5 + 796d97a commit 7974d7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Neos.Flow/Classes/Security/Aspect/LoggingAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ public function logPersistedUsernamePasswordProviderAuthenticate(JoinPointInterf

switch ($token->getAuthenticationStatus()) {
case TokenInterface::AUTHENTICATION_SUCCESSFUL:
$this->securityLogger->notice(sprintf('Successfully authenticated token: %s', $token), $this->getLogEnvironmentFromJoinPoint($joinPoint));
$this->securityLogger->info(sprintf('Successfully authenticated token: %s', $token), $this->getLogEnvironmentFromJoinPoint($joinPoint));
$this->alreadyLoggedAuthenticateCall = true;
break;
case TokenInterface::WRONG_CREDENTIALS:
$this->securityLogger->warning(sprintf('Wrong credentials given for token: %s', $token), $this->getLogEnvironmentFromJoinPoint($joinPoint));
$this->securityLogger->notice(sprintf('Wrong credentials given for token: %s', $token), $this->getLogEnvironmentFromJoinPoint($joinPoint));
break;
case TokenInterface::NO_CREDENTIALS_GIVEN:
$this->securityLogger->warning(sprintf('No credentials given or no account found for token: %s', $token), $this->getLogEnvironmentFromJoinPoint($joinPoint));
$this->securityLogger->notice(sprintf('No credentials given or no account found for token: %s', $token), $this->getLogEnvironmentFromJoinPoint($joinPoint));
break;
}
}
Expand Down

0 comments on commit 7974d7f

Please sign in to comment.