You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: