Skip to content

Commit 54b70c8

Browse files
codyossgopherbot
authored andcommitted
google: update missing auth help URL
Update the URL to a newer page that better describes how to set up credentials in different environments. Change-Id: Ic0726fe298c543265d333cda60d62c235e4e2293 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/473735 Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Cody Oss <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Cody Oss <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 2fc4ef5 commit 54b70c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

google/default.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import (
1919
"golang.org/x/oauth2/authhandler"
2020
)
2121

22+
const adcSetupURL = "https://cloud.google.com/docs/authentication/external/set-up-adc"
23+
2224
// Credentials holds Google credentials, including "Application Default Credentials".
2325
// For more details, see:
2426
// https://developers.google.com/accounts/docs/application-default-credentials
@@ -158,8 +160,7 @@ func FindDefaultCredentialsWithParams(ctx context.Context, params CredentialsPar
158160
}
159161

160162
// None are found; return helpful error.
161-
const url = "https://developers.google.com/accounts/docs/application-default-credentials"
162-
return nil, fmt.Errorf("google: could not find default credentials. See %v for more information.", url)
163+
return nil, fmt.Errorf("google: could not find default credentials. See %v for more information", adcSetupURL)
163164
}
164165

165166
// FindDefaultCredentials invokes FindDefaultCredentialsWithParams with the specified scopes.

0 commit comments

Comments
 (0)