Reputation: 85
I am using Django 1.6 with Oauth2 (django-oauth-toolkit) and the site is SSL secure via apache.
But when i use them together SSL and Oauth I get 403.
Can someone give me a clue what am i missing?
Thanks in advances
Hagay.
Upvotes: 0
Views: 435
Reputation: 2249
If you're getting strange issues with HTTP authorization under Apache/WSGI/Django, but not when running manage.py runserver
, you might need this command in your Apache site config:
WSGIPassAuthorization on
If the setting is not switched on, then WSGI "swallows" all authorization headers and doesn't pass them on to your Python code, apparently for security reasons.
See the WSGI module docs for more information.
Upvotes: 2