aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-05-28 07:52:10 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-05-28 07:52:10 +0200
commit16a5e33bc2a4832d2d44c18ad1977524ba809463 (patch)
treeb9c0de7960455bef4e47890eafc17595f10a9944 /id/server/idserverlib
parent0ee3133baaeb18afdd141c19726d9caa031ca2e6 (diff)
downloadmoa-id-spss-16a5e33bc2a4832d2d44c18ad1977524ba809463.tar.gz
moa-id-spss-16a5e33bc2a4832d2d44c18ad1977524ba809463.tar.bz2
moa-id-spss-16a5e33bc2a4832d2d44c18ad1977524ba809463.zip
provide baseID should not be used for business service applications
Diffstat (limited to 'id/server/idserverlib')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/saml1/SAML1AuthenticationServer.java7
1 files changed, 4 insertions, 3 deletions
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(), "");
}