feat(api): аутентификация и авторизация. Кастомные ParrAuthenticationHandler и BaseSimpleRoleProvider.
This commit is contained in:
18
PARR.API/Settings/UserCacheSettings.cs
Normal file
18
PARR.API/Settings/UserCacheSettings.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace PARR.API.Settings
|
||||
{
|
||||
/// <summary>
|
||||
/// Настройки кэша пользователй
|
||||
/// </summary>
|
||||
public class UserCacheSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Сколько хранить в кэше авторизованных пользователей
|
||||
/// </summary>
|
||||
public TimeSpan UserCacheTtl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Сколько хранить в кэше заблокированных пользователей (как долго блокировать пользователя)
|
||||
/// </summary>
|
||||
public TimeSpan UserBlockTtl { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user