C# Class Microsoft.Extensions.DependencyInjection.KeyVaultConfigurationExtensions

Extension methods on IConfigurationBuilder for loading configuration from KeyVault
Exibir arquivo Open project: Azure-Samples/guidance-identity-management-for-multitenant-apps

Public Methods

Method Description
AddKeyVaultSecrets ( this configurationBuilder, string appClientId, string vaultName, StoreName storeName, StoreLocation storeLocation, string certificateThumbprint, bool validateCertificate, ILoggerFactory loggerFactory ) : IConfigurationBuilder

Load the config provider which reads shared secret configuration from key vault making use of cert loaded a specified cert store location

AddKeyVaultSecrets ( this configurationBuilder, string appClientId, string vaultName, string certificateThumbprint, bool validateCertificate, ILoggerFactory loggerFactory ) : IConfigurationBuilder

Load the config provider which reads shared secret configuration from key vault making use of cert loaded from My store name in the CurrentUser location

Method Details

AddKeyVaultSecrets() public static method

Load the config provider which reads shared secret configuration from key vault making use of cert loaded a specified cert store location
public static AddKeyVaultSecrets ( this configurationBuilder, string appClientId, string vaultName, StoreName storeName, StoreLocation storeLocation, string certificateThumbprint, bool validateCertificate, ILoggerFactory loggerFactory ) : IConfigurationBuilder
configurationBuilder this
appClientId string
vaultName string
storeName StoreName
storeLocation StoreLocation
certificateThumbprint string
validateCertificate bool
loggerFactory ILoggerFactory
return IConfigurationBuilder

AddKeyVaultSecrets() public static method

Load the config provider which reads shared secret configuration from key vault making use of cert loaded from My store name in the CurrentUser location
public static AddKeyVaultSecrets ( this configurationBuilder, string appClientId, string vaultName, string certificateThumbprint, bool validateCertificate, ILoggerFactory loggerFactory ) : IConfigurationBuilder
configurationBuilder this
appClientId string
vaultName string
certificateThumbprint string
validateCertificate bool
loggerFactory ILoggerFactory
return IConfigurationBuilder