Basis Theory .NET Azure Encryption AspNetCore Extensions
License
—
Deps
5
Install Size
—
Vulns
✓ 0
Published
Nov 17, 2022
$ dotnet add package BasisTheory.net.Encryption.Azure.AspNetCorepublic void ConfigureServices(IServiceCollection services) =>
services.AddBasisTheoryAzureEncryption(new KeyVaultProviderKeyOptions {
RsaKeySize = 2048,
KeyProviderExpirationInDays = 90,
KeyVaultUri = new Uri("https://tenant.vault.azure.com")
})
...
public void ConfigureServices(IServiceCollection services) =>
services.AddBasisTheoryAzureEncryption(options => {
options.RsaKeySize = 2048;
options.KeyProviderExpirationInDays = 90;
options.KeyVaultUri = new Uri("https://tenant.vault.azure.com")
})
...
public void ConfigureServices(IServiceCollection services) =>
services.AddBasisTheoryAzureEncryption(tokenCredential: new DefaultAzureCredential())
...