From 2f674e79d42e7d36225fa9ac7ecefbc5bc62d325 Mon Sep 17 00:00:00 2001 From: vnugent Date: Thu, 13 Jul 2023 13:20:25 -0400 Subject: Checkpoint, kind of working clustering --- lib/VNLib.Data.Caching.Extensions/src/ICacheAuthManager.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/VNLib.Data.Caching.Extensions/src/ICacheAuthManager.cs') diff --git a/lib/VNLib.Data.Caching.Extensions/src/ICacheAuthManager.cs b/lib/VNLib.Data.Caching.Extensions/src/ICacheAuthManager.cs index e3ab868..32ae142 100644 --- a/lib/VNLib.Data.Caching.Extensions/src/ICacheAuthManager.cs +++ b/lib/VNLib.Data.Caching.Extensions/src/ICacheAuthManager.cs @@ -53,8 +53,9 @@ namespace VNLib.Data.Caching.Extensions /// Verifies the given JWT /// /// The message to verify authenticity + /// A value indicating if the message is from a known node /// True of the JWT could be verified, false otherwise - bool VerifyJwt(JsonWebToken jwt); + bool VerifyJwt(JsonWebToken jwt, bool isPeer); /// /// Signs the given message hash @@ -70,7 +71,8 @@ namespace VNLib.Data.Caching.Extensions /// The message hash to compare /// The algorithm used to produce the message hash /// The message signature to verify the message against + /// A value indicating if the message is from a known node /// True of the signature could be verified - bool VerifyMessageHash(ReadOnlySpan hash, HashAlg alg, ReadOnlySpan signature); + bool VerifyMessageHash(ReadOnlySpan hash, HashAlg alg, ReadOnlySpan signature, bool isPeer); } } -- cgit