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) (#7328)

[upstream:5a59431a4003eb0534aa0740dd8820a7f4606766]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored May 8, 2024
1 parent f918124 commit 36f759d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ resource "google_iam_workforce_pool_provider" "example" {
"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 @@ -366,7 +366,7 @@ resource "google_iam_workforce_pool_provider" "example" {
}
}
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 @@ -421,8 +421,8 @@ resource "google_iam_workforce_pool_provider" "example" {
"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 @@ -434,7 +434,7 @@ resource "google_iam_workforce_pool_provider" "example" {
}
}
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
12 changes: 6 additions & 6 deletions website/docs/r/iam_workforce_pool_provider.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ resource "google_iam_workforce_pool_provider" "example" {
"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 @@ -183,7 +183,7 @@ resource "google_iam_workforce_pool_provider" "example" {
}
}
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 @@ -212,8 +212,8 @@ resource "google_iam_workforce_pool_provider" "example" {
"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 @@ -225,7 +225,7 @@ resource "google_iam_workforce_pool_provider" "example" {
}
}
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 36f759d

Please sign in to comment.