2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-06-13 14:38:43 +00:00
This commit is contained in:
2026-05-25 23:46:29 +03:00
parent 959bc76721
commit ae6a1fc8d7
8 changed files with 123 additions and 20 deletions
+9 -7
View File
@@ -49,6 +49,7 @@ using Esiur.Security.Membership;
using Esiur.Net.Packets;
using System.Numerics;
using Esiur.Protocol;
using Esiur.Security.Authority.Providers;
namespace Esiur.Tests.Functional;
@@ -142,12 +143,12 @@ class Program
//});
var wh = new Warehouse();
wh.RegisterAuthenticationProvider(new ServerAuthenticationProvider());
// Create stores to keep objects.
var system = await wh.Put("sys", new MemoryStore());
var server = await wh.Put("sys/server", new EpServer() {
// Membership = membership
var server = await wh.Put("sys/server", new EpServer() {
AllowedAuthenticationProviders = new string[] { "hash" },
});
@@ -213,13 +214,14 @@ class Program
private static async void TestClient(IResource local)
{
var wh = new Warehouse();
var auth = new ClientAuthenticationProvider();
wh.RegisterAuthenticationProvider(auth);
var con = await new Warehouse().Get<EpConnection>("EP://localhost", new EpConnectionContext
{
AutoReconnect = true,
//Username = "admin",
//Password = "admin",
Identity = "demo",
Identity = "tester",
AuthenticationProtocol = "hash"
});