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
- I need to login/register a user with specific scopes and get an access token including his scopes for it.
- When a user makes a request to the API I need to authenticate the user using the above token
- 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