mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 14:38:43 +00:00
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|