Problem in Logout request for Post binding

Luis Rodríguez Fernández uo67113 at gmail.com
Thu Jan 16 04:37:47 EST 2020


Hello Rahul,

Long time ago in a galaxy far, far away I implemented a SAML2Logout servlet
for Oracle WebLogic:
https://github.com/cerndb/wls-cern-sso/blob/master/saml2slo/src/ch/cern/security/saml2/servlet/SAML2sloServlet.java
Maybe it can be of your help. It makes no use of the opensaml API but
builds the SAMLResponse correctly. You can have a look at the this answer
https://stackoverflow.com/questions/8150096/construct-a-signed-saml2-logout-request

Hope it helps,

Luis








El mié., 15 ene. 2020 a las 23:49, Brent Putman (<putmanb at georgetown.edu>)
escribió:

>
> On 1/15/20 1:03 PM, rahul sharma wrote:
>
> try {
>                 final HTTPPostEncoder pe = new HTTPPostEncoder();
>                 pe.setHttpServletResponse(response);
>                 pe.setMessageContext(mc);
>                 pe.initialize();
>                 pe.prepareContext();
>                 pe.encode();
>             } catch (final MessageEncodingException |
> ComponentInitializationException e) {
>                 logger.warn("SAML2Request generation failed: {}",
> e.getMessage(), e);
>             }
>
> *This is the error I got *- SAML2Request generation failed: VelocityEngine
> must be supplied
> net.shibboleth.utilities.java.support.component.ComponentInitializationException:
> VelocityEngine must be supplied
> 	at
> org.opensaml.saml.saml2.binding.encoding.impl.HTTPPostEncoder.doInitialize(HTTPPostEncoder.java:128)
>
>
> The error is pretty self-explanatory.  You must supply a VelocityEngine
> instance to the HTTPPostEncoder instance via the corresponding setter
> before you call initialize() on it.
> --
> To unsubscribe from this list send an email to
> dev-unsubscribe at shibboleth.net



-- 

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20200116/852da232/attachment.html>


More information about the dev mailing list