aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-22 07:02:42 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-22 07:02:42 -0700
commitf5a9207393463879cfe85e94259ee70d6d5b9980 (patch)
treeef2a00dfc706a29ad3adc9e27a83847ff1243b9d /src/main/java/org/traccar/config
parent009e19b44c5becefb0cb84777c2db62bf1d5005e (diff)
downloadtrackermap-server-f5a9207393463879cfe85e94259ee70d6d5b9980.tar.gz
trackermap-server-f5a9207393463879cfe85e94259ee70d6d5b9980.tar.bz2
trackermap-server-f5a9207393463879cfe85e94259ee70d6d5b9980.zip
Support service admin account
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index a03e47022..3f52fbd96 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -674,6 +674,14 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
+ * A token to login as a virtual admin account. Can be used to restore access in case of issues with regular admin
+ * login. For example, if password is lost and can't be restored.
+ */
+ public static final ConfigKey<String> WEB_SERVICE_ACCOUNT_TOKEN = new StringConfigKey(
+ "web.serviceAccountToken",
+ List.of(KeyType.CONFIG));
+
+ /**
* Cross-origin resource sharing origin header value.
*/
public static final ConfigKey<String> WEB_ORIGIN = new StringConfigKey(