From 0cb050cee45dbe845cd6fc724e4ef07cfbcbb6ab Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 10 Sep 2019 17:19:35 +0200 Subject: update AuthnRequestValidator to check requested LoA and upgrade LoA if it is to low --- .../asitplus/eidas/specific/connector/MSeIDASNodeConstants.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'connector_lib/src/main/java/at/asitplus') diff --git a/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/MSeIDASNodeConstants.java b/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/MSeIDASNodeConstants.java index 3ca82a66..7b6aec86 100644 --- a/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/MSeIDASNodeConstants.java +++ b/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/MSeIDASNodeConstants.java @@ -54,6 +54,8 @@ public class MSeIDASNodeConstants { //TODO: is not implemented yet public static final String PROP_CONFIG_SP_VALIDATION_DISABLED = "configuration.sp.disableRegistrationRequirement"; + public static final String PROP_EIDAS_REQUEST_LOA_MINIMUM_LEVEL = "auth.eIDAS.node_v2.loa.requested.minimum"; + public static final String PROP_CONFIG_SP_LIST_PREFIX = "sp."; public static final String PROP_CONFIG_SP_UNIQUEIDENTIFIER = EAAFConfigConstants.SERVICE_UNIQUEIDENTIFIER; public static final String PROP_CONFIG_SP_FRIENDLYNAME = "friendlyName"; @@ -114,4 +116,11 @@ public class MSeIDASNodeConstants { public static final List COUNTRY_SELECTION_PARAM_WHITELIST = Arrays.asList(REQ_PARAM_SELECTED_COUNTRY, REQ_PARAM_SELECTED_ENVIRONMENT); + + public enum EIDAS_LOA_LEVEL_ORDER { + low, + substantial, + high + } + } -- cgit v1.2.3 From 04d30c74c92ef519654221ac2485c48df4bb5193 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 10 Sep 2019 18:03:27 +0200 Subject: refactor LoA upgrade to use method from eIDAS Ref. implementation --- .../at/asitplus/eidas/specific/connector/MSeIDASNodeConstants.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'connector_lib/src/main/java/at/asitplus') diff --git a/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/MSeIDASNodeConstants.java b/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/MSeIDASNodeConstants.java index 7b6aec86..eee1ad62 100644 --- a/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/MSeIDASNodeConstants.java +++ b/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/MSeIDASNodeConstants.java @@ -117,10 +117,4 @@ public class MSeIDASNodeConstants { public static final List COUNTRY_SELECTION_PARAM_WHITELIST = Arrays.asList(REQ_PARAM_SELECTED_COUNTRY, REQ_PARAM_SELECTED_ENVIRONMENT); - public enum EIDAS_LOA_LEVEL_ORDER { - low, - substantial, - high - } - } -- cgit v1.2.3