From a6162a8bef1ba3be301897120cbce84b1db18482 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Fri, 20 Jul 2018 14:54:41 +0200 Subject: some eventcode updates --- .../gv/egiz/eaaf/core/api/idp/auth/IAuthenticationManager.java | 9 ++++----- .../impl/idp/controller/tasks/FinalizeAuthenticationTask.java | 5 ++++- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'eaaf_core/src/main') diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/IAuthenticationManager.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/IAuthenticationManager.java index 10cdad8f..27045604 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/IAuthenticationManager.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/IAuthenticationManager.java @@ -36,11 +36,10 @@ import at.gv.egiz.eaaf.core.exceptions.EAAFException; public interface IAuthenticationManager { - //TODO - public static int EVENT_AUTHENTICATION_PROCESS_FOR_SP = -1; - public static int EVENT_AUTHENTICATION_PROCESS_STARTED = -1; - public static int EVENT_AUTHENTICATION_PROCESS_FINISHED = -1; - public static int EVENT_AUTHENTICATION_PROCESS_ERROR = -1; + public static int EVENT_AUTHENTICATION_PROCESS_FOR_SP = 4003; + public static int EVENT_AUTHENTICATION_PROCESS_STARTED = 4000; + public static int EVENT_AUTHENTICATION_PROCESS_FINISHED = 4001; + public static int EVENT_AUTHENTICATION_PROCESS_ERROR = 4002; /** diff --git a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/controller/tasks/FinalizeAuthenticationTask.java b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/controller/tasks/FinalizeAuthenticationTask.java index ad187a91..6934f121 100644 --- a/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/controller/tasks/FinalizeAuthenticationTask.java +++ b/eaaf_core/src/main/java/at/gv/egiz/eaaf/core/impl/idp/controller/tasks/FinalizeAuthenticationTask.java @@ -34,6 +34,7 @@ import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import at.gv.egiz.eaaf.core.api.data.EAAFConstants; +import at.gv.egiz.eaaf.core.api.idp.auth.IAuthenticationManager; import at.gv.egiz.eaaf.core.api.idp.process.ExecutionContext; import at.gv.egiz.eaaf.core.exceptions.EAAFException; import at.gv.egiz.eaaf.core.exceptions.TaskExecutionException; @@ -63,7 +64,9 @@ public class FinalizeAuthenticationTask extends AbstractAuthServletTask { log.info("AuthProcess finished. Redirect to Protocol Dispatcher."); performRedirectToProtocolFinialization(pendingReq, response); - + + revisionsLogger.logEvent(pendingReq, IAuthenticationManager.EVENT_AUTHENTICATION_PROCESS_FINISHED); + } catch (EAAFException e) { throw new TaskExecutionException(pendingReq, e.getMessage(), e); -- cgit v1.2.3