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

PUT Implementation Modifications #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jberlinsky
Copy link

The OAuth spec only specifies that HTTP POST url-encoded parameters should be added to the signature base string. Therefore, these lines correctly implement the PUT protocol within OAuth:

https://github.com/simplegeo/python-oauth2/blob/master/oauth2/__init__.py#L646-648

However, the library parses the body for the signature whenever the content type is x-www-form-urlencoded on any type of request, not only POST as specified in the OAuth specs. This change enforces that the signature base includes the url-encoded parameters only on POST requests.

@gorakhargosh
Copy link

I believe the OAuth 1.0 specification has been extended
to include url-encoded parameters from any HTTP request
now.

See http://tools.ietf.org/html/rfc5849#appendix-A

Therefore, the current behavior of the library should be
maintained to be in compliance with this specification.

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