Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Read saml1 response

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Read saml1 response


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: [OpenSAML] Read saml1 response
  • Date: Mon, 15 Dec 2008 16:30:01 +0100
  • Openpgp: id=146B2514
  • Organization: SWITCH



Wang, Shengke wrote:
> An finally you are right about what I was asking. I will use the code
> example below:
> ***********************************************************
> HTTPPostDecoder decode = new HTTPPostDecoder( new
> BasicParserPool() );
> HttpServletRequestAdapter adapter = new
> HttpServletRequestAdapter(request);
> BasicSAMLMessageContext context = new BasicSAMLMessageContext();
> context.setInboundMessageTransport(adapter);
> decode.decode(context);
> ************************************************************
> This works fine with a saml2 XML response but cannot decode a SAML1
> XML response. I tried to set the protocol for saml1 but it did not work. I
> would appreciate if you can help me.

Are you using the correct objec ts? There are SAML 1 and SAML 2
decoders. If the code you have is working for SAML 2 then I would
assume you're using the SAML 2 decoders. If you want to work with SAML
1 you need to use the SAML 1 decoders. The method signatures are
identical, on purpose. So probably the only thing you have to change is
your import statement.

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
,
http://www.switch.ch




Archive powered by MHonArc 2.6.16.

Top of Page