I’m trying to integrate Auth0 with dj-rest-auth which is built on top of all-auth.
I correctly set the settings on Django Rest Framework side, but I’m unsure about:
- What should the url for
AUTH0_URL
be? Is it the same asdomain
from the Auth0 application? - I generated an
access_token
by setting up a machine to machine application in the Auth0 dashboard (is this the correctaccess_token
to use?)
Context for 1:
Setting the AUTH0_URL = domain
does not work for me, which always gives a 401, Unauthorized response to /userinfo
endpoint.
If I set it to api/v2/userinfo
, the request goes through but I always get a 404 response as {"statusCode":404,"error":"Not Found","message":"Not Found"}