From 4b3f1de1be68686f12d8a412d3b6a6e5d1f4c389 Mon Sep 17 00:00:00 2001 From: Manoj Garai Date: Thu, 14 Mar 2024 11:46:41 +0000 Subject: [PATCH] Add active and statusChangedOn fields --- .../oauth2/model/ClientDetailsEntity.java | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/openid-connect-common/src/main/java/org/mitre/oauth2/model/ClientDetailsEntity.java b/openid-connect-common/src/main/java/org/mitre/oauth2/model/ClientDetailsEntity.java index d67a6b4b2..04d9fc13e 100644 --- a/openid-connect-common/src/main/java/org/mitre/oauth2/model/ClientDetailsEntity.java +++ b/openid-connect-common/src/main/java/org/mitre/oauth2/model/ClientDetailsEntity.java @@ -149,6 +149,8 @@ public class ClientDetailsEntity implements ClientDetails { private Date createdAt; // time the client was created private boolean clearAccessTokensOnRefresh = true; // do we clear access tokens on refresh? private Integer deviceCodeValiditySeconds; // timeout for device codes + private boolean active = true; + private Date statusChangedOn; /** fields for UMA */ private Set claimsRedirectUris; @@ -982,6 +984,38 @@ public class ClientDetailsEntity implements ClientDetails { this.clearAccessTokensOnRefresh = clearAccessTokensOnRefresh; } + /** + * @return the active + */ + @Basic + @Column(name = "active") + public boolean isActive() { + return active; + } + + /** + * @param active the active to set + */ + public void setActive(boolean active) { + this.active = active; + } + + /** + * @return the status changed on + */ + @Basic + @Column(name = "status_changed_on") + public Date getStatusChangedOn() { + return statusChangedOn; + } + + /** + * @param statusChangedOn the status changed on to set + */ + public void setStatusChangedOn(Date statusChangedOn) { + this.statusChangedOn = statusChangedOn; + } + /** * @return the claimsRedirectUris */