From aa6bb4186317b8f4c9a2c6bdb71d774ee69173c5 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 5 Mar 2015 09:57:56 +0100 Subject: update demo-OA --- .../egovernment/moa/id/demoOA/servlet/pvp2/Authenticate.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'id/oa/src/main/java/at') diff --git a/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/servlet/pvp2/Authenticate.java b/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/servlet/pvp2/Authenticate.java index 00d82296c..4bce49465 100644 --- a/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/servlet/pvp2/Authenticate.java +++ b/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/servlet/pvp2/Authenticate.java @@ -115,18 +115,18 @@ public class Authenticate extends HttpServlet { authReq.setAttributeConsumingServiceIndex(0); authReq.setIssueInstant(new DateTime()); - Subject subject = SAML2Utils.createSAMLObject(Subject.class); - NameID name = SAML2Utils.createSAMLObject(NameID.class); +// Subject subject = SAML2Utils.createSAMLObject(Subject.class); +// NameID name = SAML2Utils.createSAMLObject(NameID.class); Issuer issuer = SAML2Utils.createSAMLObject(Issuer.class); String serviceURL = config.getPublicUrlPreFix(request); if (!serviceURL.endsWith("/")) serviceURL = serviceURL + "/"; - name.setValue(serviceURL); + //name.setValue(serviceURL); issuer.setValue(serviceURL); - subject.setNameID(name); - authReq.setSubject(subject); +// subject.setNameID(name); +// authReq.setSubject(subject); issuer.setFormat(NameIDType.ENTITY); authReq.setIssuer(issuer); -- cgit v1.2.3