aboutsummaryrefslogtreecommitdiff
path: root/id/server
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2016-02-18 14:37:45 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2016-02-18 14:37:45 +0100
commit9bc5c59cdfc5660400636cbe7a15ab40a00efdac (patch)
treeb2852085cf1fd7a01e159eb0d8cb628e00db37f5 /id/server
parent81fdd532bfd5e1ec778b6dcd57516e5c3778cf94 (diff)
downloadmoa-id-spss-9bc5c59cdfc5660400636cbe7a15ab40a00efdac.tar.gz
moa-id-spss-9bc5c59cdfc5660400636cbe7a15ab40a00efdac.tar.bz2
moa-id-spss-9bc5c59cdfc5660400636cbe7a15ab40a00efdac.zip
fix missing revisionslog
Diffstat (limited to 'id/server')
-rw-r--r--id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1Protocol.java19
1 files changed, 13 insertions, 6 deletions
diff --git a/id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1Protocol.java b/id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1Protocol.java
index eeddb92e1..32bd7d099 100644
--- a/id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1Protocol.java
+++ b/id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1Protocol.java
@@ -46,7 +46,6 @@ import at.gv.egovernment.moa.id.config.auth.OAAuthParameter;
import at.gv.egovernment.moa.id.config.auth.data.SAML1ConfigurationParameters;
import at.gv.egovernment.moa.id.moduls.IRequest;
import at.gv.egovernment.moa.id.protocols.AbstractAuthProtocolModulController;
-import at.gv.egovernment.moa.id.protocols.pvp2x.AuthenticationAction;
import at.gv.egovernment.moa.id.protocols.pvp2x.PVPConstants;
import at.gv.egovernment.moa.id.util.ParamValidatorUtils;
import at.gv.egovernment.moa.logging.Logger;
@@ -97,13 +96,21 @@ public class SAML1Protocol extends AbstractAuthProtocolModulController {
}
- SAML1RequestImpl pendingRequest = new SAML1RequestImpl(req);
- pendingRequest.setModule(NAME);
+ SAML1RequestImpl pendingReq = new SAML1RequestImpl(req);
+ pendingReq.setModule(NAME);
+ revisionsLogger.logEvent(MOAIDEventConstants.SESSION_CREATED, pendingReq.getUniqueSessionIdentifier());
+ revisionsLogger.logEvent(MOAIDEventConstants.TRANSACTION_CREATED, pendingReq.getUniqueTransactionIdentifier());
+ revisionsLogger.logEvent(
+ pendingReq.getUniqueSessionIdentifier(),
+ pendingReq.getUniqueTransactionIdentifier(),
+ MOAIDEventConstants.TRANSACTION_IP,
+ req.getRemoteAddr());
+
//preProcess SAML1 Request
- preProcess(req, resp, pendingRequest);
+ preProcess(req, resp, pendingReq);
- performAuthentication(req, resp, pendingRequest);
+ performAuthentication(req, resp, pendingReq);
return;
}
@@ -183,7 +190,7 @@ public class SAML1Protocol extends AbstractAuthProtocolModulController {
pendingRequest.setNeedAuthentication(true);
//set protocol action, which should be executed after authentication
- pendingRequest.setAction(AuthenticationAction.class.getName());
+ pendingRequest.setAction(GetArtifactAction.class.getName());
} catch (WrongParametersException e) {
throw new InvalidProtocolRequestException(e.getMessageId(), e.getParameters());