-
-
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
JWT Token not found returned when user doesn't have roles #259
Comments
…s and quick fix according to lexik/LexikJWTAuthenticationBundle#259
Hi @tarlepp, Thank you for opening this issue. If anyone has an explanation for the presence of this check... |
@tarlepp Re-reading your issue, I'm afraid that your problem is not that your user doesn't have roles. In fact, the only way to run into a "JWT Not Found" response is that the token can't be found in the request. By default, we check for a |
@chalasr actually my tests spotted this one after I update this bundle. And I can easily to demonstrate that behaviour with my repo. If user doesn't have roles this error occurs, if user have at least one role all is ok. See my "quick" fix for this |
…s and quick fix according to lexik/LexikJWTAuthenticationBundle#259
With users that have none user roles attached I get 'JWT Token not found' when I'm making any API requests. It seems that
/jwt-authentication-bundle/Security/Guard/JWTTokenAuthenticator.php
/jwt-authentication-bundle/Security/Authentication/Token/JWTUserToken.php
Is causing the problem. Why are roles required on this case ?
The text was updated successfully, but these errors were encountered: