From 3351b61c25619941f516250aaa7082b3ce7cb03c Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Fri, 10 Mar 2023 14:32:11 +0100 Subject: fix(ux): add error parameters, if they are available, in case of specific exceptions too --- .../core/impl/idp/auth/services/ProtocolAuthenticationService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'eaaf_core') 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) { -- cgit v1.2.3