This repository was archived by the owner on Nov 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
Expand file tree Collapse file tree 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+ //
23// Licensed under the Apache License, Version 2.0 (the "License");
34// you may not use this file except in compliance with the License.
45// You may obtain a copy of the License at
56//
6- // http://www.apache.org/licenses/LICENSE-2.0
7+ // http://www.apache.org/licenses/LICENSE-2.0
78//
89// Unless required by applicable law or agreed to in writing, software
910// distributed under the License is distributed on an "AS IS" BASIS,
@@ -27,7 +28,7 @@ const {JWT} = require('google-auth-library');
2728const fs = require ( 'fs' ) ;
2829
2930async function main (
30- // Full path to the sevice account credential
31+ // Full path to the service account credential
3132 keyFile = process . env . GOOGLE_APPLICATION_CREDENTIALS
3233) {
3334 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+ //
23// Licensed under the Apache License, Version 2.0 (the "License");
34// you may not use this file except in compliance with the License.
45// You may obtain a copy of the License at
56//
6- // http://www.apache.org/licenses/LICENSE-2.0
7+ // http://www.apache.org/licenses/LICENSE-2.0
78//
89// Unless required by applicable law or agreed to in writing, software
910// distributed under the License is distributed on an "AS IS" BASIS,
@@ -22,7 +23,7 @@ const {GoogleAuth} = require('google-auth-library');
2223 * Acquire a client, and make a request to an API that's enabled by default.
2324 */
2425async function main (
25- // Full path to the sevice account credential
26+ // Full path to the service account credential
2627 keyFile = process . env . GOOGLE_APPLICATION_CREDENTIALS
2728) {
2829 const auth = new GoogleAuth ( {
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ async function main(config) {
165165 const awsAudience = `//iam.googleapis.com/${ poolResourcePath } /providers/${ awsProviderId } ` ;
166166
167167 // 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.
169169 response = await iam . projects . serviceAccounts . getIamPolicy ( {
170170 resource : `projects/${ projectId } /serviceAccounts/${ clientEmail } ` ,
171171 } ) ;
Original file line number Diff line number Diff line change 5050// AWS provider tests for AWS credentials
5151// -------------------------------------
5252// 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
5454// externalclient-setup.js).
5555// - iamcredentials:generateIdToken is used to generate a Google ID token using
5656// 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