diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-05-22 16:55:26 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-05-22 16:55:26 +0200 |
commit | f18b50f5924b12dc7ab751889125784f4ba8a8d6 (patch) | |
tree | dc56bbe88a4490c0a55fa38aa64ee0694e12c391 /id/server/moa-id-commons/src/main | |
parent | f153fc8cc3ddd496cc43b44f6933318f31a3a12c (diff) | |
download | moa-id-spss-f18b50f5924b12dc7ab751889125784f4ba8a8d6.tar.gz moa-id-spss-f18b50f5924b12dc7ab751889125784f4ba8a8d6.tar.bz2 moa-id-spss-f18b50f5924b12dc7ab751889125784f4ba8a8d6.zip |
always store interfederated IDPs for SLO
Diffstat (limited to 'id/server/moa-id-commons/src/main')
2 files changed, 19 insertions, 1 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java index 5cfb1bb92..8bad43431 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/AuthenticatedSessionStore.java @@ -59,7 +59,7 @@ import org.hibernate.annotations.DynamicUpdate; @NamedQuery(name="getActiveOAWithSessionIDandOAIDandProtocol", query = "select authenticatedsessionstore from AuthenticatedSessionStore authenticatedsessionstore join fetch authenticatedsessionstore.activeOAsessions activeOAsessions where activeOAsessions.oaurlprefix = :oaID and activeOAsessions.protocolType = :protocol and authenticatedsessionstore.sessionid = :sessionID"), @NamedQuery(name="getMOASessionWithNameIDandOAID", query = "select authenticatedsessionstore from AuthenticatedSessionStore authenticatedsessionstore join fetch authenticatedsessionstore.activeOAsessions activeOAsessions where activeOAsessions.oaurlprefix = :oaID and activeOAsessions.userNameID = :nameID"), @NamedQuery(name="getInterfederatedIDPForAttributeQueryWithSessionID", query = "select authenticatedsessionstore from AuthenticatedSessionStore authenticatedsessionstore join fetch authenticatedsessionstore.inderfederation inderfederations where inderfederations.attributesRequested is false and authenticatedsessionstore.sessionid = :sessionID"), - @NamedQuery(name="getInterfederatedIDPForSSOWithSessionID", query = "select authenticatedsessionstore from AuthenticatedSessionStore authenticatedsessionstore join fetch authenticatedsessionstore.inderfederation inderfederations where inderfederations.attributesRequested is true and authenticatedsessionstore.sessionid = :sessionID order by inderfederations.QAALevel DESC"), + @NamedQuery(name="getInterfederatedIDPForSSOWithSessionID", query = "select authenticatedsessionstore from AuthenticatedSessionStore authenticatedsessionstore join fetch authenticatedsessionstore.inderfederation inderfederations where inderfederations.attributesRequested is true and inderfederations.storeSSOInformation is true and authenticatedsessionstore.sessionid = :sessionID order by inderfederations.QAALevel DESC"), @NamedQuery(name="getInterfederatedIDPForSSOWithSessionIDIDPID", query = "select authenticatedsessionstore from AuthenticatedSessionStore authenticatedsessionstore join fetch authenticatedsessionstore.inderfederation inderfederations where inderfederations.attributesRequested is true and authenticatedsessionstore.sessionid = :sessionID and inderfederations.idpurlprefix = :idpID") }) diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/InterfederationSessionStore.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/InterfederationSessionStore.java index 1fcdd9b9b..448754f76 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/InterfederationSessionStore.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/dao/session/InterfederationSessionStore.java @@ -65,6 +65,9 @@ public class InterfederationSessionStore implements Serializable{ @Column(name = "attributesRequested", unique=false, nullable=true) private boolean attributesRequested; + @Column(name = "storeSSOInformation", unique=false, nullable=true) + private boolean storeSSOInformation = false; + @Column(name = "created", updatable=false, nullable=false) // @Temporal(TemporalType.TIMESTAMP) private Date created; @@ -190,6 +193,21 @@ public class InterfederationSessionStore implements Serializable{ QAALevel = qAALevel; } + /** + * @return the storeSSOInformation + */ + public boolean isStoreSSOInformation() { + return storeSSOInformation; + } + + /** + * @param storeSSOInformation the storeSSOInformation to set + */ + public void setStoreSSOInformation(boolean storeSSOInformation) { + this.storeSSOInformation = storeSSOInformation; + } + + } |