You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If for e.g. the complete app should be guarded by authentication it's necessary to
apply an authenticated role to every route.
Signed-off-by: Tobias Kohlbau <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+66-1Lines changed: 66 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,4 +136,69 @@ export default {
136
136
})
137
137
}
138
138
};
139
-
```
139
+
```
140
+
141
+
### allowedRoles
142
+
143
+
An array of strings containing the roles allowed to access the app. For e.g. if the app needs to be restrictied it's possible to use a [custom role](https://docs.microsoft.com/en-us/azure/static-web-apps/authentication-authorization). *Notice* this only supports securing the complete app. If specific routes should be secured it's best to implement custom authentication within the app itself.
0 commit comments