100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Added rememberMe option to Tenant to enable/disable it in the Keycloak realm
Michael Rademaker83b5cb8b142c
diff --git a/model/src/main/java/org/openremote/model/security/Tenant.java b/model/src/main/java/org/openremote/model/security/Tenant.javaindex 6da45a9b2..3c78fce23 100644--- a/model/src/main/java/org/openremote/model/security/Tenant.java+++ b/model/src/main/java/org/openremote/model/security/Tenant.java@@ -63,6 +63,9 @@ public class Tenant {@Transientprotected Boolean duplicateEmailsAllowed;+ @Transient+ protected Boolean rememberMe;+@JsIgnorepublic Tenant() {this(null, null, null, null);@@ -140,6 +143,14 @@ public class Tenant {this.duplicateEmailsAllowed = duplicateEmailsAllowed;}+ public Boolean getRememberMe() {+ return rememberMe;+ }++ public void setRememberMe(Boolean rememberMe) {+ this.rememberMe = rememberMe;+ }+public boolean isActive(double currentTimeMillis) {return enabled != null && enabled&& (notBefore == null || notBefore == 0 || notBefore <= (currentTimeMillis/1000));