aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-07-09 10:50:09 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-07-09 10:50:09 +0200
commitdf1bce487e003b50e403730069ed7343df4f86fc (patch)
tree7ded10a1e174762cc0f55a3ba47503030a682aeb /id/server/idserverlib/src
parent8f0153f4c6e2fd63dab1f3820b1f61521d1c2220 (diff)
downloadmoa-id-spss-df1bce487e003b50e403730069ed7343df4f86fc.tar.gz
moa-id-spss-df1bce487e003b50e403730069ed7343df4f86fc.tar.bz2
moa-id-spss-df1bce487e003b50e403730069ed7343df4f86fc.zip
set foreigner to true
Diffstat (limited to 'id/server/idserverlib/src')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java4
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorWithLocalSigningServlet.java6
2 files changed, 7 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java
index ee1d1728a..64447b20e 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java
@@ -354,7 +354,9 @@ public class PEPSConnectorServlet extends AuthServlet {
if (identityLink == null) {
Logger.error("SZR Gateway did not return an identity link.");
throw new MOAIDException("stork.10", null);
- }
+ }
+ moaSession.setForeigner(true);
+
Logger.info("Received Identity Link from SZR Gateway");
moaSession.setIdentityLink(identityLink);
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorWithLocalSigningServlet.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorWithLocalSigningServlet.java
index e2f6e50b1..62e15a379 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorWithLocalSigningServlet.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorWithLocalSigningServlet.java
@@ -249,7 +249,8 @@ public class PEPSConnectorWithLocalSigningServlet extends AuthServlet {
Logger.debug("Add full STORK AuthnResponse to MOA session");
moaSession.setStorkAuthnResponse(request.getParameter("SAMLResponse"));//TODO ask Florian/Thomas authnResponse?
-
+ moaSession.setForeigner(true);
+
//session is implicit stored in changeSessionID!!!!
String newMOASessionID = AuthenticationSessionStoreage.changeSessionID(moaSession);
@@ -479,7 +480,8 @@ public class PEPSConnectorWithLocalSigningServlet extends AuthServlet {
X509Certificate cert = getSignerCertificate(citizenSignature);
moaSession.setSignerCertificate(cert);
-
+ moaSession.setForeigner(true);
+
} catch (Throwable e) {
Logger.error("Could not extract citizen signature from C-PEPS", e);