From 16a5e33bc2a4832d2d44c18ad1977524ba809463 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 28 May 2014 07:52:10 +0200 Subject: provide baseID should not be used for business service applications --- .../moa/id/protocols/saml1/SAML1AuthenticationServer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'id/server/idserverlib/src/main/java/at') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java index d0e9447ad..08f40f888 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java @@ -183,9 +183,10 @@ public class SAML1AuthenticationServer extends AuthenticationServer { } //set prPersion - boolean provideStammzahl = saml1parameter.isProvideStammzahl(); + boolean provideStammzahl = saml1parameter.isProvideStammzahl() + || oaParam.getBusinessService(); String prPerson = new PersonDataBuilder().build(authData.getIdentityLink(), - provideStammzahl && !oaParam.getBusinessService()); + provideStammzahl); //set Authblock String authBlock = saml1parameter.isProvideAUTHBlock() ? authData @@ -196,7 +197,7 @@ public class SAML1AuthenticationServer extends AuthenticationServer { if (saml1parameter.isProvideIdentityLink()) { ilAssertion = authData.getIdentityLink().getSerializedSamlAssertion(); - if (!saml1parameter.isProvideStammzahl()) + if (!provideStammzahl) ilAssertion = StringUtils.replaceAll(ilAssertion, authData.getIdentityLink() .getIdentificationValue(), ""); } -- cgit v1.2.3