Skip to content
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

Bug found ... JWTTokenUserAuthentication vs JWTStatelessUserAuthentication #801

Open
williank opened this issue Feb 26, 2024 · 1 comment

Comments

@williank
Copy link

https://django-rest-framework-simplejwt.readthedocs.io/en/latest/stateless_user_authentication.html?highlight=JWTStatelessUserAuthentication#jwtstatelessuserauthentication-backend

Simple Jwt => v5.1.0 has renamed JWTTokenUserAuthentication to JWTStatelessUserAuthentication, but both names are supported for backwards compatibility

'DEFAULT_AUTHENTICATION_CLASSES': (
#'rest_framework_simplejwt.authentication.JWTStatelessUserAuthentication',
'rest_framework_simplejwt.authentication.JWTAuthentication',

if your using new name JWTStatelessUserAuthentication , djoser return all fields null of user serializer

@tomwojcik
Copy link
Contributor

Thank you for reporting the issue. I can't see why wouldn't it work, even after the change. Would you be able to provide a more elaborate example or write a failing test case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants