anchor.diff:  ----
   @Bean
   open fun authenticationRequestContextResolver(): Saml2AuthenticationRequestContextResolver {
  -    val resolver: Saml2AuthenticationRequestContextResolver = DefaultSaml2AuthenticationRequestContextResolver()
  -    return Saml2AuthenticationRequestContextResolver { request: HttpServletRequest ->
  -        val context = resolver.resolve(request)
  -        MySaml2AuthenticationRequestContext(
  -            context,
  -            request.getParameter("force") != null
  -        )
  +    val resolver = DefaultSaml2AuthenticationRequestContextResolver(relyingPartyRegistrationResolver)
  +    return Saml2AuthenticationRequestContextResolver { request ->
  +        resolver.resolve(request)
       }
   }
   
  
positive.code: ----
  @Component
  public class AuthnRequestConverter implements
          Converter<MySaml2AuthenticationRequestContext, AuthnRequest> {
  
      private final AuthnRequestBuilder authnRequestBuilder;
      private final IssuerBuilder issuerBuilder;
  
negative.code:     // ... constructor
  
      public AuthnRequest convert(Saml2AuthenticationRequestContext context) {
          Issuer issuer = issuerBuilder.buildObject();
          issuer.setValue(context.getIssuer());
  
          AuthnRequest authnRequest = authnRequestBuilder.buildObject();
          authnRequest.setIssuer(issuer);
          authnRequest.setDestination(context.getDestination());
          authnRequest.setAssertionConsumerServiceURL(context.getAssertionConsumerServiceUrl());
  
          // ... additional settings
  
          authRequest.setForceAuthn(context.getForceAuthn());
          return authnRequest;
      }
  }
  