Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

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.java
index 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 {
@Transient
protected Boolean duplicateEmailsAllowed;
+ @Transient
+ protected Boolean rememberMe;
+
@JsIgnore
public 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));