diff options
author | peter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-01-12 23:41:44 +0000 |
---|---|---|
committer | peter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-01-12 23:41:44 +0000 |
commit | e0a0a77393300541ad23fcb2d58e6424aff602ce (patch) | |
tree | 92cb88391422621ea13d13a2c771b77c701765c4 /id.server/src/at | |
parent | 478ae79b228e9620c3065cac3028562089ca1d16 (diff) | |
download | moa-id-spss-e0a0a77393300541ad23fcb2d58e6424aff602ce.tar.gz moa-id-spss-e0a0a77393300541ad23fcb2d58e6424aff602ce.tar.bz2 moa-id-spss-e0a0a77393300541ad23fcb2d58e6424aff602ce.zip |
Allow default user in XML-Configuration for Identities of the Proxy
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@776 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/src/at')
-rw-r--r-- | id.server/src/at/gv/egovernment/moa/id/proxy/XMLLoginParameterResolverPlainData.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/proxy/XMLLoginParameterResolverPlainData.java b/id.server/src/at/gv/egovernment/moa/id/proxy/XMLLoginParameterResolverPlainData.java index 2d39d4a9a..aedafdf85 100644 --- a/id.server/src/at/gv/egovernment/moa/id/proxy/XMLLoginParameterResolverPlainData.java +++ b/id.server/src/at/gv/egovernment/moa/id/proxy/XMLLoginParameterResolverPlainData.java @@ -218,6 +218,30 @@ public class XMLLoginParameterResolverPlainData userFound = true; } } + if(!userFound) //third step: search for default user in user list + { + //third step: search for (w)bPK for the default user entry in user list + Logger.debug("XMLLoginParameterResolverPlainData: search for automatic login data for default user"); + params = (LPRParams)bPKMap.get("default"); + if(params == null) + Logger.debug("XMLLoginParameterResolverPlainData: params for default user not found in file!"); + else + if(params.getEnabled()) + { //if user is enabled: get related parameters + Logger.debug("XMLLoginParameterResolverPlainData: default user found in list; user is enabled"); + Logger.debug("XMLLoginParameterResolverPlainData: using: " + params.toString()); + userid = params.getUN(); + password = params.getPW(); + param1 = params.getParam1(); + param2 = params.getParam2(); + param3 = params.getParam3(); + userFound = true; + } else + { + Logger.info("XMLLoginParameterResolverPlainData: default user found in list; user is NOT enabled"); + } + } + if(!userFound) //if user is not found then throw NotAllowedException exception { //TODO MOA-ID proove this with testcases! |