forked from remote/oauth2
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:
committed by
Brad Fitzpatrick
parent
9b3c75971f
commit
529b322ea3
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user