diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2015-08-31 15:27:47 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2015-08-31 15:27:47 +0200 |
commit | e833d0f16ba50ead4a72c1afebd08aad5bb50e35 (patch) | |
tree | abb6406598cfc63250636284e46a7b6ae142d046 /id/server/moa-id-commons/src/main/java/at/gv | |
parent | ae28423ee175ba248999b9d2d69152df0a1ee108 (diff) | |
download | moa-id-spss-e833d0f16ba50ead4a72c1afebd08aad5bb50e35.tar.gz moa-id-spss-e833d0f16ba50ead4a72c1afebd08aad5bb50e35.tar.bz2 moa-id-spss-e833d0f16ba50ead4a72c1afebd08aad5bb50e35.zip |
fix problem with configuration GUI and interfederation configurations
Diffstat (limited to 'id/server/moa-id-commons/src/main/java/at/gv')
2 files changed, 9 insertions, 1 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/config/ConfigurationMigrationUtils.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/config/ConfigurationMigrationUtils.java index 38a111707..d99f826b6 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/config/ConfigurationMigrationUtils.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/config/ConfigurationMigrationUtils.java @@ -358,10 +358,16 @@ public class ConfigurationMigrationUtils { if (config.isRequireConsent() != null) result.put(MOAIDConfigurationConstants.SERVICE_AUTH_STORK_REQUIRECONSENT, config.isRequireConsent().toString()); - else + else { result.put(MOAIDConfigurationConstants.SERVICE_AUTH_STORK_REQUIRECONSENT, Boolean.FALSE.toString()); + result.put(MOAIDConfigurationConstants.PREFIX_SERVICES, MOAIDConfigurationConstants.PREFIX_VIDP); + + } + if (config.isVidpEnabled() != null && config.isVidpEnabled()) + result.put(MOAIDConfigurationConstants.PREFIX_SERVICES, MOAIDConfigurationConstants.PREFIX_VIDP); + List<AttributeProviderPlugin> attributeProviderPlugins = config.getAttributeProviders(); if (attributeProviderPlugins != null) { for(int i=0; i<attributeProviderPlugins.size(); i++) { diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/NewConfigurationDBRead.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/NewConfigurationDBRead.java index 4a90d1bce..0f157f109 100644 --- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/NewConfigurationDBRead.java +++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/id/commons/db/NewConfigurationDBRead.java @@ -78,6 +78,8 @@ public class NewConfigurationDBRead { OnlineApplication jaxBOA = ConfigurationMigrationUtils.convertKeyValueToHyberJaxBOnlineApplication(oaKeyValuePairs); String hjID = KeyValueUtils.getFirstChildAfterPrefix(oaKeyId, KeyValueUtils.getParentKey(oaKeyId)); + //TODO: work-around for old configTool and new key/value configuration + //see BasicOAAction.java line 493 if (serviceType.equals(MOAIDConfigurationConstants.PREFIX_GATEWAY)) jaxBOA.setHjid(Long.valueOf(hjID) + 1000000); else if (serviceType.equals(MOAIDConfigurationConstants.PREFIX_IIDP)) |