-
-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lexik user_identity_field can't be the id (integer) #984
Comments
@worksfather If you can try using |
having the same issue here, any news ? Will it be supported in an upcoming release ? |
The fix has been released in https://github.com/lexik/LexikJWTAuthenticationBundle/releases/tag/v2.15.0 and v2.15.1 has been tagged meanwhile. Please open a new issue if you think you found a bug. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to implement JWT authentication with Symfony 6.0. I'm using Lexik and I want to use the database-less configuration. For that my user extends
JWTUserInterface
,PasswordAuthenticatedUserInterface
and I added the createFromPayload method as below.Then, as mentioned in the Lexik documentation here I set user_identity_field to id.
To authenticate the user, I use the phone as UserIdentifier. The authentication works fine. But when I then try to retrieve the usage data, I get the following error.
When I remove user_identifier from the Lexik configuration, I get the following error
I followed the Lexik documentation, so I think the problem must be with Symfony's Badge authentication system.
Does anyone have an idea on how I can solve the problem?
Thank you.
The text was updated successfully, but these errors were encountered: