feat(api): аутентификация и авторизация. Кастомные ParrAuthenticationHandler и BaseSimpleRoleProvider.
This commit is contained in:
8
PARR.API/Authentication/Models/UserCache.cs
Normal file
8
PARR.API/Authentication/Models/UserCache.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace PARR.API.Authentication.Models
|
||||
{
|
||||
public class UserCache
|
||||
{
|
||||
public required string UserIp { get; set; }
|
||||
public List<UserRoleInCache> Roles { get; set; } = new List<UserRoleInCache>();
|
||||
}
|
||||
}
|
||||
8
PARR.API/Authentication/Models/UserRoleInCache.cs
Normal file
8
PARR.API/Authentication/Models/UserRoleInCache.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace PARR.API.Authentication.Models
|
||||
{
|
||||
public class UserRoleInCache
|
||||
{
|
||||
public required string Name { get; set; }
|
||||
public required string Description { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user