From a3088068b6d3f6d6719ca5943eec556d01c0655d Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Thu, 1 Jul 2021 07:37:47 +0200 Subject: add new 'errorHandling' type that illustrate any error on application side before forwarding to SP --- .../at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java | 2 +- .../core/impl/idp/auth/services/ProtocolAuthenticationService.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth') diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java index e545cb47..b6bc1056 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java @@ -12,7 +12,7 @@ public interface IErrorService { * Describes the kind of action that should be taken. */ enum ActionType { - TICKET("ticket"), NO_TICKET("no_ticket"); + TICKET("ticket"), NO_TICKET("no_ticket"), ERRORPAGE("errorpage"); private final String name; 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 635cfa0e..49acfadc 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 @@ -241,7 +241,8 @@ public class ProtocolAuthenticationService implements IProtocolAuthenticationSer revisionsLogger.logEvent(protocolRequest, EventConstants.TRANSACTION_ERROR, protocolRequest.getUniqueTransactionIdentifier()); - if (ActionType.TICKET.equals(errorData.getActionType())) { + if (ActionType.TICKET.equals(errorData.getActionType()) + || ActionType.ERRORPAGE.equals(errorData.getActionType())) { if (errorData.getErrorIdTokenForRedirect() != null) { // Put pending request -- cgit v1.2.3