Auth0 Home Blog Docs

Unauthorized Response when Testing Django API

auth0
django

#1

I went through the Django API authorization tutorial, and everything works except when I have to use my token to assess my endpoint I receive a Unauthorized response. When I don’t use a token I get the expected response of needing a token.


#2

:wave: @popare were you following this tutorial here Django API: Authorization? And you getting a 401 error?

How are you testing the token? Are you calling the API from an SPA, Machine-to-Machine application, etc? Can you share a bit more details about how you are getting the token and using it?