google: Use new endpoints for Google authentication

Fixes #310

Change-Id: I3b3a57b2758074535d07471b344334945be5bcbd
Reviewed-on: https://go-review.googlesource.com/c/136356
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Chris Broadfoot <cbro@golang.org>
This commit is contained in:
Jean de Klerk
2018-09-19 11:11:46 -07:00
committed by Brad Fitzpatrick
parent 9b3c75971f
commit 529b322ea3
3 changed files with 10 additions and 10 deletions

View File

@@ -110,7 +110,7 @@ func TestJWTConfigFromJSONNoTokenURL(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if got, want := conf.TokenURL, "https://accounts.google.com/o/oauth2/token"; got != want {
if got, want := conf.TokenURL, "https://oauth2.googleapis.com/token"; got != want {
t.Errorf("TokenURL = %q; want %q", got, want)
}
}