Workleap.Extensions.Configuration.Secrets
1.0.10-preview.3
Prefix Reserved
See the version list below for details.
dotnet add package Workleap.Extensions.Configuration.Secrets --version 1.0.10-preview.3
NuGet\Install-Package Workleap.Extensions.Configuration.Secrets -Version 1.0.10-preview.3
<PackageReference Include="Workleap.Extensions.Configuration.Secrets" Version="1.0.10-preview.3" />
<PackageVersion Include="Workleap.Extensions.Configuration.Secrets" Version="1.0.10-preview.3" />
<PackageReference Include="Workleap.Extensions.Configuration.Secrets" />
paket add Workleap.Extensions.Configuration.Secrets --version 1.0.10-preview.3
#r "nuget: Workleap.Extensions.Configuration.Secrets, 1.0.10-preview.3"
#:package Workleap.Extensions.Configuration.Secrets@1.0.10-preview.3
#addin nuget:?package=Workleap.Extensions.Configuration.Secrets&version=1.0.10-preview.3&prerelease
#tool nuget:?package=Workleap.Extensions.Configuration.Secrets&version=1.0.10-preview.3&prerelease
Workleap.Extensions.Configuration.Secrets
This package allows storing configuration values in Azure Key Vault Secrets, using the right Azure credentials based on the current environment.
It can also be used to register ITokenCredentialProvider and ISecretClientProvider in IServiceCollection in order to access Azure credentials or a SecretClient instance.
Getting started
dotnet add package Workleap.Extensions.Configuration.Secrets
Example with an ASP.NET Core minimal API:
var builder = WebApplication.CreateBuilder();
// There are three ways to load configuration values from Azure Key Vault:
builder.Configuration.AddKeyVaultSecrets(builder.Environment);
builder.Configuration.AddKeyVaultSecrets(builder.Environment, new Uri("<my-key-vault-url>"));
builder.Configuration.AddKeyVaultSecrets(builder.Environment, "<my-configuration-key>");
// Register ITokenCredentialProvider and ISecretClientProvider services (optional)
builder.Services.AddKeyVaultSecrets();
Using the registered services
ITokenCredentialProvider and its public implementation TokenCredentialProvider provides an instance of TokenCredential based on the current environment:
ManagedIdentityCredentialon a non-development environment,- Chained credentials of
AzureCliCredentialandManagedIdentityCredentialin development environment, or CachedInteractiveBrowserCredentialin development environment only when Fiddler is opened (Fiddler interferes withaz loginauthentication).
var azureCredential = new TokenCredentialProvider(environment).GetTokenCredential(); // or
var azureCredential = services.GetRequiredService<ITokenCredentialProvider>().GetTokenCredential();
ISecretClientProvider and its public implementation SecretClientProvider provides an instance of SecretClient based on the current environment:
var secretClientProvider = new SecretClientProvider(configurationBuilder, environment); // or
var secretClientProvider = new SecretClientProvider(configuration, environment); // or
var secretClientProvider = services.GetRequiredService<ISecretClientProvider>();
var secretClient = secretClientProvider.GetSecretClient(keyVaultKind); // or
var secretClient = secretClientProvider.GetSecretClient(keyVaultUri); // or
var secretClient = secretClientProvider.GetSecretClient(configurationKey);
License
Copyright © 2022, Workleap. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/workleap/gsoft-license/blob/master/LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Azure.Extensions.AspNetCore.Configuration.Secrets (>= 1.4.0)
- Azure.Identity (>= 1.14.0)
- Microsoft.Extensions.Configuration.Binder (>= 6.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
-
net6.0
- Azure.Extensions.AspNetCore.Configuration.Secrets (>= 1.4.0)
- Azure.Identity (>= 1.14.0)
- Microsoft.Extensions.Configuration.Binder (>= 6.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.11-preview.2 | 25 | 10/21/2025 |
| 1.1.11-preview.1 | 31 | 10/20/2025 |
| 1.1.10 | 311 | 10/19/2025 |
| 1.1.10-preview.3 | 95 | 10/17/2025 |
| 1.1.10-preview.2 | 112 | 10/13/2025 |
| 1.1.10-preview.1 | 47 | 10/12/2025 |
| 1.1.9 | 545 | 10/12/2025 |
| 1.1.9-preview.1 | 118 | 10/6/2025 |
| 1.1.8 | 574 | 10/5/2025 |
| 1.1.8-preview.2 | 120 | 10/2/2025 |
| 1.1.8-preview.1 | 116 | 9/29/2025 |
| 1.1.7 | 512 | 9/28/2025 |
| 1.1.7-preview.1 | 124 | 9/23/2025 |
| 1.1.6 | 519 | 9/21/2025 |
| 1.1.6-preview.3 | 169 | 9/19/2025 |
| 1.1.6-preview.2 | 244 | 9/17/2025 |
| 1.1.6-preview.1 | 246 | 9/17/2025 |
| 1.1.5 | 561 | 9/14/2025 |
| 1.1.5-preview.2 | 100 | 9/14/2025 |
| 1.1.5-preview.1 | 106 | 9/12/2025 |
| 1.1.4 | 685 | 9/7/2025 |
| 1.1.4-preview.1 | 122 | 9/2/2025 |
| 1.1.3 | 418 | 8/31/2025 |
| 1.1.3-preview.3 | 167 | 8/27/2025 |
| 1.1.3-preview.2 | 171 | 8/26/2025 |
| 1.1.3-preview.1 | 142 | 8/25/2025 |
| 1.1.2 | 465 | 8/24/2025 |
| 1.1.2-preview.3 | 71 | 8/22/2025 |
| 1.1.2-preview.2 | 119 | 8/20/2025 |
| 1.1.2-preview.1 | 114 | 8/19/2025 |
| 1.1.1 | 458 | 8/17/2025 |
| 1.1.1-preview.1 | 108 | 8/15/2025 |
| 1.1.0 | 451 | 8/12/2025 |
| 1.0.21-preview.2 | 124 | 8/12/2025 |
| 1.0.21-preview.1 | 121 | 8/12/2025 |
| 1.0.20 | 308 | 8/10/2025 |
| 1.0.20-preview.2 | 155 | 8/8/2025 |
| 1.0.20-preview.1 | 190 | 8/5/2025 |
| 1.0.19 | 354 | 8/3/2025 |
| 1.0.19-preview.1 | 102 | 7/29/2025 |
| 1.0.18 | 576 | 7/27/2025 |
| 1.0.18-preview.5 | 506 | 7/23/2025 |
| 1.0.18-preview.4 | 506 | 7/23/2025 |
| 1.0.18-preview.3 | 510 | 7/22/2025 |
| 1.0.18-preview.2 | 465 | 7/21/2025 |
| 1.0.18-preview.1 | 297 | 7/21/2025 |
| 1.0.17 | 314 | 7/20/2025 |
| 1.0.17-preview.2 | 105 | 7/18/2025 |
| 1.0.17-preview.1 | 121 | 7/15/2025 |
| 1.0.16 | 752 | 7/13/2025 |
| 1.0.16-preview.2 | 52 | 7/12/2025 |
| 1.0.16-preview.1 | 121 | 7/10/2025 |
| 1.0.15 | 778 | 6/29/2025 |
| 1.0.15-preview.2 | 83 | 6/29/2025 |
| 1.0.15-preview.1 | 121 | 6/18/2025 |
| 1.0.14 | 393 | 6/15/2025 |
| 1.0.14-preview.3 | 117 | 6/14/2025 |
| 1.0.14-preview.2 | 267 | 6/12/2025 |
| 1.0.14-preview.1 | 251 | 6/10/2025 |
| 1.0.13 | 256 | 6/8/2025 |
| 1.0.13-preview.1 | 133 | 6/3/2025 |
| 1.0.12 | 200 | 6/1/2025 |
| 1.0.12-preview.1 | 128 | 5/26/2025 |
| 1.0.11 | 234 | 5/25/2025 |
| 1.0.11-preview.2 | 76 | 5/23/2025 |
| 1.0.11-preview.1 | 124 | 5/20/2025 |
| 1.0.10 | 188 | 5/18/2025 |
| 1.0.10-preview.3 | 86 | 5/18/2025 |
| 1.0.10-preview.2 | 118 | 5/17/2025 |
| 1.0.10-preview.1 | 224 | 5/13/2025 |
| 1.0.9 | 250 | 5/11/2025 |
| 1.0.9-preview.3 | 84 | 5/9/2025 |
| 1.0.9-preview.2 | 128 | 5/8/2025 |
| 1.0.9-preview.1 | 128 | 5/6/2025 |
| 1.0.8 | 197 | 5/4/2025 |
| 1.0.8-preview.1 | 142 | 4/29/2025 |
| 1.0.7 | 231 | 4/27/2025 |
| 1.0.7-preview.3 | 146 | 4/22/2025 |
| 1.0.7-preview.2 | 143 | 4/22/2025 |
| 1.0.7-preview.1 | 140 | 4/22/2025 |
| 1.0.6-preview.1 | 175 | 4/14/2025 |
| 1.0.5-preview.50 | 81 | 4/12/2025 |
| 1.0.5-preview.49 | 111 | 4/11/2025 |
| 1.0.5-preview.48 | 147 | 4/7/2025 |
| 1.0.5-preview.47 | 144 | 4/1/2025 |
| 1.0.5-preview.46 | 141 | 4/1/2025 |
| 1.0.5-preview.44 | 137 | 3/20/2025 |
| 1.0.5-preview.43 | 60 | 3/15/2025 |
| 1.0.5-preview.42 | 150 | 3/11/2025 |
| 1.0.5-preview.41 | 90 | 2/17/2025 |
| 1.0.5-preview.40 | 84 | 2/17/2025 |
| 1.0.5-preview.39 | 75 | 2/16/2025 |
| 1.0.5-preview.38 | 84 | 2/15/2025 |
| 1.0.5-preview.37 | 83 | 2/14/2025 |
| 1.0.5-preview.36 | 89 | 2/13/2025 |
| 1.0.5-preview.35 | 83 | 2/12/2025 |
| 1.0.5-preview.34 | 84 | 2/3/2025 |
| 1.0.5-preview.33 | 74 | 1/28/2025 |
| 1.0.5-preview.32 | 78 | 1/28/2025 |
| 1.0.5-preview.31 | 76 | 1/28/2025 |
| 1.0.5-preview.30 | 73 | 1/24/2025 |
| 1.0.5-preview.29 | 64 | 1/19/2025 |
| 1.0.5-preview.28 | 68 | 1/17/2025 |
| 1.0.5-preview.27 | 66 | 1/13/2025 |
| 1.0.5-preview.25 | 74 | 11/29/2024 |
| 1.0.5-preview.24 | 72 | 11/24/2024 |
| 1.0.5-preview.23 | 73 | 11/16/2024 |
| 1.0.5-preview.22 | 72 | 11/1/2024 |
| 1.0.5-preview.21 | 76 | 10/31/2024 |
| 1.0.5-preview.20 | 69 | 10/30/2024 |
| 1.0.5-preview.19 | 78 | 10/28/2024 |
| 1.0.5-preview.18 | 71 | 10/28/2024 |
| 1.0.5-preview.17 | 75 | 10/28/2024 |
| 1.0.5-preview.16 | 73 | 10/7/2024 |
| 1.0.5-preview.15 | 77 | 10/7/2024 |
| 1.0.5-preview.14 | 76 | 10/1/2024 |
| 1.0.5-preview.13 | 74 | 9/30/2024 |
| 1.0.5-preview.12 | 90 | 9/27/2024 |
| 1.0.5-preview.11 | 65 | 9/20/2024 |
| 1.0.5-preview.10 | 86 | 9/13/2024 |
| 1.0.5-preview.9 | 76 | 8/27/2024 |
| 1.0.5-preview.8 | 68 | 8/27/2024 |
| 1.0.5-preview.7 | 73 | 8/27/2024 |
| 1.0.5-preview.6 | 75 | 8/27/2024 |
| 1.0.5-preview.5 | 91 | 8/16/2024 |
| 1.0.5-preview.4 | 78 | 8/1/2024 |
| 1.0.5-preview.3 | 79 | 7/15/2024 |
| 1.0.5-preview.2 | 76 | 7/15/2024 |
| 1.0.5-preview.1 | 68 | 7/5/2024 |
| 1.0.4 | 20,171 | 6/25/2024 |
| 1.0.4-preview.4 | 82 | 6/25/2024 |
| 1.0.4-preview.3 | 77 | 6/14/2024 |
| 1.0.4-preview.2 | 87 | 5/31/2024 |
| 1.0.4-preview.1 | 86 | 5/31/2024 |
| 1.0.3 | 452 | 5/21/2024 |
| 1.0.3-preview.6 | 82 | 5/21/2024 |
| 1.0.3-preview.5 | 76 | 5/21/2024 |
| 1.0.3-preview.4 | 87 | 5/10/2024 |
| 1.0.3-preview.3 | 80 | 5/3/2024 |
| 1.0.3-preview.2 | 89 | 4/22/2024 |
| 1.0.3-preview.1 | 85 | 4/15/2024 |
| 1.0.2 | 2,767 | 4/12/2024 |
| 1.0.2-preview.33 | 85 | 4/12/2024 |
| 1.0.2-preview.32 | 89 | 4/3/2024 |
| 1.0.2-preview.31 | 83 | 4/3/2024 |
| 1.0.2-preview.30 | 85 | 3/8/2024 |
| 1.0.2-preview.29 | 83 | 3/7/2024 |
| 1.0.2-preview.28 | 92 | 3/4/2024 |
| 1.0.2-preview.27 | 93 | 3/1/2024 |
| 1.0.2-preview.26 | 88 | 2/16/2024 |
| 1.0.2-preview.25 | 90 | 2/12/2024 |
| 1.0.2-preview.24 | 90 | 2/6/2024 |
| 1.0.2-preview.23 | 85 | 2/6/2024 |
| 1.0.2-preview.22 | 84 | 1/22/2024 |
| 1.0.2-preview.21 | 82 | 1/12/2024 |
| 1.0.2-preview.20 | 79 | 1/12/2024 |
| 1.0.2-preview.19 | 83 | 1/12/2024 |
| 1.0.2-preview.18 | 99 | 12/18/2023 |
| 1.0.2-preview.17 | 124 | 11/26/2023 |
| 1.0.2-preview.16 | 94 | 11/17/2023 |
| 1.0.2-preview.15 | 84 | 11/17/2023 |
| 1.0.2-preview.14 | 88 | 11/13/2023 |
| 1.0.2-preview.13 | 97 | 11/6/2023 |
| 1.0.2-preview.12 | 98 | 10/30/2023 |
| 1.0.2-preview.11 | 115 | 10/24/2023 |
| 1.0.2-preview.10 | 107 | 10/20/2023 |
| 1.0.2-preview.9 | 111 | 10/17/2023 |
| 1.0.2-preview.8 | 113 | 10/13/2023 |
| 1.0.2-preview.7 | 108 | 10/13/2023 |
| 1.0.2-preview.6 | 106 | 9/26/2023 |
| 1.0.2-preview.5 | 112 | 9/25/2023 |
| 1.0.2-preview.4 | 96 | 9/21/2023 |
| 1.0.2-preview.3 | 100 | 9/20/2023 |
| 1.0.2-preview.2 | 104 | 9/20/2023 |
| 1.0.2-preview.1 | 108 | 9/20/2023 |
| 1.0.1 | 17,080 | 7/20/2023 |
| 1.0.1-preview.18 | 147 | 7/20/2023 |