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-05-21 10:51:38 +00:00
|
|
|
Task UserCreated(User user);
|
2024-01-31 15:15:41 +00:00
|
|
|
}
|