-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstaticwebapp.config.json
More file actions
85 lines (85 loc) · 1.88 KB
/
staticwebapp.config.json
File metadata and controls
85 lines (85 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"routes": [
{
"route": "/api/schema",
"methods": ["GET"],
"allowedRoles": ["anonymous"]
},
{
"route": "/api/*",
"methods": ["PUT", "POST", "PATCH", "DELETE", "GET"],
"allowedRoles": ["authenticated"]
},
{
"route": "/api/*",
"allowedRoles": ["authenticated"]
},
{
"route": "/login",
"rewrite": "/.auth/login/aadbc?post_login_redirect_uri=/"
},
{
"route": "/.auth/login/twitter",
"statusCode": 404
},
{
"route": "/.auth/login/github",
"statusCode": 404
},
{
"route": "/logout",
"redirect": "/.auth/logout"
},
{
"route": "/*",
"allowedRoles": ["authenticated"]
}
],
"navigationFallback": {
"rewrite": "index.html",
"exclude": ["/images/*.{png,jpg,gif}", "/*.{css,scss,js}"]
},
"responseOverrides": {
"400": {
"rewrite": "/invalid-invitation-error.html"
},
"401": {
"redirect": "/login",
"statusCode": 302
},
"403": {
"rewrite": "/custom-forbidden-page.html"
},
"404": {
"rewrite": "/404.html"
}
},
"mimeTypes": {
".json": "text/json",
".js": "text/javascript",
".css": "text/css"
},
"auth": {
"identityProviders": {
"customOpenIdConnectProviders": {
"aadbc": {
"registration": {
"clientIdSettingName": "SWA_CLIENT_ID",
"clientCredential": {
"clientSecretSettingName": "SWA_CLIENT_SECRET"
},
"openIdConnectConfiguration": {
"wellKnownOpenIdConfiguration": "https://cdisclibrary.b2clogin.com/cdisclibrary.onmicrosoft.com/b2c_1a_signupsigninreset/v2.0/.well-known/openid-configuration"
}
},
"login": {
"scopes": ["openid"]
}
}
}
}
},
"platform": {
"apiRuntime": "node:20"
}
}