public static AuthenticationBuilder AddWsFed(this AuthenticationBuilder builder, Action <WsFedOptions> configureOptions)
 {
     builder.Services.Configure(configureOptions);
     builder.Services.AddSingleton <IConfigureOptions <WsFederationOptions>, ConfigureWsFedOptions>();
     builder.AddWsFederation();
     return(builder);
 }