summaryrefslogtreecommitdiffstats
path: root/ogcp/cfg/ogcp.json
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-12-03 15:25:44 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2021-12-10 13:06:18 +0100
commit695c19f86ec361db8b316358ac9a0609ecfb020f (patch)
treef809c608c1438c4c05161d6506846172c1f91f01 /ogcp/cfg/ogcp.json
parenta5681a4b850b198107d025213c5c8d26cd5634d2 (diff)
Add scope permission support
ogCP limits which scopes can use each user. Configuration file stores allowed scopes by their names. Leave scope list empty to give a user permissions on all scopes.
Diffstat (limited to 'ogcp/cfg/ogcp.json')
-rw-r--r--ogcp/cfg/ogcp.json8
1 files changed, 6 insertions, 2 deletions
diff --git a/ogcp/cfg/ogcp.json b/ogcp/cfg/ogcp.json
index b5f3606..3f8a82c 100644
--- a/ogcp/cfg/ogcp.json
+++ b/ogcp/cfg/ogcp.json
@@ -5,11 +5,15 @@
"USERS": [
{
"USER": "admin",
- "PASS": "pass"
+ "PASS": "pass",
+ "SCOPES": [ ]
},
{
"USER": "user",
- "PASS": "pass"
+ "PASS": "pass",
+ "SCOPES": [
+ "Unidad Organizativa (Default)"
+ ]
}
]
}