Example #1
0
 public static IIdentityServerBuilder AddVaultAppIdClientSecretStore(
     this IIdentityServerBuilder builder,
     VaultClientSecretStoreAppIdOptions vaultOptions)
 {
     builder.Services.AddSingleton <IVaultAuth>(resolver => new VaultAppIdAuth(vaultOptions.AppId, vaultOptions.UserId, resolver.GetService <ILogger <VaultAppIdAuth> >()));
     return(builder.AddVaultClientSecretStore(vaultOptions));
 }
 public static void AddVaultClientSecretStore(
     this IdentityServerServiceFactory factory,
     VaultClientSecretStoreAppIdOptions vaultOptions)
 {
     factory.AddVaultClientSecretStore(vaultOptions, new VaultAppIdAuth(vaultOptions.AppId, vaultOptions.UserId));
 }