diff options
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java index 1c74aea55..27f53feed 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java @@ -72,7 +72,7 @@ public class AuthenticationSessionStoreage { } } - public static AuthenticationSession createSession() throws MOADatabaseException, BuildException { + public static AuthenticationSession createSession(String pendingRequestID) throws MOADatabaseException, BuildException { String id = Random.nextRandom(); AuthenticatedSessionStore dbsession = new AuthenticatedSessionStore(); @@ -84,6 +84,8 @@ public class AuthenticationSessionStoreage { dbsession.setCreated(now); dbsession.setUpdated(now); + dbsession.setPendingRequestID(pendingRequestID); + AuthenticationSession session = new AuthenticationSession(id, now); encryptSession(session, dbsession); @@ -366,7 +368,7 @@ public class AuthenticationSessionStoreage { dbsession.setSSOSession(true); dbsession.setSSOsessionid(SSOSessionID); dbsession.setAuthenticated(false); - dbsession.setPendingRequestID(""); + dbsession.setPendingRequestID("empty"); //Store MOASession session.saveOrUpdate(dbsession); @@ -700,6 +702,7 @@ public class AuthenticationSessionStoreage { dbsession = new AuthenticatedSessionStore(); dbsession.setSessionid(id); dbsession.setCreated(now); + dbsession.setPendingRequestID(req.getRequestID()); session = new AuthenticationSession(id, now); } else { @@ -903,7 +906,7 @@ public class AuthenticationSessionStoreage { private static void cleanDelete(AuthenticatedSessionStore result) { try { - result.setSession(new byte[] {}); + result.setSession("blank".getBytes()); MOASessionDBUtils.saveOrUpdate(result); } catch (MOADatabaseException e) { |