Skip to content

Commit 7c55642

Browse files
authored
Merge branch 'main' into al-8
2 parents 0413693 + 058a503 commit 7c55642

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

samples/jwt.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
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');
2728
const fs = require('fs');
2829

2930
async 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'));

samples/keyfile.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
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
*/
2425
async 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({

samples/scripts/externalclient-setup.js

+1-1
Original file line numberDiff line numberDiff 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
});

samples/test/externalclient.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
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

0 commit comments

Comments
 (0)