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

Add the ability to specify body hash method #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drostron
Copy link

Some APIs require the body hash method follow the signature hash method. While the spec alludes to the body hash method following the signature method, doing so would break library users expecting the current behavior of a SHA-1 body hash no matter what signature method is specified. An additional configuration parameter is added for the body hash method with a default of SHA-1 so users can update without changes and maintain current behavior.

@drostron drostron marked this pull request as ready for review July 29, 2022 17:32
@drostron
Copy link
Author

drostron commented Aug 9, 2022

Looks like the failing tests are the same as on master. Is there interest in this or any feedback around it? Happy to update if there are desired changes.

Copy link

@parsonsmatt parsonsmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

@snoyberg anything I can do to help get this merged and released?

@@ -103,6 +103,8 @@ data OAuth = OAuth { oauthServerName :: String -- ^ Service name (default:
-- ^ Optional authorization realm (default: @Nothing@)
, oauthVersion :: OAuthVersion
-- ^ OAuth spec version (default: 'OAuth10a')
, oauthBodyHashMethod :: BodyHashMethod

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the constructor isn't exposed, this is a feature addition - so a minor version bump

@snoyberg
Copy link
Member

snoyberg commented Sep 1, 2022

anything I can do to help get this merged and released?

I'm not really the maintainer of authenticate-oauth (though I've done some of the work on it recently), and I'm not sure if the maintainers are still following this repo. I'd be happy to add you both here and on Hackage if you'd like to jump in.

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.

3 participants