Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] HttpPostEncoder and HttpPostDecoder

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] HttpPostEncoder and HttpPostDecoder


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: [OpenSAML] HttpPostEncoder and HttpPostDecoder
  • Date: Mon, 17 May 2010 18:13:11 -0400



On 5/17/10 5:43 PM, rangeli nepal wrote:
> When Message is sent as httppost it does URL encoding. so if I do url
> decode and then feed to base64 decoding It starts to work.
>


Based on the error msg from the decoder, the problem is that there is
literally no HTTP form parameter named either 'SAMLRequest' or
'SAMLResponse'.

The code that performs this check is pretty simple:

String encodedMessage = transport.getParameterValue("SAMLRequest");
if (DatatypeHelper.isEmpty(encodedMessage)) {
encodedMessage = transport.getParameterValue("SAMLResponse");
}

if (DatatypeHelper.isEmpty(encodedMessage)) {
log.error("Request did not contain either a SAMLRequest or "
+ "SAMLResponse paramter. Invalid request for SAML 2 HTTP
POST binding.");
throw new MessageDecodingException("No SAML message present in
request");
}





So it sounds like something about the form as produced by the encoder
and posted to the decoder endpoint is screwed up. What does the encoded
form look like?

This encoder/decoder code is known to work correctly, so something must
be off in the variable inputs that you are supplying on one side or the
other.





Archive powered by MHonArc 2.6.16.

Top of Page