diff --git a/jans-config-api/docs/jans-config-api-swagger.yaml b/jans-config-api/docs/jans-config-api-swagger.yaml index c1a1c82474a..69e873ce172 100644 --- a/jans-config-api/docs/jans-config-api-swagger.yaml +++ b/jans-config-api/docs/jans-config-api-swagger.yaml @@ -9339,18 +9339,18 @@ components: type: boolean whitePagesCanView: type: boolean - adminCanAccess: - type: boolean - userCanAccess: - type: boolean - adminCanView: - type: boolean userCanView: type: boolean userCanEdit: type: boolean + userCanAccess: + type: boolean + adminCanAccess: + type: boolean adminCanEdit: type: boolean + adminCanView: + type: boolean baseDn: type: string PatchRequest: @@ -10211,8 +10211,6 @@ components: type: boolean lockMessageConfig: $ref: '#/components/schemas/LockMessageConfig' - fapi: - type: boolean allResponseTypesSupported: uniqueItems: true type: array @@ -10222,6 +10220,8 @@ components: - code - token - id_token + fapi: + type: boolean AuthenticationFilter: required: - baseDn @@ -10988,10 +10988,10 @@ components: type: array items: type: object - displayValue: - type: string value: type: object + displayValue: + type: string LocalizedString: type: object properties: @@ -11861,6 +11861,8 @@ components: type: string online_access: type: boolean + authorization_challenge: + type: boolean attributes: type: object additionalProperties: diff --git a/jans-config-api/plugins/docs/user-mgt-plugin-swagger.yaml b/jans-config-api/plugins/docs/user-mgt-plugin-swagger.yaml index 9113a738b01..a23d9c4e828 100644 --- a/jans-config-api/plugins/docs/user-mgt-plugin-swagger.yaml +++ b/jans-config-api/plugins/docs/user-mgt-plugin-swagger.yaml @@ -863,10 +863,10 @@ components: type: array items: type: object - displayValue: - type: string value: type: object + displayValue: + type: string CustomUser: type: object properties: diff --git a/jans-config-api/server/src/main/java/io/jans/configapi/rest/resource/auth/AcrsResource.java b/jans-config-api/server/src/main/java/io/jans/configapi/rest/resource/auth/AcrsResource.java index ba92e2a1efd..58d556e9a28 100644 --- a/jans-config-api/server/src/main/java/io/jans/configapi/rest/resource/auth/AcrsResource.java +++ b/jans-config-api/server/src/main/java/io/jans/configapi/rest/resource/auth/AcrsResource.java @@ -30,6 +30,8 @@ import io.swagger.v3.oas.annotations.responses.ApiResponses; import io.swagger.v3.oas.annotations.security.*; +import java.util.ArrayList; +import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.Optional; @@ -202,7 +204,7 @@ public boolean isValidAgamaDeployment(String authenticationMode) { } log.info(" agamaAcr:{},", agamaAcr); - if (keys != null && !keys.isEmpty() && keys.contains(agamaAcr)) { + if (!keys.isEmpty() && keys.contains(agamaAcr)) { log.debug(" keys.contains(agamaAcr):{},", keys.contains(agamaAcr)); isValid = true; } @@ -213,24 +215,24 @@ public boolean isValidAgamaDeployment(String authenticationMode) { private Set getDirectLaunchFlows(List agamaDeploymentList) { log.info(" agamaDeploymentList:{}", agamaDeploymentList); - Set keys = null; - List noDirectLaunchFlows = null; + Set keys = new HashSet<>(); + List noDirectLaunchFlows = new ArrayList<>(); if (agamaDeploymentList == null || agamaDeploymentList.isEmpty()) { return keys; } for (Deployment deployment : agamaDeploymentList) { - log.debug("Agama deployment:{},", deployment); + log.info("Agama deployment:{}, deployment.getId():{},", deployment, deployment.getId()); if (deployment.getDetails() != null && deployment.getDetails().getFlowsError() != null) { - keys = deployment.getDetails().getFlowsError().keySet(); - log.debug(" Agama flow keys:{},", keys); + keys.addAll(deployment.getDetails().getFlowsError().keySet()); + log.info("\n Agama flow keys:{},", keys); - if (deployment.getDetails().getProjectMetadata() != null) { - noDirectLaunchFlows = deployment.getDetails().getProjectMetadata().getNoDirectLaunchFlows(); + if (deployment.getDetails().getProjectMetadata() != null && deployment.getDetails().getProjectMetadata().getNoDirectLaunchFlows()!=null) { + noDirectLaunchFlows.addAll(deployment.getDetails().getProjectMetadata().getNoDirectLaunchFlows()); } } } - log.debug("All deployed agama keys:{}, noDirectLaunchFlows:{}", keys, noDirectLaunchFlows); - if (keys != null && !keys.isEmpty() && noDirectLaunchFlows != null) { + log.info("\n All deployed agama keys:{}, noDirectLaunchFlows:{}", keys, noDirectLaunchFlows); + if (!keys.isEmpty() && !noDirectLaunchFlows.isEmpty()) { keys.removeAll(noDirectLaunchFlows); } log.info("Final agama main flow keys:{}", keys);