Skip to content

Commit

Permalink
feat(jans-auth-server): preparations for revoke refresh tokens for cl…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyz committed Jan 6, 2022
1 parent 298a35a commit b1cf69b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions model/src/main/java/io/jans/as/model/config/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class Constants {
private Constants() {
}

public static final String ALL = "all";
public static final String SERVER_KEY_OF_CONFIGURATION_ENTRY = "jansAuth_ConfigurationEntryDN";

public static final String BASE_PROPERTIES_FILE_NAME = "jans.properties";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public class AppConfiguration implements Configuration {
private Boolean requireRequestObjectEncryption = false;
private Boolean requirePkce = false;

private Boolean allowAllValueForRevokeEndpoint = false;

private int sectorIdentifierCacheLifetimeInMinutes = 1440;

private String umaConfigurationEndpoint;
Expand Down Expand Up @@ -319,6 +321,15 @@ public void setRequireRequestObjectEncryption(Boolean requireRequestObjectEncryp
this.requireRequestObjectEncryption = requireRequestObjectEncryption;
}

public Boolean getAllowAllValueForRevokeEndpoint() {
if (allowAllValueForRevokeEndpoint == null) allowAllValueForRevokeEndpoint = false;
return allowAllValueForRevokeEndpoint;
}

public void setAllowAllValueForRevokeEndpoint(Boolean allowAllValueForRevokeEndpoint) {
this.allowAllValueForRevokeEndpoint = allowAllValueForRevokeEndpoint;
}

public Boolean getRequirePkce() {
if (requirePkce == null) requirePkce = false;
return requirePkce;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.core.Response;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
Expand All @@ -32,6 +33,8 @@ public class ExecutionContext {
private HttpServletRequest httpRequest;
private HttpServletResponse httpResponse;

private Response.ResponseBuilder responseBuilder;

private Client client;
private AuthorizationGrant grant;

Expand Down Expand Up @@ -239,4 +242,12 @@ public List<SessionId> getUserSessions() {
public void setUserSessions(List<SessionId> userSessions) {
this.userSessions = userSessions;
}

public Response.ResponseBuilder getResponseBuilder() {
return responseBuilder;
}

public void setResponseBuilder(Response.ResponseBuilder responseBuilder) {
this.responseBuilder = responseBuilder;
}
}

0 comments on commit b1cf69b

Please sign in to comment.