Skip to content

Commit

Permalink
Make name of the identifier attribute set in config visible in the er…
Browse files Browse the repository at this point in the history
…ror message
  • Loading branch information
cicnavi committed Jan 31, 2025
1 parent 5039390 commit a6f1f9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Services/AuthenticationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ public function getAuthenticateUser(
if (!array_key_exists($this->userIdAttr, $claims) || !is_array($claims[$this->userIdAttr])) {
$attr = implode(', ', array_keys($claims));
throw new Error\Exception(
'Attribute `useridattr` doesn\'t exists in claims. Available attributes are: ' . $attr,
sprintf(
'User identifier attribute `%s` does not exist in the user attribute state.' .
' Available attributes are: %s.',
$this->userIdAttr,
$attr,
),
);
}

Expand Down

0 comments on commit a6f1f9e

Please sign in to comment.