summaryrefslogtreecommitdiff
path: root/eaaf_core/src/main
diff options
context:
space:
mode:
authorThomas <>2021-07-01 07:37:47 +0200
committerThomas <>2021-07-01 07:37:47 +0200
commita3088068b6d3f6d6719ca5943eec556d01c0655d (patch)
tree7344db320628814fd83fce7549e78506b6b56ca9 /eaaf_core/src/main
parent108df5e1cc640070d1b03fb2dfd99306e661b8fe (diff)
downloadEAAF-Components-a3088068b6d3f6d6719ca5943eec556d01c0655d.tar.gz
EAAF-Components-a3088068b6d3f6d6719ca5943eec556d01c0655d.tar.bz2
EAAF-Components-a3088068b6d3f6d6719ca5943eec556d01c0655d.zip
add new 'errorHandling' type that illustrate any error on application side before forwarding to SP
Diffstat (limited to 'eaaf_core/src/main')
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/IErrorService.java2
-rw-r--r--eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/auth/services/ProtocolAuthenticationService.java3
2 files changed, 3 insertions, 2 deletions
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