diff options
author | Thomas <> | 2023-03-10 14:32:11 +0100 |
---|---|---|
committer | Thomas <> | 2023-03-10 14:32:11 +0100 |
commit | 3351b61c25619941f516250aaa7082b3ce7cb03c (patch) | |
tree | e58189d79dad810228dc695171314029d49b80c5 /eaaf_core/src/main | |
parent | 1771574e12c6fd4da59851d9e3bc2ed52530b364 (diff) | |
download | EAAF-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/src/main')
-rw-r--r-- | eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java | 3 |
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) { |