Skip to content

Commit

Permalink
b-283271112 Add "additionalScopes" under webSsoConfig for the "groups" (
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhav-google authored and nevzheng committed Aug 25, 2023
1 parent 7a5ccb4 commit af7728a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mmv1/products/iamworkforcepool/WorkforcePoolProvider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,10 @@ properties:
values:
- :MERGE_USER_INFO_OVER_ID_TOKEN_CLAIMS
- :ONLY_ID_TOKEN_CLAIMS
- !ruby/object:Api::Type::Array
name: additionalScopes
description: |
Additional scopes to request for in the OIDC authentication request on top of scopes requested by default. By default, the `openid`, `profile` and `email` scopes that are supported by the identity provider are requested.
Each additional scope may be at most 256 characters. A maximum of 10 additional scopes may be configured.
required: false
item_type: Api::Type::String
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ resource "google_iam_workforce_pool_provider" "<%= ctx[:primary_resource_id] %>"
web_sso_config {
response_type = "CODE"
assertion_claims_behavior = "MERGE_USER_INFO_OVER_ID_TOKEN_CLAIMS"
additional_scopes = ["groups", "roles"]
}
}
display_name = "Display name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
web_sso_config {
response_type = "CODE"
assertion_claims_behavior = "MERGE_USER_INFO_OVER_ID_TOKEN_CLAIMS"
additional_scopes = ["groups", "roles"]
}
}
display_name = "Display name"
Expand Down Expand Up @@ -216,6 +217,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
web_sso_config {
response_type = "ID_TOKEN"
assertion_claims_behavior = "ONLY_ID_TOKEN_CLAIMS"
additional_scopes = ["new-groups"]
}
}
display_name = "New Display name"
Expand Down Expand Up @@ -247,6 +249,7 @@ resource "google_iam_workforce_pool_provider" "my_provider" {
web_sso_config {
response_type = "ID_TOKEN"
assertion_claims_behavior = "ONLY_ID_TOKEN_CLAIMS"
additional_scopes = ["new-groups"]
}
}
display_name = "New Display name"
Expand Down

0 comments on commit af7728a

Please sign in to comment.