Auth0 Home Blog Docs

JWT tokens with regular webapp aplication

jwt
jwt-validation
jwtconfiguration
django

#1

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