This commit is contained in:
ahmed committed 2026-05-24 18:27:22 +03:00
1 parent a6e8bed31d
commit eb323e8bf8
69 files changed
+6532 -3371

No files matched your search

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Esiur.Security.Authority.Providers
{
internal class PasswordAuthenticationProvider : IAuthenticationProvider
{
public string DefaultName => "hash";
public IAuthenticationHandler CreateAuthenticationHandler(AuthenticationContext context)
{
var authHandler = new PasswordAuthenticationHandler(context.Mode,
context.Direction,
context.InitiatorIdentity,
context.ResponderIdentity,
context.HostName,
context.Domain,
this);
return authHandler;
}
public virtual (byte[], byte[]) GetHostedAccountCredential(string identity, string domain)
{
return (null, null);
}
public virtual (string, byte[]) GetSelfIdentityAndCredential(string domain, string hostname)
{
return (null, null);
}
public virtual byte[] GetSelfCredential(string identity, string domain, string hostname)
{
return null;
}
}
}