Updated Authorization.cs namespace and added the claim value.
This commit is contained in:
parent
7c88967f7f
commit
a89c80ed3c
@ -1,12 +1,13 @@
|
|||||||
namespace Newsbot.Collector.Api.Domain;
|
namespace Newsbot.Collector.Api.Domain.Consts;
|
||||||
|
|
||||||
public static class Authorization
|
public static class Authorization
|
||||||
{
|
{
|
||||||
public const string AdministratorPolicy = "Administrator";
|
public const string AdministratorPolicy = "Administrator";
|
||||||
|
public const string AdministratorsRole = AdministratorPolicy;
|
||||||
public const string AdministratorClaim = "administrator";
|
public const string AdministratorClaim = "administrator";
|
||||||
|
|
||||||
public const string AdministratorsRole = AdministratorPolicy;
|
|
||||||
|
|
||||||
public const string UserPolicy = "User";
|
public const string UserPolicy = "User";
|
||||||
public const string UsersRole = UserPolicy;
|
public const string UsersRole = UserPolicy;
|
||||||
|
public const string UserClaim = "user";
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user