In the [Customizing OpenSAML’s AuthnRequest Instance section](https://docs.spring.io/spring-security/site/docs/5.5.x/reference/html5/#servlet-saml2login-sp-initiated-factory-custom-authnrequest) the code example is wrong, because: - There is no parameterless DefaultSaml2AuthenticationRequestContextResolver constructor - OpenSamlAuthenticationRequestFactory is deprecated, so it should use OpenSaml4AuthenticationRequestFactory instead - It should use Converter<**Saml2AuthenticationRequestContext**, AuthnRequest> instead of Converter<**MySaml2AuthenticationRequestContext**, AuthnRequest>