Skip to content

Fix bug in OAUTH extension #619

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 1 commit into from
Aug 22, 2012
Merged

Fix bug in OAUTH extension #619

merged 1 commit into from
Aug 22, 2012

Conversation

thughes
Copy link
Contributor

@thughes thughes commented Jul 12, 2012

The code that handles the response expects JSON, so we make sure to set
the type to JSON in the ACCEPT header. This makes the code work with
github OAUTH: http://developer.github.com/v3/oauth/.

The code that handles the response expects JSON, so we make sure to set
the type to JSON in the ACCEPT header. This makes the code work with
github OAUTH: http://developer.github.com/v3/oauth/.
@msvens
Copy link
Collaborator

msvens commented Jul 17, 2012

Tom thanks for this. I will just verify this against some other OAuth sites so that it does not break anything. But it looks to me that it is perfectly fine.

@ghost ghost assigned msvens Jul 18, 2012
@thughes
Copy link
Contributor Author

thughes commented Jul 31, 2012

Any update?

Also, I noticed that there is no way to include the optional "state" parameter. Do you have plans to add this?

@jlouvel
Copy link
Collaborator

jlouvel commented Aug 18, 2012

Tom, could you check the fix against another OAuth site in addition to GitHub?

@thughes
Copy link
Contributor Author

thughes commented Aug 20, 2012

I verified that this works with Google OAUTH.

stoffeg added a commit that referenced this pull request Aug 22, 2012
Adds Accept header to prefer json content back from a auth server
@stoffeg stoffeg merged commit c4ba7ae into restlet:master Aug 22, 2012
@stoffeg
Copy link
Collaborator

stoffeg commented Aug 22, 2012

Thanks Tom, just merged, will also try to merge it to the 2.1 later on today with other things.

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.

4 participants