question about marshalling using openSAML2 in a servlet environment

Chad La Joie lajoie at itumi.biz
Fri Sep 30 20:44:22 BST 2011


Please start with the opensaml documentation[1] that describes it's
basic usage.  It discusses how to initialize the library (which is the
error you're seeing right now) and how to properly do the marshalling
(which you're not doing right now).

[1] https://wiki.shibboleth.net/confluence/display/OpenSAML/OSTwoUserManual

On Fri, Sep 30, 2011 at 15:23, Kaustubh Nagraj <kaustubh at easydita.com> wrote:
>
> I am unsure if this si the right place for this question. I am relatively new at trying my hand on Open SAML2 but I am gonna go for it anyways.
>
> I am trying to setup my Service provider using OpenSAML2 libraries. I am trying to set up a servlet which would accept HttpRequest from user's browser and based on the request parameters I want to create a SAML Authentication request packet.
>
> I am able to create the SAML packet, however I want to Base64 encode the SAML so that I can redirect the user browser to the Identity provider server. In order to do that I am trying to marshall the SAML Authentication Request using 'org.opensaml.saml2.core.impl.AuthnRequestMarshaller#marshall(AuthnRequest)'.
>
> This works fine when I try it outside of the web server environment (standalone JAVA application). However when I run it as a servlet component I get an error saying "No marshaller available for {urn:oasis:names:tc:SAML:2.0:assertion}Issuer, child of {urn:oasis:names:tc:SAML:2.0:protocol}AuthnRequest", where Issuer is a component of the AuthnRequest object.
>
> I am using Tomcat 5.5.34 webserver. It would be nice if someone can help me figure out whats happening here. It would help others trying to write their own Service Providers as well.
>
> Thanks, Kaustubh
>
> --
> To unsubscribe from this list send an email to dev-unsubscribe at shibboleth.net



--
Chad La Joie
www.itumi.biz
trusted identities, delivered


More information about the dev mailing list