Skip to content

Commit 2a1e1ab

Browse files
committed
Merge branch 'main' of https://github.com/bvdcode/EasyVault
2 parents f488864 + afa39ee commit 2a1e1ab

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

GitVersion.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
next-version: 1.0.0

Sources/EasyVault.SDK/EasyVault.SDK.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
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>

Sources/EasyVault.SDK/Extensions/ConfigurationExtensions.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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 IConfigurationManager AddSecrets(this IConfigurationManager 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

Sources/EasyVault.Server/EasyVault.Server.csproj

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@
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>

0 commit comments

Comments
 (0)