You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was following the guide for database-less user provider and needed to define an IRI.
I wanted to define the attribute "id" (which is an integer) from my class User as the user_identity_field.
Looks like it leads to an error in
Security/Authenticator/JWTAuthenticator.php line 113
$passport = new SelfValidatingPassport(
new UserBadge($payload[$idClaim],
function ($userIdentifier) use($payload) {
return $this->loadUser($payload, $userIdentifier);
})
);
and more particulary this line
new UserBadge($payload[$idClaim],
because the constructor of UserBadge require a string.
The text was updated successfully, but these errors were encountered:
Hi, Wish I read your post before figuring out the same on trial and error. It doesn't seem to be really a JWTAuthenticatorBundle issue but a Symfony issue. Thanks!
Hi !
I was following the guide for database-less user provider and needed to define an IRI.
I wanted to define the attribute "id" (which is an integer) from my class User as the user_identity_field.
Looks like it leads to an error in
Security/Authenticator/JWTAuthenticator.php line 113
and more particulary this line
because the constructor of UserBadge require a string.
The text was updated successfully, but these errors were encountered: