aboutsummaryrefslogtreecommitdiff
path: root/id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2019-03-05 09:06:52 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2019-03-05 09:06:52 +0100
commitd0ea99676485e559445df05e937bf899a50308bc (patch)
tree5fcb27d2b869bbfed0185283098d312febda2249 /id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java
parent378e00b2039eca7139733c99d9ef4dc618f041f1 (diff)
downloadmoa-id-spss-d0ea99676485e559445df05e937bf899a50308bc.tar.gz
moa-id-spss-d0ea99676485e559445df05e937bf899a50308bc.tar.bz2
moa-id-spss-d0ea99676485e559445df05e937bf899a50308bc.zip
fix attribute escaping problem in IdentityLinkAssertionParser and move the escaping into SL1.0 AuthBlock builder and validator
this fix can be deactivated by property: 'configuration.bugfix.enable.idl.escaping' to get backward compatibility
Diffstat (limited to 'id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java')
-rw-r--r--id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java b/id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java
index 64a4bae63..7a9557baf 100644
--- a/id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java
+++ b/id/server/modules/moa-id-modules-saml1/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java
@@ -294,10 +294,11 @@ public class SAML1AuthenticationServer extends AuthenticationServer {
familyName.setPrimary("undefined");
name.getGivenName().add(authData.getGivenName());
person.setDateOfBirth(authData.getFormatedDateOfBirth());
-
+
JAXBContext jc = JAXBContext.newInstance("at.gv.util.xsd.persondata");
Marshaller m = jc.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
+ m.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");
// m.setProperty("com.sun.xml.bind.namespacePrefixMapper", new NamespacePrefixMapper() {
// public String getPreferredPrefix(String arg0, String arg1, boolean arg2) {