I want to use a custom authentication for my Azure static web app. But after the login process, is the callback always a 500.
My staticwebapp.config.json looks like this
{
"routes": [
{
"route": "/login",
"rewrite": "/.auth/login/aad"
},
{
"route": "/logout",
"rewrite": "/.auth/logout"
},
{
"route": "/.auth/login/twitter",
"statusCode": "404"
},
{
"route": "/.auth/login/github",
"statusCode": "404"
},
{
"route": "/*",
"allowedRoles": ["authenticated"]
}
],
"responseOverrides": {
"401": {
"redirect": "/login",
"statusCode": 302
},
"404": {
"rewrite": "/404.html"
}
},
"auth": {
"identityProviders": {
"azureActiveDirectory": {
"registration": {
"openIdIssuer": "https://login.microsoftonline.com/xxxx",
"clientIdSettingName": "AAD_CLIENT_ID",
"clientSecretSettingName": "AAD_CLIENT_SECRET"
}
}
}
}
}
My App Registration -> Authentication Settings
https://..myAppUrl../.auth/login/aad/callback
https://..myAppUrl../.auth/login/aad/
Some other have the same issue, maybe someone here has a solution ?
https://github.com/Azure/static-web-apps/issues/547
Aucun commentaire:
Enregistrer un commentaire