I cannot find any information about this issue anywhere online, so I'm going to put it here!
I'm using a frontend application which redirects to a custom auth_views.LoginView
on the backend (django-oauth-toolkit) with the client_id
, etc. I have all of this working. (I'm using implicit grant, btw).
The problem is when the user logs out, I use /o/revoke_token
, which successfully removes the token from the db. However, when the user will turn around and log back in, it never prompts them for their username/password again. The auth_views.LoginView
will give a 302 and redirect back to the frontend with a valid api_key
.
How can I prevent this? I want to prompt the user EVERY TIME they hit that page for their username/password. This way, they can log out and log back in with a different user, if necessary.