feat(api): аутентификация и авторизация. Кастомные ParrAuthenticationHandler и BaseSimpleRoleProvider.

This commit is contained in:
Mikhail Trubnikov
2023-12-01 16:41:37 +10:00
parent 78f2310199
commit d0c309e642
23 changed files with 395 additions and 11 deletions

View 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>();
}
}

View 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; }
}
}