Django Rest Framework Postman Token Authentication

I use Django Rest Framework token authentication, and if I do curl http://localhost:8000/api/v1/users/?format=json -H 'Authorization: Token 0a813fdcd3f8846d6fa376f2592bbc678b0b8e85' , everything works fine.

But when I try to achieve this using the Postman email client, nothing happens. What am I doing wrong?

enter image description here

+7
rest django curl django-rest-framework postman
source share
1 answer

You set the title to Authorization: Token when it really should be Authorization . The title is actually just Authorization , but the value is Token [token_string] , where [token_string] is the authorization token you received.

+12
source share

All Articles