aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-03-20 13:27:39 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-03-20 13:27:39 +0100
commit97535aec057fa529c5e7bb16799e33831c1f5e87 (patch)
tree7c236a153c6dfd01855687295c80f1e50f3380b4 /id/server/idserverlib
parent415364d6b7ff51e643e7eba03d0d8a20d83409c1 (diff)
downloadmoa-id-spss-97535aec057fa529c5e7bb16799e33831c1f5e87.tar.gz
moa-id-spss-97535aec057fa529c5e7bb16799e33831c1f5e87.tar.bz2
moa-id-spss-97535aec057fa529c5e7bb16799e33831c1f5e87.zip
bugfix Organwalter(OW) -> mandate -> BPK: only set OW-BPK if OW use the OW function.
Diffstat (limited to 'id/server/idserverlib')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
index 34a327861..1e4faed66 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java
@@ -1503,14 +1503,15 @@ public class AuthenticationServer implements MOAIDAuthConstants {
try {
- if (session.getUseMandate() && session.isOW()) {
- MISMandate mandate = session.getMISMandate();
+ MISMandate mandate = session.getMISMandate();
+
+ if (session.getUseMandate() && session.isOW()
+ && mandate != null && MiscUtil.isNotEmpty(mandate.getOWbPK())) {
authData.setBPK(mandate.getOWbPK());
authData.setBPKType(Constants.URN_PREFIX_CDID + "+" + "OW");
authData.setIdentityLink(identityLink);
-
Logger.trace("Authenticated User is OW: " + mandate.getOWbPK());
-
+
} else {
if (businessService) {