From 31a4bcf1651cff3e27e35a34aa67effb33996dcb Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Mon, 19 Dec 2022 11:17:56 +0100 Subject: chore(pvp2): read LoA matching-mode from service-provider configuration --- .../modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'eaaf_modules/eaaf_module_pvp2_idp/src/main') diff --git a/eaaf_modules/eaaf_module_pvp2_idp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java b/eaaf_modules/eaaf_module_pvp2_idp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java index 733301be..261f7b2b 100644 --- a/eaaf_modules/eaaf_module_pvp2_idp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java +++ b/eaaf_modules/eaaf_module_pvp2_idp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java @@ -158,13 +158,13 @@ public class Pvp2AssertionBuilder implements PvpConstants { final List reqAuthnContextClassRefIt = reqAuthnContext.getAuthnContextClassRefs(); - // get matching mode from authn. request - String loaMatchingMode = EaafConstants.EIDAS_LOA_MATCHING_MINIMUM; - if (reqAuthnContext.getComparison() != null - && StringUtils.isNotEmpty(reqAuthnContext.getComparison().toString())) { - loaMatchingMode = reqAuthnContext.getComparison().toString(); + // get matching mode from authn. request + String loaMatchingMode = pendingReq.getServiceProviderConfiguration().getLoAMatchingMode(); + if (StringUtils.isEmpty(loaMatchingMode)) { + loaMatchingMode = EaafConstants.EIDAS_LOA_MATCHING_MINIMUM; + } - + // get requested LoAs if (reqAuthnContextClassRefIt.size() == 0) { QaaLevelVerifier.verifyQaaLevel(authData.getEidasQaaLevel(), oaParam.getRequiredLoA(), -- cgit v1.2.3