feat: improved handling and logging of access denied errors

This commit is contained in:
Björn Fromme
2025-04-28 11:10:35 +02:00
parent aa708e491c
commit c37309b3c1
3 changed files with 29 additions and 12 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ class BpnAuthenticator extends AbstractLoginFormAuthenticator implements Authent
private readonly ApiClient $apiClient,
private readonly EntityManagerInterface $entityManager,
private readonly Crypt $crypt,
private readonly LoggerInterface $logger,
private readonly LoggerInterface $authLogger,
) {
}
@@ -106,7 +106,7 @@ class BpnAuthenticator extends AbstractLoginFormAuthenticator implements Authent
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
{
$this->logger->info('Login', [
$this->authLogger->info('Login', [
'email' => $token->getUserIdentifier(),
]);