Azure / Azure/static-web-apps

500 error from Server on Auth Callback from B2C

Open
#479 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Using Azure AD B2C as an auth provider, I receive a 500 error upon callback. There are no logs (I do not use Functions). How can you debug with no server logs? My staticwebapp.conig.json is below.
The url response is of the form "../.auth/login/AzureB2C/callback?state=%2f.auth%2fcomplete&code=eyJraW....."

`{
"auth": {
"identityProviders": {
"customOpenIdConnectProviders": {
"AzureB2C": {
"registration": {
"clientIdSettingName": "",
"clientCredential": {
"clientSecretSettingName": ""
},
"openIdConnectConfiguration": {
"wellKnownOpenIdConfiguration": "https://.b2clogin.com/.onmicrosoft.com/v2.0/.well-known/openid-configuration?p=B2C_1_Default"
}
},
"login": {
"nameClaimType": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",
"scopes": ["openid"],
"loginParameterNames": []
}
}
}
}
},
"navigationFallback": {
"rewrite": "index.html",
"exclude": [
"/images/*.{png,jpg,gif}",
"/css/*"
]
},
"mimeTypes": {
".json": "text/json"
},
"routes": [
{
"route": "/login",
"rewrite": "/.auth/login/AzureB2C"
}
]
}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.