2024-01-31 15:15:41 +00:00
|
|
|
using BotSharp.Abstraction.Users.Models;
|
2024-01-31 19:57:54 +00:00
|
|
|
using System.Security.Claims;
|
2024-01-31 15:15:41 +00:00
|
|
|
|
|
|
|
|
namespace BotSharp.Abstraction.Users;
|
|
|
|
|
|
|
|
|
|
public interface IAuthenticationHook
|
|
|
|
|
{
|
|
|
|
|
Task<User> Authenticate(string id, string password);
|
2024-01-31 19:57:54 +00:00
|
|
|
void AddClaims(List<Claim> claims);
|
2024-02-05 16:00:28 +00:00
|
|
|
void BeforeSending(Token token);
|
2024-01-31 15:15:41 +00:00
|
|
|
}
|