Skip to content

Commit

Permalink
Update dependecies
Browse files Browse the repository at this point in the history
  • Loading branch information
sk-keeper committed May 4, 2024
1 parent 4feee90 commit 415ff76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion RoleManagement/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Cli;
using Cli.Async;
using KeeperSecurity.Authentication;
using KeeperSecurity.Authentication.Async;
using KeeperSecurity.Configuration;
using KeeperSecurity.Enterprise;
using KeeperSecurity.Utils;

namespace Sample
{
Expand Down
4 changes: 2 additions & 2 deletions RoleManagement/RoleDataManagement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class RoleDataManagement : RoleData, IRoleDataManagement
{
private Dictionary<long, byte[]> _adminRoleKeys = new Dictionary<long, byte[]>();

private async Task<byte[]> GetRoleKey(long roleId)
private new async Task<byte[]> GetRoleKey(long roleId)
{
lock (_adminRoleKeys)
{
Expand Down Expand Up @@ -81,7 +81,7 @@ private async Task<byte[]> GetRoleKey(long roleId)
roleKey = CryptoUtils.DecryptAesV1(rKey.EncryptedKey.Base64UrlDecode(), Enterprise.Auth.AuthContext.DataKey);
break;
case EncryptedKeyType.KtEncryptedByPublicKey:
roleKey = CryptoUtils.DecryptRsa(rKey.EncryptedKey.Base64UrlDecode(), Enterprise.Auth.AuthContext.PrivateKey);
roleKey = CryptoUtils.DecryptRsa(rKey.EncryptedKey.Base64UrlDecode(), Enterprise.Auth.AuthContext.PrivateRsaKey);
break;
}
}
Expand Down
7 changes: 4 additions & 3 deletions RoleManagement/RoleManagement.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.0-preview1" />
<PackageReference Include="Keeper.Sdk" Version="1.0.2-beta03" />
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="Keeper.Cli" Version="1.0.3" />
<PackageReference Include="Keeper.Sdk" Version="1.0.5-beta19" />
</ItemGroup>

</Project>

0 comments on commit 415ff76

Please sign in to comment.