Skip to content

Commit

Permalink
fix: Workforce Audience Pattern (#1654)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-goog authored Oct 2, 2023
1 parent d76140f commit 77eeaed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/baseexternalclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const CLOUD_RESOURCE_MANAGER =
'https://cloudresourcemanager.googleapis.com/v1/projects/';
/** The workforce audience pattern. */
const WORKFORCE_AUDIENCE_PATTERN =
'//iam.googleapis.com/locations/[^/]+/workforcePools/[^/]+/providers/.+';
'//iam\\.googleapis\\.com/locations/[^/]+/workforcePools/[^/]+/providers/.+';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const pkg = require('../../../package.json');
Expand Down
1 change: 1 addition & 0 deletions test/test.baseexternalclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ describe('BaseExternalAccountClient', () => {
'//iam.googleapis.com/locations/global/workforcePools/pool/providers/',
'//iam.googleapis.com/locations//workforcePools/pool/providers/provider',
'//iam.googleapis.com/locations/workforcePools/pool/providers/provider',
'//iamAgoogleapisAcom/locations/global/workforcePools/workloadPools/providers/oidc',
];
const invalidExternalAccountOptionsWorkforceUserProject = Object.assign(
{},
Expand Down

0 comments on commit 77eeaed

Please sign in to comment.