oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

Google: authorize endpoint updated

Open bwjjohnson opened this issue 5 years ago • 2 comments
trafficstars

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

bwjjohnson avatar Jul 02 '20 19:07 bwjjohnson

any update on this ?

alessandro-c avatar Aug 05 '21 21:08 alessandro-c

No, sorry.

bwjjohnson avatar Aug 07 '21 00:08 bwjjohnson