mirror of
https://github.com/ditkrg/asp.netcore-authentication.git
synced 2026-01-23 06:56:45 +00:00
22 lines
438 B
C#
22 lines
438 B
C#
using System.Security.Claims;
|
|
|
|
namespace DIT.Authentication.GatewayAuth.Abstractions;
|
|
|
|
public interface ISignatureValidator
|
|
{
|
|
|
|
void Initialize(GatewayAuthOptions options);
|
|
|
|
Task<bool> ValidateSignatureAsync(string data, string signature);
|
|
}
|
|
|
|
public interface IClaimsProvider
|
|
{
|
|
Task<ClaimsIdentity> GetClaimsAsync(string userHeader);
|
|
}
|
|
|
|
public interface IUserInjector<UserModel>
|
|
{
|
|
ValueTask SetUserAsync(UserModel user);
|
|
}
|