It's a bit weird but I created Azure Static Web App with Azure Active Directory Auth. Now, I've added an OIDC provider (Azure B2C in my case) and the app stopped redirecting to the auth providers. Neither /.auth/login/b2c
nor /.auth/login/aad
.
It literally redirects to /.auth/login/aad
but not continuing to AD login page.
my code:
...
"auth": {
"identityProviders": {
"customOpenIdConnectProviders": {
"b2c": {
"enabled": true,
"registration": {
"clientIdSettingName": "<clientId>",
"clientCredential": {
"clientSecretSettingName": "<secredId>"
},
"openIdConnectConfiguration": {
"wellKnownOpenIdConfiguration":
"https://<b2cName>.b2clogin.com/<b2cName>.onmicrosoft.com/B2C_1_signin/v2.0/.well-known/openid-configuration"
}
},
"login": {
"nameClaimType": "emails",
"scopes": ["openid"]
}
}
}
}
}
Not sure where's the problem.