Skip to content

Commit c3f2efe

Browse files
Make workforce pool provider extra attributes tests and examples follow intended use case better. (#10616) (#18043)
[upstream:5a59431a4003eb0534aa0740dd8820a7f4606766] Signed-off-by: Modular Magician <[email protected]>
1 parent 4fc5222 commit c3f2efe

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

google/services/iamworkforcepool/resource_iam_workforce_pool_provider_generated_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ resource "google_iam_workforce_pool_provider" "example" {
353353
"google.subject" = "assertion.sub"
354354
}
355355
oidc {
356-
issuer_uri = "https://accounts.thirdparty.com"
357-
client_id = "client-id"
356+
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
357+
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
358358
web_sso_config {
359359
response_type = "CODE"
360360
assertion_claims_behavior = "MERGE_USER_INFO_OVER_ID_TOKEN_CLAIMS"
@@ -366,7 +366,7 @@ resource "google_iam_workforce_pool_provider" "example" {
366366
}
367367
}
368368
extra_attributes_oauth2_client {
369-
issuer_uri = "https://accounts.thirdparty.com"
369+
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0"
370370
client_id = "client-id"
371371
client_secret {
372372
value {
@@ -421,8 +421,8 @@ resource "google_iam_workforce_pool_provider" "example" {
421421
"google.subject" = "assertion.sub"
422422
}
423423
oidc {
424-
issuer_uri = "https://accounts.thirdparty.com"
425-
client_id = "client-id"
424+
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
425+
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
426426
client_secret {
427427
value {
428428
plain_text = "client-secret"
@@ -434,7 +434,7 @@ resource "google_iam_workforce_pool_provider" "example" {
434434
}
435435
}
436436
extra_attributes_oauth2_client {
437-
issuer_uri = "https://accounts.thirdparty.com"
437+
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0"
438438
client_id = "client-id"
439439
client_secret {
440440
value {

google/services/iamworkforcepool/resource_iam_workforce_pool_provider_test.go

+11-11
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
443443
"google.subject" = "assertion.sub"
444444
}
445445
oidc {
446-
issuer_uri = "https://accounts.thirdparty.com"
447-
client_id = "client-id"
446+
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
447+
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
448448
client_secret {
449449
value {
450450
plain_text = "client-secret"
@@ -457,7 +457,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
457457
}
458458
}
459459
extra_attributes_oauth2_client {
460-
issuer_uri = "https://accounts.thirdparty.com"
460+
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0"
461461
client_id = "client-id"
462462
client_secret {
463463
value {
@@ -493,8 +493,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
493493
"google.subject" = "false"
494494
}
495495
oidc {
496-
issuer_uri = "https://accounts.thirdparty.com"
497-
client_id = "client-id"
496+
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
497+
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
498498
client_secret {
499499
value {
500500
plain_text = "client-secret"
@@ -507,7 +507,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
507507
}
508508
}
509509
extra_attributes_oauth2_client {
510-
issuer_uri = "https://accounts.thirdparty.com/new"
510+
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0/"
511511
client_id = "new-client-id"
512512
client_secret {
513513
value {
@@ -543,8 +543,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
543543
"google.subject" = "false"
544544
}
545545
oidc {
546-
issuer_uri = "https://accounts.thirdparty.com"
547-
client_id = "client-id"
546+
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
547+
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
548548
client_secret {
549549
value {
550550
plain_text = "client-secret"
@@ -580,8 +580,8 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
580580
"google.subject" = "false"
581581
}
582582
oidc {
583-
issuer_uri = "https://accounts.thirdparty.com"
584-
client_id = "client-id"
583+
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
584+
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
585585
client_secret {
586586
value {
587587
plain_text = "client-secret"
@@ -594,7 +594,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
594594
}
595595
}
596596
extra_attributes_oauth2_client {
597-
issuer_uri = "https://accounts.thirdparty.com"
597+
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0"
598598
client_id = "client-id"
599599
client_secret {
600600
value {

website/docs/r/iam_workforce_pool_provider.html.markdown

+6-6
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ resource "google_iam_workforce_pool_provider" "example" {
170170
"google.subject" = "assertion.sub"
171171
}
172172
oidc {
173-
issuer_uri = "https://accounts.thirdparty.com"
174-
client_id = "client-id"
173+
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
174+
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
175175
web_sso_config {
176176
response_type = "CODE"
177177
assertion_claims_behavior = "MERGE_USER_INFO_OVER_ID_TOKEN_CLAIMS"
@@ -183,7 +183,7 @@ resource "google_iam_workforce_pool_provider" "example" {
183183
}
184184
}
185185
extra_attributes_oauth2_client {
186-
issuer_uri = "https://accounts.thirdparty.com"
186+
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0"
187187
client_id = "client-id"
188188
client_secret {
189189
value {
@@ -212,8 +212,8 @@ resource "google_iam_workforce_pool_provider" "example" {
212212
"google.subject" = "assertion.sub"
213213
}
214214
oidc {
215-
issuer_uri = "https://accounts.thirdparty.com"
216-
client_id = "client-id"
215+
issuer_uri = "https://sts.windows.net/826602fe-2101-470c-9d71-ee1343668989/"
216+
client_id = "https://analysis.windows.net/powerbi/connector/GoogleBigQuery"
217217
client_secret {
218218
value {
219219
plain_text = "client-secret"
@@ -225,7 +225,7 @@ resource "google_iam_workforce_pool_provider" "example" {
225225
}
226226
}
227227
extra_attributes_oauth2_client {
228-
issuer_uri = "https://accounts.thirdparty.com"
228+
issuer_uri = "https://login.microsoftonline.com/826602fe-2101-470c-9d71-ee1343668989/v2.0"
229229
client_id = "client-id"
230230
client_secret {
231231
value {

0 commit comments

Comments
 (0)