No inbound message decoder configured for binding- HTTP-POST

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

No inbound message decoder configured for binding- HTTP-POST

kotesh201
Hi All,

In my current IDP implementation, all the requests are being routed to

response.sendRedirect("/idp/profile/SAML2/Redirect/SSO?" + request.getQueryString());

Since few requests that are coming from SP with POST, I enabled HTTP-POST binding. For this, I have added HTTP-POST on top of existing HTTPRedirect in idp-metadata.xml

<SingleSignOnService
                        Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
                        Location="/signon" />
<SingleSignOnService
                        Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
                        Location="/signon" />

 
and routing all the POST requests to /idp/profile/SAML2/POST/SSO

With these settings, all the redirects are working but POST is giving below error.

ERROR [edu.internet2.middleware.shibboleth.idp.profile.AbstractSAMLProfileHandler:882] - No inbound message decoder configured for binding: urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST

Can you please help me to configure POST settings

-Kotesh
Reply | Threaded
Open this post in threaded view
|

[Solved]Re: No inbound message decoder configured for binding- HTTP-POST

kotesh201
I added the HTTP-Post bindings under MessageDecoders in internal.xml file and it worked fine.

        <entry>
            <key>
                <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign</value>
            </key>
            <bean id="shibboleth.SAML2HttpPostSimpleSignDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostSimpleSignDecoder">
                <constructor-arg ref="shibboleth.ParserPool"/>
            </bean>
        </entry>
        <entry>
            <key>
                <value>urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST</value>
            </key>
            <bean id="shibboleth.SAML2HttpPostDecoder" class="org.opensaml.saml2.binding.decoding.HTTPPostDecoder">
                <constructor-arg ref="shibboleth.ParserPool"/>
            </bean>
        </entry>