aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-11-04 12:32:23 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-11-04 12:32:23 +0100
commit37384244fd52e2ee22608f1504aee825a1966113 (patch)
treeab00145111e933f084a8622f99ca7e1b61026597 /id/server/idserverlib/src/main
parent0acb196f1a070ae31ca9cdb888dbf966460441c6 (diff)
downloadmoa-id-spss-37384244fd52e2ee22608f1504aee825a1966113.tar.gz
moa-id-spss-37384244fd52e2ee22608f1504aee825a1966113.tar.bz2
moa-id-spss-37384244fd52e2ee22608f1504aee825a1966113.zip
remove a not standardize prefix from PVP BPK attribute value.
- this is a workaround for LFRZ Stammportal interfederation
Diffstat (limited to 'id/server/idserverlib/src/main')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java
index d5a6a1b70..d19080c25 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/builder/AuthenticationDataBuilder.java
@@ -368,6 +368,14 @@ public class AuthenticationDataBuilder implements MOAIDAuthConstants {
if (extractor.containsAttribute(PVPConstants.BPK_NAME)) {
String pvpbPK = extractor.getSingleAttributeValue(PVPConstants.BPK_NAME);
+
+ if (pvpbPK.startsWith("bPK:")) {
+ Logger.warn("Attribute " + PVPConstants.BPK_NAME
+ + " contains a not standardize prefix! Staring attribute value correction process ...");
+ pvpbPK = pvpbPK.substring("bPK:".length());
+
+ }
+
String[] spitted = pvpbPK.split(":");
authData.setBPK(spitted[1]);
if (MiscUtil.isEmpty(authData.getBPKType())) {