File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 <ItemGroup >
2929 <None Include =" vault.png" Pack =" true" PackagePath =" " />
3030 <None Include =" ..\..\README.md" Pack =" true" PackagePath =" \" />
31- <PackageReference Include =" System.Text.Json" Version =" 9.0.8 " />
32- <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 9.0.8 " />
33- <PackageReference Include =" System.Configuration.ConfigurationManager" Version =" 9.0.8 " />
31+ <PackageReference Include =" System.Text.Json" Version =" 9.0.10 " />
32+ <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 9.0.10 " />
33+ <PackageReference Include =" System.Configuration.ConfigurationManager" Version =" 9.0.10 " />
3434 <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 8.0.0" PrivateAssets =" All" />
3535 </ItemGroup >
3636</Project >
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ namespace EasyVault.SDK.Extensions
1010 /// </summary>
1111 public static class ConfigurationExtensions
1212 {
13+ /// <summary>
14+ /// Represents the configuration key used to specify the default server URL for the Vault API.
15+ /// </summary>
16+ public const string DefaultServerUrlKey = "VaultApiUrl" ;
17+
1318 /// <summary>
1419 /// Adds secrets from the EasyVault API to the configuration through In-Memory collection.
1520 /// </summary>
@@ -21,7 +26,7 @@ public static class ConfigurationExtensions
2126 /// <returns>The updated configuration.</returns>
2227 /// <exception cref="ArgumentException">Thrown when the configuration key is not set or is not a valid GUID.</exception>
2328 /// <exception cref="InvalidOperationException">Thrown when no secrets are found for the API key.</exception>
24- public static ConfigurationManager AddSecrets ( this ConfigurationManager configuration , string serverUrlKey = "VaultApiUrl" ,
29+ public static ConfigurationManager AddSecrets ( this ConfigurationManager configuration , string serverUrlKey = DefaultServerUrlKey ,
2530 string configurationKey = "VaultApiKey" , bool throwIfError = true , bool ignoreInDevelopment = true )
2631 {
2732 // Try flat key first, then nested section key as fallback
Original file line number Diff line number Diff line change 99 <SpaProxyServerUrl >https://localhost:51031</SpaProxyServerUrl >
1010 </PropertyGroup >
1111 <ItemGroup >
12- <PackageReference Include =" EasyExtensions.AspNetCore" Version =" 1.0.34" />
13- <PackageReference Include =" EasyExtensions.EntityFrameworkCore" Version =" 1.0.34" />
14- <PackageReference Include =" Mattermost.NET" Version =" 3.0.3" />
15- <PackageReference Include =" Microsoft.AspNetCore.SpaServices.Extensions" Version =" 9.0.8" />
16- <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 9.0.8" />
17- <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 9.0.8" >
12+ <PackageReference Include =" EasyExtensions.AspNetCore" Version =" 2.0.9" />
13+ <PackageReference Include =" EasyExtensions.EntityFrameworkCore" Version =" 2.0.9" />
14+ <PackageReference Include =" Microsoft.AspNetCore.SpaServices.Extensions" Version =" 9.0.10" />
15+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 9.0.10" />
16+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 9.0.10" >
1817 <PrivateAssets >all</PrivateAssets >
1918 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
2019 </PackageReference >
2120 <PackageReference Include =" Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version =" 1.22.1" />
2221 <PackageReference Include =" Microsoft.AspNetCore.SpaProxy" >
23- <Version >9.0.8 </Version >
22+ <Version >9.0.10 </Version >
2423 </PackageReference >
2524 <ProjectReference Include =" ..\easyvault.client\easyvault.client.esproj" >
2625 <ReferenceOutputAssembly >false</ReferenceOutputAssembly >
You can’t perform that action at this time.
0 commit comments