Skip to content

Commit

Permalink
[Security] Fix log message in OidcTokenHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
chalasr committed Jun 18, 2023
1 parent 7f35dd7 commit 36d2bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AccessToken/Oidc/OidcTokenHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getUserBadgeFrom(string $accessToken): UserBadge
// UserLoader argument can be overridden by a UserProvider on AccessTokenAuthenticator::authenticate
return new UserBadge($claims[$this->claim], fn () => $this->createUser($claims), $claims);
} catch (\Exception $e) {
$this->logger?->error('An error while decoding and validating the token.', [
$this->logger?->error('An error occurred while decoding and validating the token.', [
'error' => $e->getMessage(),
'trace' => $e->getTraceAsString(),
]);
Expand Down

0 comments on commit 36d2bdd

Please sign in to comment.