jpadilla / django-rest-framework-jwt

JSON Web Token Authentication support for Django REST Framework
http://jpadilla.github.io/django-rest-framework-jwt/
MIT License
3.19k stars 649 forks source link

Use JWT token auth for https api failed (return "Authentication credentials were not provided") #354

Closed lizeyan closed 7 years ago

lizeyan commented 7 years ago

When I just deploy this app with apache2 using http, it works fine. But after I set "SSLEngine on" in apache2, I can only access these apis in browser. Accesses via postman or python-requests or curl is all failed with the same error. image

serranoarevalo commented 7 years ago

Shouldn't the header be 'Authorization' instead of 'Authentication' ?

abijithmg commented 6 years ago

Add the following in apache httpd.conf file: WSGIPassAuthorization On This worked for me.