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 am already using rest_framework.authtoken in an api, I wondered if it's possible to use this instead of username and password, to then get a time-limited JWT with a certain scope.
I can see that TokenObtainSerializer.validate calls Django's authenticate but rest_framework.authtoken isn't a part of this so it doesn't work. I am not sure the best way to go about this, should I just overwrite TokenObtainSerializer.validate to not call Django's authenticate?
The text was updated successfully, but these errors were encountered:
I am already using
rest_framework.authtoken
in an api, I wondered if it's possible to use this instead of username and password, to then get a time-limited JWT with a certain scope.I can see that
TokenObtainSerializer.validate
calls Django'sauthenticate
butrest_framework.authtoken
isn't a part of this so it doesn't work. I am not sure the best way to go about this, should I just overwriteTokenObtainSerializer.validate
to not call Django'sauthenticate
?The text was updated successfully, but these errors were encountered: