question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Djoser jwt Authentication credentials were not provided.

See original GitHub issue

hello, i was able to create user and obtain tokens, but whenever i use them i get this response { "detail": "Authentication credentials were not provided." }

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

6reactions
mthnglaccommented, Apr 17, 2020

You have set the token name as JWT in the settings file, but you are sending a request as Token in the curl command, there is an error here. Send this line as a Header and problem will be resolved.

Authorization: JWT <your_token>

1reaction
saileshkush95commented, Apr 17, 2020

I’m also facing same problem, Here is my configurations files Screen Shot 2020-04-17 at 11 55 15 AM Screen Shot 2020-04-17 at 11 54 29 AM Screen Shot 2020-04-17 at 11 54 03 AM Screen Shot 2020-04-17 at 12 04 51 PM

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django Rest Framework - Authentication credentials were not ...
For me, I had to prepend my Authorization header with "JWT" instead of "Bearer" or "Token" on Django DRF. Then it started working....
Read more >
Authentication credentials were not provided - Development
I am getting bellow error when i calling this api api/user/v1/users Authentication credentials were not provided. As i tried both the method ...
Read more >
Authentication credentials were not provided. - Google Groups
I written api for registration, Login and then user profile. HTTP 401 Unauthorized Allow: OPTIONS, GET Content-Type: application/json Vary: Accept WWW- ...
Read more >
"detail": "Authentication credentials were not provided."
You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop...
Read more >
4 - Authentication and permissions - Django REST framework
Django, API, REST, 4 - Authentication and permissions. ... code="print(123)" { "detail": "Authentication credentials were not provided." }.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found