question about marshalling using openSAML2 in a servlet environment

Kaustubh Nagraj kaustubh at easydita.com
Fri Sep 30 20:23:08 BST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20110930/6c8eb6f1/attachment.html 


More information about the dev mailing list