aboutsummaryrefslogtreecommitdiff
path: root/id/oa
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-03-07 09:44:53 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-03-07 09:44:53 +0100
commit2b13590261375b56c272945b159d67986162be77 (patch)
tree1d53cc106575ec998806201928dd3dc6185f9ffd /id/oa
parentf5576c318bb35ba7e0c59b6b1a590bf52422bf1c (diff)
downloadmoa-id-spss-2b13590261375b56c272945b159d67986162be77.tar.gz
moa-id-spss-2b13590261375b56c272945b159d67986162be77.tar.bz2
moa-id-spss-2b13590261375b56c272945b159d67986162be77.zip
PVP 2.1: add Transient and Unspecified NameIDFormat
* only return a persistent subjectNameID if it is requested or metadata includes only one NameIDFormat with value persistent
Diffstat (limited to 'id/oa')
-rw-r--r--id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/servlet/pvp2/Authenticate.java5
1 files changed, 3 insertions, 2 deletions
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 5bf9c4970..00d82296c 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
@@ -129,10 +129,11 @@ public class Authenticate extends HttpServlet {
authReq.setSubject(subject);
issuer.setFormat(NameIDType.ENTITY);
authReq.setIssuer(issuer);
+
NameIDPolicy policy = SAML2Utils
.createSAMLObject(NameIDPolicy.class);
- policy.setAllowCreate(true);
- policy.setFormat(NameID.PERSISTENT);
+ policy.setAllowCreate(true);
+ policy.setFormat(NameID.PERSISTENT);
authReq.setNameIDPolicy(policy);
String entityname = config.getPVP2IDPMetadataEntityName();