Skip to content

Option to disable oauth_body_hash computation #232

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

Merged
merged 3 commits into from
Dec 14, 2021

Conversation

chuckremes
Copy link
Contributor

Not all OAuth 1.0 implementations recognize or respect oauth_body_hash in the base signature for POST/PUT payloads that are not url-encoded. Provides simple mechanism to disable this feature for improved compatibility.

@chuckremes
Copy link
Contributor Author

BTW, I'm happy to make additional changes to this. I was a bit worried that there was no integration test that tests this path all the way through from Consumer but it doesn't currently test any body hash logic now. I wanted to make minimal changes to get this working. I can add more tests if you like.

@pboling
Copy link
Member

pboling commented Dec 13, 2021

@chuckremes Thanks for this! It looks great. I'd love to get more tests, always, but I'm happy enough with this for merging.

@pboling pboling merged commit ae7093d into oauth-xx:master Dec 14, 2021
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

Successfully merging this pull request may close these issues.

2 participants