diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2018-07-20 14:54:41 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2018-07-20 14:54:41 +0200 |
commit | a6162a8bef1ba3be301897120cbce84b1db18482 (patch) | |
tree | 45f83049aa3a6cc482a5b7d91a838b74ed2e2351 /eaaf_core/src/main | |
parent | 84a86ceddf89f4a1a04396a37742a892f09ffafb (diff) | |
download | EAAF-Components-a6162a8bef1ba3be301897120cbce84b1db18482.tar.gz EAAF-Components-a6162a8bef1ba3be301897120cbce84b1db18482.tar.bz2 EAAF-Components-a6162a8bef1ba3be301897120cbce84b1db18482.zip |
some eventcode updates
Diffstat (limited to 'eaaf_core/src/main')
2 files changed, 8 insertions, 6 deletions
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); |