Skip to content

Commit

Permalink
Update staticwebapp.config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
v1212 authored Jun 20, 2024
1 parent 56d3f3c commit 919d270
Showing 1 changed file with 1 addition and 58 deletions.
59 changes: 1 addition & 58 deletions src/staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -1,58 +1 @@
{
"trailingSlash": "auto",
"auth": {
"identityProviders": {
"azureActiveDirectory": {
"registration": {
"openIdIssuer": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0",
"clientIdSettingName": "AZURE_CLIENT_ID",
"clientSecretSettingName": "AZURE_CLIENT_SECRET"
}
}
}
},
"routes": [
{
"route": "/test.html",
"allowedRoles": ["authenticated"]
},
{
"route": "/private.html",
"allowedRoles": ["customrole"]
},
{
"route": "/login",
"redirect": "jwlogin.html"
},
{
"route": "/logout",
"redirect": "/.auth/logout"
},
{
"route": "/*",
"allowedRoles": ["anonymous"]
}
],
"navigationFallback": {
"rewrite": "fallback.html",
"exclude": ["/images/*.{png,jpg,gif}", "/css/*", "/1/*.html", "/profile*"]
},
"responseOverrides": {
"400": {
"rewrite": "/400.html"
},
"401": {
"rewrite": "/login",
"status": 302
},
"403": {
"rewrite": "/403.html"
},
"404": {
"rewrite": "/404.html"
}
},
"mimeTypes": {
".json": "text/json"
}
}

0 comments on commit 919d270

Please sign in to comment.