@@ -94,20 +94,20 @@ func DefaultTokenSource(ctx context.Context, scope ...string) (oauth2.TokenSourc
94
94
// It looks for credentials in the following places,
95
95
// preferring the first location found:
96
96
//
97
- // 1. A JSON file whose path is specified by the
98
- // GOOGLE_APPLICATION_CREDENTIALS environment variable.
99
- // For workload identity federation, refer to
100
- // https://cloud.google.com/iam/docs/how-to#using-workload-identity-federation on
101
- // how to generate the JSON configuration file for on-prem/non-Google cloud
102
- // platforms.
103
- // 2. A JSON file in a location known to the gcloud command-line tool.
104
- // On Windows, this is %APPDATA%/gcloud/application_default_credentials.json.
105
- // On other systems, $HOME/.config/gcloud/application_default_credentials.json.
106
- // 3. On Google App Engine standard first generation runtimes (<= Go 1.9) it uses
107
- // the appengine.AccessToken function.
108
- // 4. On Google Compute Engine, Google App Engine standard second generation runtimes
109
- // (>= Go 1.11), and Google App Engine flexible environment, it fetches
110
- // credentials from the metadata server.
97
+ // 1. A JSON file whose path is specified by the
98
+ // GOOGLE_APPLICATION_CREDENTIALS environment variable.
99
+ // For workload identity federation, refer to
100
+ // https://cloud.google.com/iam/docs/how-to#using-workload-identity-federation on
101
+ // how to generate the JSON configuration file for on-prem/non-Google cloud
102
+ // platforms.
103
+ // 2. A JSON file in a location known to the gcloud command-line tool.
104
+ // On Windows, this is %APPDATA%/gcloud/application_default_credentials.json.
105
+ // On other systems, $HOME/.config/gcloud/application_default_credentials.json.
106
+ // 3. On Google App Engine standard first generation runtimes (<= Go 1.9) it uses
107
+ // the appengine.AccessToken function.
108
+ // 4. On Google Compute Engine, Google App Engine standard second generation runtimes
109
+ // (>= Go 1.11), and Google App Engine flexible environment, it fetches
110
+ // credentials from the metadata server.
111
111
func FindDefaultCredentialsWithParams (ctx context.Context , params CredentialsParams ) (* Credentials , error ) {
112
112
// Make defensive copy of the slices in params.
113
113
params = params .deepCopy ()
0 commit comments