diff --git a/jans-config-api/docs/jans-config-api-swagger.yaml b/jans-config-api/docs/jans-config-api-swagger.yaml index a2c7414660f..fb5cc87adac 100644 --- a/jans-config-api/docs/jans-config-api-swagger.yaml +++ b/jans-config-api/docs/jans-config-api-swagger.yaml @@ -9215,20 +9215,20 @@ components: type: string selected: type: boolean - userCanEdit: + whitePagesCanView: type: boolean adminCanEdit: type: boolean - adminCanView: + userCanEdit: type: boolean userCanView: type: boolean + adminCanView: + type: boolean adminCanAccess: type: boolean userCanAccess: type: boolean - whitePagesCanView: - type: boolean baseDn: type: string PatchRequest: diff --git a/jans-config-api/server/src/main/java/io/jans/configapi/service/auth/SessionService.java b/jans-config-api/server/src/main/java/io/jans/configapi/service/auth/SessionService.java index d604bf07c99..021ee8256ca 100644 --- a/jans-config-api/server/src/main/java/io/jans/configapi/service/auth/SessionService.java +++ b/jans-config-api/server/src/main/java/io/jans/configapi/service/auth/SessionService.java @@ -28,6 +28,7 @@ import static io.jans.as.model.util.Util.escapeLog; import java.util.ArrayList; +import java.util.Arrays; import java.util.Date; import java.util.List; @@ -39,6 +40,7 @@ public class SessionService { private static final String SID_MSG = "Get Session by sid:{}"; private static final String SID_ERROR = "Failed to load session entry with sid "; + private static final List SESSION_ATTR = Arrays.asList("acr","scope","auth_user","client_id","acr_values","redirect_uri","response_type"); @Inject private Logger logger; @@ -289,7 +291,7 @@ private SessionId excludeAttribute(SessionId session) { private List modifyFilter(List fieldFilterDataList) { - logger.debug("modify filter - fieldFilterDataList:{}", fieldFilterDataList); + logger.debug("Modify filter - fieldFilterDataList:{}", fieldFilterDataList); if (fieldFilterDataList == null || fieldFilterDataList.isEmpty()) { return fieldFilterDataList; } @@ -297,13 +299,18 @@ private List modifyFilter(List fieldFilterData for (FieldFilterData fieldFilterData : fieldFilterDataList) { if (fieldFilterData != null && StringUtils.isNotBlank(fieldFilterData.getField())) { String field = fieldFilterData.getField(); + if(StringUtils.isBlank(field)) { + continue; + } if ("jansUsrDN".equalsIgnoreCase(field)) { // get Dn fieldFilterData.setValue(getDnForUser(fieldFilterData.getValue())); + }else if(SESSION_ATTR.contains(field)) { + fieldFilterData.setField("jansSessAttr."+field); } } } - + logger.info("After modification of session filter - fieldFilterDataList:{}", fieldFilterDataList); return fieldFilterDataList; }