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

OAuth2 Endpoint for Google Updated #39994

Closed
bwjjohnson opened this issue Jul 2, 2020 · 2 comments
Closed

OAuth2 Endpoint for Google Updated #39994

bwjjohnson opened this issue Jul 2, 2020 · 2 comments

Comments

@bwjjohnson
Copy link

@bwjjohnson bwjjohnson commented Jul 2, 2020

What version of Go are you using (go version)?

$ go version
go version go1.14.1 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

I'm building an OAuth app, and it looks like the endpoint for authorization for OAuth2 for google is: https://pkg.go.dev/golang.org/x/oauth2/google?tab=doc#pkg-variables

var Endpoint = oauth2.Endpoint{
        AuthURL:   "https://accounts.google.com/o/oauth2/auth",
        TokenURL:  "https://oauth2.googleapis.com/token",
        AuthStyle: oauth2.AuthStyleInParams,
}

What did you expect to see?

But it looks like https://developers.google.com/identity/protocols/oauth2/web-server#httprest recommends this endpoint:

Google's OAuth 2.0 endpoint is at https://accounts.google.com/o/oauth2/v2/auth. This endpoint is accessible only over HTTPS.

I already asked this question on golang nuts last week, with no response: https://groups.google.com/g/golang-nuts/c/_3Eu_yfWzEc

@namaggarwal
Copy link

@namaggarwal namaggarwal commented Jul 2, 2020

Hi,

You should open an issue in this repo https://github.com/golang/oauth2

@bwjjohnson
Copy link
Author

@bwjjohnson bwjjohnson commented Jul 2, 2020

@bwjjohnson bwjjohnson closed this Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.