-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support External Account Authorized User as a Source Credential…
… for impersonated credentials in ADC (#1608) * feat: Support External Account Authorized User as a Source Credential for impersonated credentials in ADC * formatting
- Loading branch information
1 parent
484c8db
commit 875796c
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
16 changes: 16 additions & 0 deletions
16
tests/data/impersonated_service_account_external_account_authorized_user_source.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"delegates": [ | ||
"[email protected]" | ||
], | ||
"service_account_impersonation_url": "https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/[email protected]:generateAccessToken", | ||
"source_credentials": { | ||
"type": "external_account_authorized_user", | ||
"audience": "//iam.googleapis.com/locations/global/workforcePools/$WORKFORCE_POOL_ID/providers/$PROVIDER_ID", | ||
"refresh_token": "refreshToken", | ||
"token_url": "https://sts.googleapis.com/v1/oauth/token", | ||
"token_info_url": "https://sts.googleapis.com/v1/instrospect", | ||
"client_id": "clientId", | ||
"client_secret": "clientSecret" | ||
}, | ||
"type": "impersonated_service_account" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters