diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-04-16 15:51:02 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-04-16 15:51:02 +0200 |
commit | fb85746274a04f77ac3a76b1a790fbe210148ee6 (patch) | |
tree | ffd0e5a2b5a9a31e3eb63163eca4d14cd7afbad1 /id/server/idserverlib/src/main/java/at/gv | |
parent | 33a0a83c930c930be213222bc948e7280674e080 (diff) | |
download | moa-id-spss-fb85746274a04f77ac3a76b1a790fbe210148ee6.tar.gz moa-id-spss-fb85746274a04f77ac3a76b1a790fbe210148ee6.tar.bz2 moa-id-spss-fb85746274a04f77ac3a76b1a790fbe210148ee6.zip |
parse additional AuthRequest attributs
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVP2XProtocol.java | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVP2XProtocol.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVP2XProtocol.java index 46cf7dfec..e7b64be6a 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVP2XProtocol.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVP2XProtocol.java @@ -332,11 +332,8 @@ public class PVP2XProtocol implements IModulInfo, MOAIDAuthConstants { attributeConsumer = spSSODescriptor.getAttributeConsumingServices().get(attributeIdx); } - - PVPTargetConfiguration config = new PVPTargetConfiguration(); - - + String oaURL = moaRequest.getEntityMetadata().getEntityID(); String binding = consumerService.getBinding(); @@ -349,6 +346,11 @@ public class PVP2XProtocol implements IModulInfo, MOAIDAuthConstants { config.setRequest(moaRequest); config.setConsumerURL(consumerService.getLocation()); + //parse AuthRequest + AuthnRequestImpl authReq = (AuthnRequestImpl) samlReq; + config.setPassiv(authReq.isPassive()); + config.setForce(authReq.isForceAuthn()); + String useMandate = request.getParameter(PARAM_USEMANDATE); if(useMandate != null) { if(useMandate.equals("true") && attributeConsumer != null) { @@ -357,22 +359,7 @@ public class PVP2XProtocol implements IModulInfo, MOAIDAuthConstants { } } } - - //validate AuthnRequest - try { - AuthnRequestValidator.validate((AuthnRequestImpl) samlReq); - - } catch (AuthnRequestValidatorException e) { - if (generateErrorMessage(e, request, response, config)) { - throw new AuthnRequestValidatorException(e.getMessage(), - new Object[] {}, config); - - } else { - throw new MOAIDException(e.getMessage(), new Object[] {}); - - } - } - + return config; } } |