diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-11-24 08:15:53 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-11-24 08:15:53 +0100 |
commit | 50416e97cfe3c633cf3e146b85856bc0b418bfd0 (patch) | |
tree | 4da89ff87eb6b1b76b6bae41c80ccc1bc664f6f7 /id/server/idserverlib/src/main/java | |
parent | b39bc0239d1e4a4d4a8b0fe708ee24c7709b9454 (diff) | |
download | moa-id-spss-50416e97cfe3c633cf3e146b85856bc0b418bfd0.tar.gz moa-id-spss-50416e97cfe3c633cf3e146b85856bc0b418bfd0.tar.bz2 moa-id-spss-50416e97cfe3c633cf3e146b85856bc0b418bfd0.zip |
use OA target from request, if SAML1 is used.
for legacy applications
Diffstat (limited to 'id/server/idserverlib/src/main/java')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/parser/StartAuthentificationParameterParser.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/parser/StartAuthentificationParameterParser.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/parser/StartAuthentificationParameterParser.java index 1bc3702e4..a123569d5 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/parser/StartAuthentificationParameterParser.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/parser/StartAuthentificationParameterParser.java @@ -132,12 +132,13 @@ public class StartAuthentificationParameterParser implements MOAIDAuthConstants{ String targetFriendlyNameConfig = oaParam.getTargetFriendlyName(); if (StringUtils.isEmpty(targetConfig) -// || (module.equals(SAML1Protocol.PATH) && -// !StringUtils.isEmpty(target)) + || (module.equals(SAML1Protocol.PATH) && + !StringUtils.isEmpty(target)) ) { - // no target attribut is given in OA config - // target is used from request - // check parameter + //INFO: ONLY SAML1 legacy mode + // if SAML1 is used and target attribute is given in request + // use requested target + // check target parameter if (!ParamValidatorUtils.isValidTarget(target)) { Logger.error("Selected target is invalid. Using target: " + target); throw new WrongParametersException("StartAuthentication", PARAM_TARGET, "auth.12"); |