File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
- // Copyright 2017, Google, Inc.
1
+ // Copyright 2017 Google LLC
2
+ //
2
3
// Licensed under the Apache License, Version 2.0 (the "License");
3
4
// you may not use this file except in compliance with the License.
4
5
// You may obtain a copy of the License at
5
6
//
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
+ // http://www.apache.org/licenses/LICENSE-2.0
7
8
//
8
9
// Unless required by applicable law or agreed to in writing, software
9
10
// distributed under the License is distributed on an "AS IS" BASIS,
@@ -27,7 +28,7 @@ const {JWT} = require('google-auth-library');
27
28
const fs = require ( 'fs' ) ;
28
29
29
30
async function main (
30
- // Full path to the sevice account credential
31
+ // Full path to the service account credential
31
32
keyFile = process . env . GOOGLE_APPLICATION_CREDENTIALS
32
33
) {
33
34
const keys = JSON . parse ( fs . readFileSync ( keyFile , 'utf8' ) ) ;
Original file line number Diff line number Diff line change 1
- // Copyright 2018, Google, LLC.
1
+ // Copyright 2018 Google LLC
2
+ //
2
3
// Licensed under the Apache License, Version 2.0 (the "License");
3
4
// you may not use this file except in compliance with the License.
4
5
// You may obtain a copy of the License at
5
6
//
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
+ // http://www.apache.org/licenses/LICENSE-2.0
7
8
//
8
9
// Unless required by applicable law or agreed to in writing, software
9
10
// distributed under the License is distributed on an "AS IS" BASIS,
@@ -22,7 +23,7 @@ const {GoogleAuth} = require('google-auth-library');
22
23
* Acquire a client, and make a request to an API that's enabled by default.
23
24
*/
24
25
async function main (
25
- // Full path to the sevice account credential
26
+ // Full path to the service account credential
26
27
keyFile = process . env . GOOGLE_APPLICATION_CREDENTIALS
27
28
) {
28
29
const auth = new GoogleAuth ( {
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ async function main(config) {
165
165
const awsAudience = `//iam.googleapis.com/${ poolResourcePath } /providers/${ awsProviderId } ` ;
166
166
167
167
// Allow service account impersonation.
168
- // Get the existing IAM policity bindings on the current service account.
168
+ // Get the existing IAM policy bindings on the current service account.
169
169
response = await iam . projects . serviceAccounts . getIamPolicy ( {
170
170
resource : `projects/${ projectId } /serviceAccounts/${ clientEmail } ` ,
171
171
} ) ;
Original file line number Diff line number Diff line change 50
50
// AWS provider tests for AWS credentials
51
51
// -------------------------------------
52
52
// The test suite will also run tests for AWS credentials. This works as
53
- // follows. (Note prequisite setup is needed. This is documented in
53
+ // follows. (Note prerequisite setup is needed. This is documented in
54
54
// externalclient-setup.js).
55
55
// - iamcredentials:generateIdToken is used to generate a Google ID token using
56
56
// the service account access token. The service account client_id is used as
You can’t perform that action at this time.
0 commit comments