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

Create a token request to exhange authorization code with token. #53

Merged
merged 1 commit into from
Jan 18, 2017

Conversation

dtulig
Copy link
Contributor

@dtulig dtulig commented Jan 4, 2017

Currently, the InstalledApplication module retrieves the authorization code from the user but when it tries to exchange that code for an oauth token it queries the wrong endpoint (accounts.google.com). It needs to query the endpoint to exchange tokens, not the original accounts endpoint. This is documented at https://developers.google.com/identity/protocols/OAuth2InstalledApp#handlingtheresponse.

Currently, the InstalledApplication module retrieves the authorization
code from the user but when it tries to exchange that code for an
oauth token it queries the wrong endpoint (accounts.google.com). It
needs to query the endpoint to exchange tokens, not the original
accounts endpoint. This is documented at
https://developers.google.com/identity/protocols/OAuth2InstalledApp#handlingtheresponse.
@brendanhay brendanhay merged commit 6d20ba2 into brendanhay:develop Jan 18, 2017
@brendanhay
Copy link
Owner

Thanks, and apologies for the slow turnaround!

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