-
Notifications
You must be signed in to change notification settings - Fork 120
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
add ability to pass a custom header name #65
add ability to pass a custom header name #65
Conversation
Would you mind explaining what this feature is for? The spec doesn't really make allowances for the use of other headers, and it seems kinda silly to keep the format that's needed for |
Indeed, bearer token + http signature see #64 |
That makes sense. We pretty regularly use requests with two Authorization headers in our apps -- one for the Bearer token, and another for the Signature. I'm a little hesitant to suggest following suit, as after some reading, I'm pretty sure this is not technically compliant to the HTTP/1.1 RFC (since Authorization is not meant to be a multi-valued/comma-separated header like that, and Signature's use of the I guess setting the header name like this is the easiest way forward without promoting that. Though, maybe it would be worthwhile to add API for parsing just the I've made some small changes to satisfy the linter (which is run using Thanks! |
@arekinath thanks! I researched a long ago about this with the same findings about I wrote wrappers to swap This resulted in failing signature checks and raised the issue. I agree that the cleaner approach here would be adding parsing logic for multiple values, but I am not particularly excited to diverge from the specs :/ Thanks again for using my commit. P.S. I published my fork as private module and it's already live working in production so I confirm it works :) 🍻 |
I will be happy to update the README given some direction from the maintainers 👍