In reference to this SO question Add request parameter to SAML request using Spring Security SAML
I am wanting to replace the default HTTPRedirectDeflateBinding bean
You can redeclare the SAMLProcessor
bean - which is used by SAMLProcessingFilter
- and add your own binding bean in its bindings list. This is an example, I used in my project.
@Bean
public SAMLProcessorImpl processor() {
Collection bindings = new ArrayList<>();
bindings.add(httpRedirectDeflateBinding());
bindings.add(httpPostBinding());
bindings.add(artifactBinding(parserPool(), velocityEngine()));
bindings.add(httpSOAP11Binding());
bindings.add(httpPAOS11Binding());
return new SAMLProcessorImpl(bindings);
}
Hope it works for you.