summaryrefslogtreecommitdiff
path: root/eaaf_core
diff options
context:
space:
mode:
authorThomas <>2023-03-10 14:32:11 +0100
committerThomas <>2023-03-10 14:32:11 +0100
commit3351b61c25619941f516250aaa7082b3ce7cb03c (patch)
treee58189d79dad810228dc695171314029d49b80c5 /eaaf_core
parent1771574e12c6fd4da59851d9e3bc2ed52530b364 (diff)
downloadEAAF-Components-3351b61c25619941f516250aaa7082b3ce7cb03c.tar.gz
EAAF-Components-3351b61c25619941f516250aaa7082b3ce7cb03c.tar.bz2
EAAF-Components-3351b61c25619941f516250aaa7082b3ce7cb03c.zip
fix(ux): add error parameters, if they are available, in case of specific exceptions too
Diffstat (limited to 'eaaf_core')
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java
index 6343769e..153cac50 100644
--- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java
+++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java
@@ -562,7 +562,8 @@ public class ProtocolAuthenticationService implements IProtocolAuthenticationSer
} else if (e instanceof AuthnRequestValidatorException || e instanceof InvalidProtocolRequestException
|| e instanceof ProcessExecutionException || e instanceof ConfigurationException) {
// write error message
- writeHtmlErrorResponse(req, resp, e.getMessage(), internalErrorCode, null,
+ writeHtmlErrorResponse(req, resp, e.getMessage(), internalErrorCode,
+ e instanceof EaafException ? ((EaafException) e).getParams() : null,
statusMessager.mapInternalErrorToExternalError(internalErrorCode), errorData);
} else if (e instanceof EaafException) {