JWT tokens with regular webapp aplication

Hello.
I’m building a project using django and django-rest that consists of several API (each API is required for a different type of data).
I need to use auth0 for 2 parts of my code and seem to have trouble with it.
These are the parts I need help with

  1. I need to login/register a user with specific scopes and get an access token including his scopes for it.
  2. When a user makes a request to the API I need to authenticate the user using the above token
  3. When a user logs out I need to disable the token.

So far I had success registering and login but I can’t seem to pass the scopes I want to a user.
I based my code on the django tutorial along with the django rest tutorial



Thanks in advance for any help/suggestion
2 Likes

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?