-
Notifications
You must be signed in to change notification settings - Fork 687
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
Authorization token missing in the API on rc3 #3772
Comments
The apache is somehow dropping the |
When I tried to view the available headers in the server:
|
If I create a dev environment using |
The cause behind this bug is mentioned at http://www.django-rest-framework.org/api-guide/authentication/#apache-mod_wsgi-specific-configuration
I will now submit a PR. |
If deploying to Apache using mod_wsgi, the authorization header is not passed through to a WSGI application by default, as it is assumed that authentication will be handled by Apache, rather than at an application level. See http://www.django-rest-framework.org/api-guide/authentication/#apache-mod_wsgi-specific-configuration for more details.
If deploying to Apache using mod_wsgi, the authorization header is not passed through to a WSGI application by default, as it is assumed that authentication will be handled by Apache, rather than at an application level. See http://www.django-rest-framework.org/api-guide/authentication/#apache-mod_wsgi-specific-configuration for more details.
If deploying to Apache using mod_wsgi, the authorization header is not passed through to a WSGI application by default, as it is assumed that authentication will be handled by Apache, rather than at an application level. See http://www.django-rest-framework.org/api-guide/authentication/#apache-mod_wsgi-specific-configuration for more details. (cherry picked from commit 2aecf1c)
[0.9.0] Fixes #3772, allows Authorization header to pass
…on_header Fixes #3772, allows Authorization header to pass
Description
If we make API calls to the rc3 production vms, the journalist application is not getting the
Authorization
header field.Steps to Reproduce
Make sure you have Tor service in your host and also added the hidservauth token in the torrc file to access the journalist interface. Also run the
create-dev-data.py
in the server to add some test data and the journalist account.To execute the following script, create a python3 virtualenv, and then install the following 3 packages
Then add and execute the following script, after adding the right onion address for the server.
Expected Behavior
We should be able to access any of the authenticated API call, and in this example we should get a list of sources.
Actual Behavior
The server returns the following error message.
Comments
Suggestions to fix, any other relevant information.
The text was updated successfully, but these errors were encountered: