using Esiur.Core; using Esiur.Security.Authority; using Esiur.Security.Authority.Providers; using System; using System.Collections.Generic; using System.Text; namespace Esiur.Tests.Functional { internal class ServerAuthenticationProvider: PasswordAuthenticationProvider { public override (byte[], byte[]) GetHostedAccountCredential(string identity, string domain) { if (identity == "tester" && domain == "test") return (new byte[] { 1, 2, 3, 4, 5 }, new byte[] { 6, 7, 8, 9, 10 }); else return (null, null); } public override byte[] GetSelfCredential(string identity, string domain, string hostname) { return base.GetSelfCredential(identity, domain, hostname); } public override (string, byte[]) GetSelfIdentityAndCredential(string domain, string hostname) { return base.GetSelfIdentityAndCredential(domain, hostname); } public override AsyncReply Login(Session session) { return base.Login(session); } public override AsyncReply Logout(Session session) { return base.Logout(session); } } }