Skip to content

Commit eab8b8f

Browse files
committed
Fixed auth config
1 parent accefc2 commit eab8b8f

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.azure/applications/dashboard/main.bicep

+17-3
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ resource containerAppAuth 'Microsoft.App/containerApps/authConfigs@2023-05-01' =
8787
identityProviders: {
8888
azureActiveDirectory: {
8989
enabled: true
90+
login: {
91+
disableWWWAuthenticate: false
92+
}
9093
registration: {
9194
clientId: appRegistrationId
9295
clientSecretSettingName: 'app-registration-client-secret'
@@ -101,13 +104,24 @@ resource containerAppAuth 'Microsoft.App/containerApps/authConfigs@2023-05-01' =
101104
groups: [
102105
allowedGroupId
103106
]
107+
identities: [
108+
allowedGroupId
109+
]
104110
}
111+
allowedApplications: [
112+
'${appRegistrationId}'
113+
]
114+
}
115+
jwtClaimChecks: {
116+
allowedClientApplications: [
117+
'${appRegistrationId}'
118+
]
119+
allowedGroups: [
120+
allowedGroupId
121+
]
105122
}
106123
}
107124
}
108125
}
109-
globalValidation: {
110-
unauthenticatedClientAction: 'RedirectToLoginPage'
111-
}
112126
}
113127
}

0 commit comments

Comments
 (0)