Skip to content

Conversation

webjunkie
Copy link

@joestump
Copy link
Owner

@webjunkie thanks for the PR! @jaitaiwan can you take a look?

@@ -695,8 +707,9 @@ class Server(object):
version = OAUTH_VERSION
signature_methods = None

def __init__(self, signature_methods=None):
def __init__(self, signature_methods=None, body_hashing=False):
Copy link
Owner

Choose a reason for hiding this comment

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

Can we make this check_body_hashing? Or verify_body_hash?

@jaitaiwan
Copy link
Contributor

Is this the same issue as #138? If so, the body should always be hashed even if empty according to spec...

@joestump
Copy link
Owner

joestump commented Aug 2, 2015

@jaitaiwan that's true, but I don't think body hashing itself is part of the OAuth specification. In other words, if you implement it you need to do this, but the providers don't have to implement body hashing. At least that's how I've understood this PR.

@webjunkie webjunkie closed this Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants