Skip to content

Commit b3e55c6

Browse files
committed
Merge branch 'master' into wip-version-6
2 parents b69583a + c568af5 commit b3e55c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Services/AuthenticationService.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,12 @@ public function getAuthenticateUser(
137137
if (!array_key_exists($this->userIdAttr, $claims) || !is_array($claims[$this->userIdAttr])) {
138138
$attr = implode(', ', array_keys($claims));
139139
throw new Error\Exception(
140-
'Attribute `useridattr` doesn\'t exists in claims. Available attributes are: ' . $attr,
140+
sprintf(
141+
'User identifier attribute `%s` does not exist in the user attribute state.' .
142+
' Available attributes are: %s.',
143+
$this->userIdAttr,
144+
$attr,
145+
),
141146
);
142147
}
143148

0 commit comments

Comments
 (0)