Skip to content

Commit

Permalink
Make workforce pool provider extra attributes tests and examples foll…
Browse files Browse the repository at this point in the history
…ow intended use case better. (#10616)
  • Loading branch information
misterpoe authored and BBBmau committed May 8, 2024
1 parent 5ac67cc commit c54e690
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ resource "google_iam_workforce_pool_provider" "<%= ctx[:primary_resource_id] %>"
"google.subject" = "assertion.sub"
}
oidc {
issuer_uri = "https://accounts.thirdparty.com"
client_id = "client-id"
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
web_sso_config {
response_type = "CODE"
assertion_claims_behavior = "MERGE_USER_INFO_OVER_ID_TOKEN_CLAIMS"
Expand All @@ -25,7 +25,7 @@ resource "google_iam_workforce_pool_provider" "<%= ctx[:primary_resource_id] %>"
}
}
extra_attributes_oauth2_client {
issuer_uri = "https://accounts.thirdparty.com"
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0"
client_id = "client-id"
client_secret {
value {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ resource "google_iam_workforce_pool_provider" "<%= ctx[:primary_resource_id] %>"
"google.subject" = "assertion.sub"
}
oidc {
issuer_uri = "https://accounts.thirdparty.com"
client_id = "client-id"
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
client_secret {
value {
plain_text = "client-secret"
Expand All @@ -25,7 +25,7 @@ resource "google_iam_workforce_pool_provider" "<%= ctx[:primary_resource_id] %>"
}
}
extra_attributes_oauth2_client {
issuer_uri = "https://accounts.thirdparty.com"
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0"
client_id = "client-id"
client_secret {
value {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
"google.subject" = "assertion.sub"
}
oidc {
issuer_uri = "https://accounts.thirdparty.com"
client_id = "client-id"
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
client_secret {
value {
plain_text = "client-secret"
Expand All @@ -457,7 +457,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
}
}
extra_attributes_oauth2_client {
issuer_uri = "https://accounts.thirdparty.com"
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0"
client_id = "client-id"
client_secret {
value {
Expand Down Expand Up @@ -493,8 +493,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
"google.subject" = "false"
}
oidc {
issuer_uri = "https://accounts.thirdparty.com"
client_id = "client-id"
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
client_secret {
value {
plain_text = "client-secret"
Expand All @@ -507,7 +507,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
}
}
extra_attributes_oauth2_client {
issuer_uri = "https://accounts.thirdparty.com/new"
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0/"
client_id = "new-client-id"
client_secret {
value {
Expand Down Expand Up @@ -543,8 +543,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
"google.subject" = "false"
}
oidc {
issuer_uri = "https://accounts.thirdparty.com"
client_id = "client-id"
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
client_secret {
value {
plain_text = "client-secret"
Expand Down Expand Up @@ -580,8 +580,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
"google.subject" = "false"
}
oidc {
issuer_uri = "https://accounts.thirdparty.com"
client_id = "client-id"
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
client_secret {
value {
plain_text = "client-secret"
Expand All @@ -594,7 +594,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
}
}
extra_attributes_oauth2_client {
issuer_uri = "https://accounts.thirdparty.com"
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0"
client_id = "client-id"
client_secret {
value {
Expand Down

0 comments on commit c54e690

Please sign in to comment.