We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7211be4 commit 32db57aCopy full SHA for 32db57a
modules/meshcloud-sso/module.tf
@@ -38,9 +38,12 @@ resource "azuread_application" "meshcloud_sso" {
38
required_resource_access {
39
resource_app_id = data.azuread_application_published_app_ids.well_known.result.MicrosoftGraph
40
41
- resource_access {
42
- id = data.azuread_service_principal.msgraph.oauth2_permission_scope_ids["User.Read"]
43
- type = "Scope"
+ dynamic "resource_access" {
+ for_each = toset(["openid", "email", "profile"])
+ content {
44
+ id = data.azuread_service_principal.msgraph.oauth2_permission_scope_ids[resource_access.value]
45
+ type = "Scope"
46
+ }
47
}
48
49
web {
0 commit comments