-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix: use undecoded @path, @query and @query-param according to the spec #163
Conversation
b20100c
to
3e45a94
Compare
3e45a94
to
7760e22
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks. Can we add test coverage for this?
Also, I think this is a fix, not a feat. Would you mind amending the commit message please? |
@AlexanderTar alternatively, if you allow maintainers to make pushes to your PR branch, I can make the amendments to the PR |
7760e22
to
e3b5c27
Compare
Hi @dhensby - Thanks for reviewing I have added some test cases from the spec and also made sure it is correctly implemented for @query-param Feel free to merge if you're happy with this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having to re-encode the query parameters is leading to inconsistencies and edge-case issues, really we need a way to get our hands on the raw value of the query string parameter and, I'm afraid, that looks like it'll mean manual parsing of the url.search
prop.
According to the spec, this is the process for deriving @query-param component: The value of the name parameter and the component value of a single named parameter are calculated by the following process:
My research showed that |
cfb4f66
to
0eb70b2
Compare
0eb70b2
to
c086d9f
Compare
Great - thanks for the clarification and the work put into these PRs! 🎉 |
🎉 This PR is included in version 1.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures-19#name-path
https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures-19#name-query