Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication credentials were not provided in new environment #187

Closed
juancresc opened this issue Dec 10, 2019 · 1 comment
Closed

Authentication credentials were not provided in new environment #187

juancresc opened this issue Dec 10, 2019 · 1 comment

Comments

@juancresc
Copy link

I'm having this odd issue. I'm using djangorestframework-simplejwt==4.3.0 in my project and everything works fine. I deployed to elasticbeanstalk and worked for many days ok. Now I suddenly started getting this:

{
"detail": "Authentication credentials were not provided."
}

In postman, the same version of my code, in one enviroment it works fine and in the other I got that error. I don't know where to start to debug this. Any hints?

I'm sending

Bearer {{token}} in Authorization header, as usual.

@juancresc
Copy link
Author

SOLVED BY adding this:
container_commands:
00_wsgipass:
command: 'echo "WSGIPassAuthorization On" >> ../wsgi.conf'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant