Skip to content

Commit

Permalink
add audience placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
aeitzman committed Apr 10, 2024
1 parent 705e8fd commit 271e33b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .readme-partials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ body: |-
}
const clientOptions = {
audience: '', // Set the GCP audience.
audience: '//iam.googleapis.com/projects/$PROJECT_NUMBER/locations/global/workloadIdentityPools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID', // Set the GCP audience.
subject_token_type: 'urn:ietf:params:aws:token-type:aws4_request', // Set the subject token type.
aws_security_credentials_supplier: new AwsSupplier() // Set the custom supplier.
}
Expand Down Expand Up @@ -533,7 +533,7 @@ body: |-
}
const clientOptions = {
audience: '', // Set the GCP audience.
audience: '//iam.googleapis.com/projects/$PROJECT_NUMBER/locations/global/workloadIdentityPools/$WORKLOAD_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.
}
Expand Down Expand Up @@ -949,15 +949,15 @@ body: |-
}
const clientOptions = {
audience: '', // Set the GCP audience.
audience: '//iam.googleapis.com/locations/global/workforcePools/$WORKLOAD_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](https://cloud.google.com/iam/docs/best-practices-for-using-workload-identity-federation#provider-audience) is: `//iam.googleapis.com/locations/global/workforcePools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID`
Where the audience is: `//iam.googleapis.com/locations/global/workforcePools/$WORKLOAD_POOL_ID/providers/$PROVIDER_ID`
Where the following variables need to be substituted:
Expand Down

0 comments on commit 271e33b

Please sign in to comment.