aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan <djr2468@gmail.com>2023-04-01 16:48:50 +0100
committerDan <djr2468@gmail.com>2023-04-01 16:48:50 +0100
commit21ccdb1234407fb17f7b96245fb7aab770fa3cbd (patch)
treead959f2ec2b243c47380635ae8f1fa6091712234 /src
parent836fb2221dedae55c3f8457f35294b3753f095c8 (diff)
downloadtrackermap-server-21ccdb1234407fb17f7b96245fb7aab770fa3cbd.tar.gz
trackermap-server-21ccdb1234407fb17f7b96245fb7aab770fa3cbd.tar.bz2
trackermap-server-21ccdb1234407fb17f7b96245fb7aab770fa3cbd.zip
Add OIDC config keys
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/config/Keys.java56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index c207efb1e..77aa9a635 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -610,6 +610,62 @@ public final class Keys {
"ldap.adminGroup",
List.of(KeyType.CONFIG));
+
+ /**
+ * OIDC enable.
+ */
+ public static final ConfigKey<String> OIDC_ENABLE = new BooleanConfigKey(
+ "oidc.enable",
+ List.of(KeyType.CONFIG));
+
+ /**
+ * Force OIDC authentication.
+ */
+ public static final ConfigKey<String> OIDC_FORCE = new BooleanConfigKey(
+ "oidc.force",
+ List.of(KeyType.CONFIG));
+
+ /**
+ * OIDC Client ID.
+ */
+ public static final ConfigKey<String> OIDC_CLIENTID = new StringConfigKey(
+ "oidc.clientId",
+ List.of(KeyType.CONFIG));
+
+ /**
+ * OIDC Client Secret.
+ */
+ public static final ConfigKey<String> OIDC_CLIENTSECRET = new StringConfigKey(
+ "oidc.clientSecret",
+ List.of(KeyType.CONFIG));
+
+ /**
+ * OIDC Authorization URL.
+ */
+ public static final ConfigKey<String> OIDC_AUTHURL = new StringConfigKey(
+ "oidc.authUrl",
+ List.of(KeyType.CONFIG));
+ /**
+ * OIDC Token URL.
+ */
+ public static final ConfigKey<String> OIDC_TOKENURL = new StringConfigKey(
+ "oidc.tokenUrl",
+ List.of(KeyType.CONFIG));
+
+ /**
+ * OIDC User Info URL.
+ */
+ public static final ConfigKey<String> OIDC_USERINFOURL = new StringConfigKey(
+ "oidc.userInfoUrl",
+ List.of(KeyType.CONFIG));
+
+ /**
+ * OIDC group to grant admin access.
+ */
+ public static final ConfigKey<String> OIDC_ADMINGROUP = new StringConfigKey(
+ "oidc.adminGroup",
+ List.of(KeyType.CONFIG));
+
/**
* If no data is reported by a device for the given amount of time, status changes from online to unknown. Value is
* in seconds. Default timeout is 10 minutes.