Make `uiRouteAuth` more flexible
- Dominant language
- TypeScript
- Stars
- 249
- Forks
- 176
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 20
Description
Currently, the `uiRouteAuth` option in the config enforces auth requirements for certain routes:
```json
"uiRouteAuth": {
"enabled": false,
"rules": [
{
"pattern": "/dashboard/*",
"adminOnly": false,
"loginRequired": true
},
{
"pattern": "/admin/*",
"adminOnly": true,
"loginRequired": true
}
]
}
```
The issue is that these routes can be arbitrarily defined in `routes.tsx`, so we would need some way to make sure that the patterns are actually matching to existing routes, or otherwise be able to define the routes dynamically in the config as well.
**Additional context**
https://github.com/finos/git-proxy/pull/1268
Contributor guide
Assessment
This issue has not been assessed yet.