aboutsummaryrefslogtreecommitdiff
path: root/eidas_modules/authmodule-eIDAS-v2/src
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2018-09-13 09:14:15 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2018-09-13 09:14:15 +0200
commit611b79ba1e87b90367aab1c4f901fef352cdf856 (patch)
tree5858da98e290ee45b42739b0ee80fa7ca684cef7 /eidas_modules/authmodule-eIDAS-v2/src
parent48c01192e1be9143eca957140aed879018956c45 (diff)
downloadNational_eIDAS_Gateway-611b79ba1e87b90367aab1c4f901fef352cdf856.tar.gz
National_eIDAS_Gateway-611b79ba1e87b90367aab1c4f901fef352cdf856.tar.bz2
National_eIDAS_Gateway-611b79ba1e87b90367aab1c4f901fef352cdf856.zip
update error message
Diffstat (limited to 'eidas_modules/authmodule-eIDAS-v2/src')
-rw-r--r--eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/tasks/GenerateAuthnRequestTask.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/tasks/GenerateAuthnRequestTask.java b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/tasks/GenerateAuthnRequestTask.java
index eefa2b97..eb020d3f 100644
--- a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/tasks/GenerateAuthnRequestTask.java
+++ b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/authmodule_eIDASv2/tasks/GenerateAuthnRequestTask.java
@@ -188,7 +188,9 @@ public class GenerateAuthnRequestTask extends AbstractAuthServletTask {
if (StringUtils.isEmpty(forwardURL)) {
log.warn("NO ForwardURL defined in configuration. Can NOT forward to eIDAS node! Process stops");
- throw new EAAFConfigurationException("config.08", new Object[] {Constants.CONIG_PROPS_EIDAS_NODE_FORWARD_URL});
+ throw new EAAFConfigurationException("config.08", new Object[] {
+ (environment==null)?Constants.CONIG_PROPS_EIDAS_NODE_FORWARD_URL:Constants.CONIG_PROPS_EIDAS_NODE_FORWARD_URL+"."+environment
+ });
}
log.debug("ForwardURL: " + forwardURL + " selected to forward eIDAS request");