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

Issue when trying to make authenticated requests from something besides Django #4

Open
nickc92 opened this issue Oct 13, 2018 · 0 comments

Comments

@nickc92
Copy link

nickc92 commented Oct 13, 2018

So I was having a devil of a time trying to get an HMAC-authenticated request from a python script using the "requests" module to work.
Peeling back the layers, what I found is that when I set the "Key", "Timestamp", and "Signature" header fields in requests.get(), when Django receives the request, the header field names are converted to "HTTP_KEY", "HTTP_TIMESTAMP", and "HTTP_SIGNATURE". This behavior is documented here:
https://docs.djangoproject.com/en/2.1/ref/request-response/#django.http.HttpRequest.META

This means that the authenticator is never finding the appropriate headers, unfortunately. Do you have any suggestions?

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