In the Customizing OpenSAML’s AuthnRequest Instance section 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>