From df1bce487e003b50e403730069ed7343df4f86fc Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 9 Jul 2014 10:50:09 +0200 Subject: set foreigner to true --- .../at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java | 4 +++- .../moa/id/auth/servlet/PEPSConnectorWithLocalSigningServlet.java | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'id') 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); -- cgit v1.2.3