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

Support for OAUth2 providers that have HTTP instead of JSON authentication responses #1

Closed
GoogleCodeExporter opened this issue Aug 11, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

According to the OAUth2 speciification, the result of an authentication token 
should be a JSON body. There are however OAUth2 providers that provide an HTTP 
form response (access_token=token&token_type=). GitHub's API is one where I 
encountered this. I've heard that Facebook has the same problem.

The attached patch adds support for form field responses; It looks at the 
response headers to determine whether JSON or form fields should be used.

Original issue reported on code.google.com by i...@egeniq.com on 3 Sep 2011 at 9:30

Attachments:

@GoogleCodeExporter
Copy link
Author

http://code.google.com/p/gtm-oauth2/source/detail?r=57

Original comment by grobb...@google.com on 9 Sep 2011 at 9:59

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant