aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorDaniel <djr2468@gmail.com>2023-04-05 17:59:04 +0100
committerDaniel <djr2468@gmail.com>2023-04-05 17:59:04 +0100
commitc56b136a328bc1781ccc74aa27fdecf4a17b9595 (patch)
tree1232cadf61a35fbe653ecdb02a059ed0bab6bfd8 /src/main/java/org/traccar/config
parent9ab4a6e303c0e8a4997252b4c6a8b2dd601d73af (diff)
downloadtrackermap-server-c56b136a328bc1781ccc74aa27fdecf4a17b9595.tar.gz
trackermap-server-c56b136a328bc1781ccc74aa27fdecf4a17b9595.tar.bz2
trackermap-server-c56b136a328bc1781ccc74aa27fdecf4a17b9595.zip
Added openid.allowGroup
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 3ed6c6026..363d4a472 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -673,6 +673,15 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * OpenID Connect group to restrict access to.
+ * If this is not provided, all OpenID users will have access to Traccar.
+ * This option will only work if your OpenID provider supports the groups scope.
+ */
+ public static final ConfigKey<String> OPENID_ALLOWGROUP = new StringConfigKey(
+ "openid.allowGroup",
+ List.of(KeyType.CONFIG));
+
+ /**
* OpenID Connect group to grant admin access.
* If this is not provided, no groups will be granted admin access.
* This option will only work if your OpenID provider supports the groups scope.