`I am trying to generate a authn request without using spring boot and only using spring-security-saml2-service-provider. When I try to marshall the authnRequest I am getting error as
Exception in thread "main" org.springframework.security.saml2.Saml2Exception: org.opensaml.core.xml.io.MarshallingException: No marshaller available for {urn:oasis:names:tc:SAML:2.0:assertion}Issuer, child of {urn:oasis:names:tc:SAML:2.0:protocol}AuthnRequest at org.opensamlExample.SecurityConfiguration.serialize(SecurityConfiguration.java:116) at org.opensamlExample.SecurityConfiguration.generateAuthRequest(SecurityConfiguration.java:91) at org.opensamlExample.SecurityConfiguration.main(SecurityConfiguration.java:81) Caused by: org.opensaml.core.xml.io.MarshallingException: No marshaller available for {urn:oasis:names:tc:SAML:2.0:assertion}Issuer, child of {urn:oasis:names:tc:SAML:2.0:protocol}AuthnRequest at org.opensaml.core.xml.io.AbstractXMLObjectMarshaller.marshallChildElements(AbstractXMLObjectMarshaller.java:270) at org.opensaml.core.xml.io.AbstractXMLObjectMarshaller.marshallInto(AbstractXMLObjectMarshaller.java:219) at org.opensaml.core.xml.io.AbstractXMLObjectMarshaller.marshall(AbstractXMLObjectMarshaller.java:121) at org.opensaml.saml.common.AbstractSAMLObjectMarshaller.marshall(AbstractSAMLObjectMarshaller.java:58) at org.opensaml.core.xml.io.AbstractXMLObjectMarshaller.marshall(AbstractXMLObjectMarshaller.java:76) at org.opensamlExample.SecurityConfiguration.serialize(SecurityConfiguration.java:110) ... 2 more
Based on my understanding and some google search, I am trying to learn saml integration for my project. This is the code I have so far, I am getting error when trying to marshal the authnrequest. Not sure what i am doing wrong.
`
Sasirekha Kumaran is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.