aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/AbstractEidProcessor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/AbstractEidProcessor.java b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/AbstractEidProcessor.java
index 80348f3d..57b8ab16 100644
--- a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/AbstractEidProcessor.java
+++ b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/handler/AbstractEidProcessor.java
@@ -322,8 +322,9 @@ public abstract class AbstractEidProcessor implements INationalEidProcessor {
}
private void buildNameIdPolicy(Builder authnRequestBuilder, String countryCode) {
+ String ccSelector = countryCode != null ? "." + countryCode.toLowerCase() : "";
String ccSpecificPolicy = basicConfig.getBasicConfiguration(
- Constants.CONFIG_PROP_EIDAS_NODE_NAMEIDFORMAT + "." + countryCode.toLowerCase());
+ Constants.CONFIG_PROP_EIDAS_NODE_NAMEIDFORMAT + ccSelector);
if (StringUtils.isNotEmpty(ccSpecificPolicy)) {
log.debug("Using specific nameIdFormat:{} to request: {}", ccSpecificPolicy, countryCode);