feat(api): аутентификация и авторизация. Кастомные ParrAuthenticationHandler и BaseSimpleRoleProvider.
This commit is contained in:
10
PARR.API/Authentication/ParrAuthenticationOptions.cs
Normal file
10
PARR.API/Authentication/ParrAuthenticationOptions.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
|
||||
namespace PARR.API.Authentication
|
||||
{
|
||||
public class ParrAuthenticationOptions : AuthenticationSchemeOptions
|
||||
{
|
||||
public const string DefaultScheme = "ParrAuthenticationScheme";
|
||||
//public string TokenHeaderName { get; set; } = "MyToken";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user