aboutsummaryrefslogtreecommitdiff
path: root/Plugins/CacheBroker
diff options
context:
space:
mode:
authorLibravatar vman <public@vaughnnugent.com>2022-12-28 14:19:32 -0500
committerLibravatar vman <public@vaughnnugent.com>2022-12-28 14:19:32 -0500
commit9bb5ddd8f19c0ecabd7af4ee58d80c16826bc183 (patch)
tree7f8a3863d18f4673294ab11e427fe0b77fd70abf /Plugins/CacheBroker
parent1f2b3530ebeafa162fe4df41e691c33cb2ff0009 (diff)
Cache provider abstractions, reduced deps
Diffstat (limited to 'Plugins/CacheBroker')
-rw-r--r--Plugins/CacheBroker/CacheBroker.csproj2
-rw-r--r--Plugins/CacheBroker/Endpoints/BrokerRegistrationEndpoint.cs5
2 files changed, 3 insertions, 4 deletions
diff --git a/Plugins/CacheBroker/CacheBroker.csproj b/Plugins/CacheBroker/CacheBroker.csproj
index f4ea139..1d4fdcc 100644
--- a/Plugins/CacheBroker/CacheBroker.csproj
+++ b/Plugins/CacheBroker/CacheBroker.csproj
@@ -6,6 +6,8 @@
<RootNamespace>VNLib.Plugins.Cache.Broker</RootNamespace>
<Authors>Vaughn Nugent</Authors>
<Version>1.0.1.2</Version>
+ <SignAssembly>True</SignAssembly>
+ <AssemblyOriginatorKeyFile>\\vaughnnugent.com\Internal\Folder Redirection\vman\Documents\Programming\Software\StrongNameingKey.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
diff --git a/Plugins/CacheBroker/Endpoints/BrokerRegistrationEndpoint.cs b/Plugins/CacheBroker/Endpoints/BrokerRegistrationEndpoint.cs
index be700d1..7867e97 100644
--- a/Plugins/CacheBroker/Endpoints/BrokerRegistrationEndpoint.cs
+++ b/Plugins/CacheBroker/Endpoints/BrokerRegistrationEndpoint.cs
@@ -33,9 +33,7 @@ using System.Threading;
using System.Net.Sockets;
using System.Threading.Tasks;
using System.Collections.Generic;
-using System.Security.Cryptography;
using System.Text.Json.Serialization;
-using System.Security.Cryptography.X509Certificates;
using RestSharp;
@@ -110,8 +108,7 @@ namespace VNLib.Plugins.Cache.Broker.Endpoints
private async Task<ReadOnlyJsonWebKey> GetClientPublic()
{
- using SecretResult secret = await this.GetPlugin().TryGetSecretAsync("client_public_key") ?? throw new InvalidOperationException("Client public key not found in vault");
- return secret.GetJsonWebKey();
+ return await this.GetPlugin().TryGetSecretAsync("client_public_key").ToJsonWebKey() ?? throw new InvalidOperationException("Client public key not found in vault");
}
private async Task<ReadOnlyJsonWebKey> GetCachePublic()