Added the Authorization.cs file to contain policy, claims and roles
This commit is contained in:
parent
b9c07eda7d
commit
16e63aa4a1
12
Newsbot.Collector.Api/Domain/Authorization.cs
Normal file
12
Newsbot.Collector.Api/Domain/Authorization.cs
Normal file
@ -0,0 +1,12 @@
|
||||
namespace Newsbot.Collector.Api.Domain;
|
||||
|
||||
public static class Authorization
|
||||
{
|
||||
public const string AdministratorPolicy = "Administrator";
|
||||
public const string AdministratorClaim = "administrator";
|
||||
|
||||
public const string AdministratorsRole = AdministratorPolicy;
|
||||
|
||||
public const string UserPolicy = "User";
|
||||
public const string UsersRole = UserPolicy;
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
namespace Newsbot.Collector.Api.Domain;
|
||||
|
||||
public class AuthorizationRoles
|
||||
{
|
||||
public const string Administrators = "Administrators";
|
||||
}
|
Loading…
Reference in New Issue
Block a user