From 46934e278ce69ddbe5f5e3143b438f6f6f2776ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Fri, 13 Nov 2026 16:21:04 +0100 Subject: [PATCH] fix: log authorization denials on the auth channel --- src/EventListener/AuthorizationCodeListener.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EventListener/AuthorizationCodeListener.php b/src/EventListener/AuthorizationCodeListener.php index a0aa44b5..1109253d 100644 --- a/src/EventListener/AuthorizationCodeListener.php +++ b/src/EventListener/AuthorizationCodeListener.php @@ -39,7 +39,7 @@ class AuthorizationCodeListener private readonly UrlGeneratorInterface $urlGenerator, private readonly RequestStack $requestStack, private readonly Security $security, - private readonly LoggerInterface $authenticationLogger, + private readonly LoggerInterface $authLogger, private readonly Environment $twig, ) { } @@ -62,7 +62,7 @@ class AuthorizationCodeListener Response::HTTP_TEMPORARY_REDIRECT ); $event->setResponse($response); - $this->authenticationLogger->info('Authorization request without session'); + $this->authLogger->info('Authorization request without session'); return; } @@ -126,7 +126,7 @@ class AuthorizationCodeListener array $required, string $reason, ): void { - $this->authenticationLogger->info('Authorization request denied', [ + $this->authLogger->info('Authorization request denied', [ 'client' => $client, 'user_id' => $user->getId(), 'required_roles' => $required,