aboutsummaryrefslogtreecommitdiff
path: root/id/server
diff options
context:
space:
mode:
Diffstat (limited to 'id/server')
-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(), "");
}