2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-06-13 14:38:43 +00:00

Protocol Phase 1 (Auth)

This commit is contained in:
2026-06-01 01:57:16 +03:00
parent a91fc7d262
commit e1cb60d498
13 changed files with 263 additions and 96 deletions
@@ -10,7 +10,7 @@ namespace Esiur.Tests.Functional
{
internal class ClientAuthenticationProvider : PasswordAuthenticationProvider
{
public override (byte[], byte[]) GetHostedAccountCredential(string identity, string domain)
public override PasswordHash GetHostedAccountCredential(string identity, string domain)
{
throw new NotImplementedException();
}
@@ -23,12 +23,12 @@ namespace Esiur.Tests.Functional
return null;
}
public override (string, byte[]) GetSelfIdentityAndCredential(string domain, string hostname)
public override IdentityPassword GetSelfIdentityAndCredential(string domain, string hostname)
{
if (domain == "test" && hostname == "localhost")
return ("tester", new byte[] { 1, 2, 3, 4, 5 });
return new IdentityPassword { Identity = "tester", Password = new byte[] { 1, 2, 3, 4, 5 } };
else
return (null, null);
return new IdentityPassword { Identity = null, Password = null };
}
public override AsyncReply<bool> Login(Session session)