|
|
|
@ -103,8 +103,10 @@ TEST(CredentialsTest, ExternalAccountCredentials) { |
|
|
|
|
"{\"type\":\"external_account\",\"audience\":\"audience\",\"subject_" |
|
|
|
|
"token_type\":\"subject_token_type\",\"service_account_impersonation_" |
|
|
|
|
"url\":\"service_account_impersonation_url\",\"token_url\":\"https://" |
|
|
|
|
"foo.com:5555/token\",\"token_info_url\":\"https://foo.com:5555/" |
|
|
|
|
"token_info\",\"credential_source\":{\"url\":\"https://foo.com:5555/" |
|
|
|
|
"sts.googleapis.com:5555/token\",\"token_info_url\":\"https://" |
|
|
|
|
"sts.googleapis.com:5555/" |
|
|
|
|
"token_info\",\"credential_source\":{\"url\":\"https://" |
|
|
|
|
"sts.googleapis.com:5555/" |
|
|
|
|
"generate_subject_token_format_json\",\"headers\":{\"Metadata-Flavor\":" |
|
|
|
|
"\"Google\"},\"format\":{\"type\":\"json\",\"subject_token_field_name\":" |
|
|
|
|
"\"access_token\"}},\"quota_project_id\":\"quota_" |
|
|
|
@ -118,7 +120,8 @@ TEST(CredentialsTest, ExternalAccountCredentials) { |
|
|
|
|
"{\"type\":\"external_account\",\"audience\":\"audience\",\"subject_" |
|
|
|
|
"token_type\":\"subject_token_type\",\"service_account_impersonation_" |
|
|
|
|
"url\":\"service_account_impersonation_url\",\"token_url\":\"https://" |
|
|
|
|
"foo.com:5555/token\",\"token_info_url\":\"https://foo.com:5555/" |
|
|
|
|
"sts.googleapis.com:5555/token\",\"token_info_url\":\"https://" |
|
|
|
|
"sts.googleapis.com:5555/" |
|
|
|
|
"token_info\",\"credential_source\":{\"file\":\"credentials_file_path\"}," |
|
|
|
|
"\"quota_project_id\":\"quota_" |
|
|
|
|
"project_id\",\"client_id\":\"client_id\",\"client_secret\":\"client_" |
|
|
|
@ -131,11 +134,14 @@ TEST(CredentialsTest, ExternalAccountCredentials) { |
|
|
|
|
"{\"type\":\"external_account\",\"audience\":\"audience\",\"subject_" |
|
|
|
|
"token_type\":\"subject_token_type\",\"service_account_impersonation_" |
|
|
|
|
"url\":\"service_account_impersonation_url\",\"token_url\":\"https://" |
|
|
|
|
"foo.com:5555/token\",\"token_info_url\":\"https://foo.com:5555/" |
|
|
|
|
"sts.googleapis.com:5555/token\",\"token_info_url\":\"https://" |
|
|
|
|
"sts.googleapis.com:5555/" |
|
|
|
|
"token_info\",\"credential_source\":{\"environment_id\":\"aws1\"," |
|
|
|
|
"\"region_url\":\"https://foo.com:5555/region_url\",\"url\":\"https://" |
|
|
|
|
"foo.com:5555/url\",\"regional_cred_verification_url\":\"https://" |
|
|
|
|
"foo.com:5555/regional_cred_verification_url_{region}\"}," |
|
|
|
|
"\"region_url\":\"https://sts.googleapis.com:5555/" |
|
|
|
|
"region_url\",\"url\":\"https://" |
|
|
|
|
"sts.googleapis.com:5555/" |
|
|
|
|
"url\",\"regional_cred_verification_url\":\"https://" |
|
|
|
|
"sts.googleapis.com:5555/regional_cred_verification_url_{region}\"}," |
|
|
|
|
"\"quota_project_id\":\"quota_" |
|
|
|
|
"project_id\",\"client_id\":\"client_id\",\"client_secret\":\"client_" |
|
|
|
|
"secret\"}"); |
|
|
|
|