Services, service registration and dependency injection for auth
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
using AipsCore.Domain.Models.User;
|
||||
|
||||
namespace AipsCore.Application.Abstract.UserContext;
|
||||
|
||||
public interface ITokenProvider
|
||||
{
|
||||
string Generate(User user, IList<string> roles);
|
||||
}
|
||||
3
dotnet/AipsCore/Application/Authentication/Token.cs
Normal file
3
dotnet/AipsCore/Application/Authentication/Token.cs
Normal file
@@ -0,0 +1,3 @@
|
||||
namespace AipsCore.Application.Authentication;
|
||||
|
||||
public record Token(string Value);
|
||||
Reference in New Issue
Block a user