public static IIdentityServerBuilder AddVaultAppIdCertificateStore(this IIdentityServerBuilder builder, VaultCertificateStoreAppIdOptions options)
 {
     builder.Services.AddSingleton <IVaultAuth>(resolver =>
                                                new VaultAppIdAuth(options.AppId, options.UserId, resolver.GetService <ILogger <VaultAppIdAuth> >())
                                                );
     builder.AddVaultCertificateStore(options);
     return(builder);
 }
 public static void AddVaultCertificateStore(this IdentityServerOptions options, VaultCertificateStoreAppIdOptions vaultOptions)
 {
     options.AddVaultCertificateStore(vaultOptions, new VaultAppIdAuth(vaultOptions.AppId, vaultOptions.UserId));
 }