mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 22:48:42 +00:00
Ver 3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user