Skip to content

Commit

Permalink
fix: resolve typo in document (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryunosuke-hayashi-ba authored Jan 10, 2025
1 parent 970b135 commit 12f2c87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .readme-partials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -997,19 +997,19 @@ body: |-
}
const clientOptions = {
audience: '//iam.googleapis.com/locations/global/workforcePools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID', // Set the GCP audience.
audience: '//iam.googleapis.com/locations/global/workforcePools/$WORKFORCE_POOL_ID/providers/$PROVIDER_ID', // Set the GCP audience.
subject_token_type: 'urn:ietf:params:oauth:token-type:id_token', // Set the subject token type.
subject_token_supplier: new CustomSupplier() // Set the custom supplier.
}
const client = new CustomSupplier(clientOptions);
```
Where the audience is: `//iam.googleapis.com/locations/global/workforcePools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID`
Where the audience is: `//iam.googleapis.com/locations/global/workforcePools/$WORKFORCE_POOL_ID/providers/$PROVIDER_ID`
Where the following variables need to be substituted:
* `WORKFORCE_POOL_ID`: The worforce pool ID.
* `$WORKFORCE_POOL_ID`: The worforce pool ID.
* `$PROVIDER_ID`: The provider ID.
and the workforce pool user project is the project number associated with the [workforce pools user project](https://cloud.google.com/iam/docs/workforce-identity-federation#workforce-pools-user-project).
Expand Down

0 comments on commit 12f2c87

Please sign in to comment.