aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-05-12 16:16:36 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-05-12 16:16:36 +0200
commit9a377f533a992d19fe264fbd9fd0b096504aba37 (patch)
treeebf6d4b6d17ab740ce70a302a3aa2de8b3c7345e /id/ConfigWebTool/src/main
parent278b9c49645426ae7debfc6f649f2f6550464df0 (diff)
downloadmoa-id-spss-9a377f533a992d19fe264fbd9fd0b096504aba37.tar.gz
moa-id-spss-9a377f533a992d19fe264fbd9fd0b096504aba37.tar.bz2
moa-id-spss-9a377f533a992d19fe264fbd9fd0b096504aba37.zip
fix some interfederation problems
Diffstat (limited to 'id/ConfigWebTool/src/main')
-rw-r--r--id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/InterfederationIDPAction.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/InterfederationIDPAction.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/InterfederationIDPAction.java
index 7a05d6497..215fd9a17 100644
--- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/InterfederationIDPAction.java
+++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/InterfederationIDPAction.java
@@ -31,6 +31,7 @@ import org.apache.log4j.Logger;
import at.gv.egovernment.moa.id.commons.db.ConfigurationDBRead;
import at.gv.egovernment.moa.id.commons.db.ConfigurationDBUtils;
import at.gv.egovernment.moa.id.commons.db.dao.config.AttributeProviderPlugin;
+import at.gv.egovernment.moa.id.commons.db.dao.config.IdentificationNumber;
import at.gv.egovernment.moa.id.commons.db.dao.config.MOAIDConfiguration;
import at.gv.egovernment.moa.id.commons.db.dao.config.OnlineApplication;
import at.gv.egovernment.moa.id.commons.db.dao.config.UserDatabase;
@@ -241,6 +242,19 @@ public class InterfederationIDPAction extends BasicOAAction {
return Constants.STRUTS_ERROR_VALIDATION;
} else {
+
+ //set default Target interfederated nameID caluclation
+ if (getGeneralOA().isBusinessService()) {
+ IdentificationNumber businessID = onlineapplication.getAuthComponentOA().getIdentificationNumber();
+ if (businessID == null) {
+ businessID = new IdentificationNumber();
+ onlineapplication.getAuthComponentOA().setIdentificationNumber(businessID);
+ }
+ businessID.setValue(Constants.PREFIX_WPBK + "MOA-IDP");
+
+ } else
+ onlineapplication.setTarget("MOA-IDP");
+
postProcessSaveOnlineApplication(onlineapplication);
}