Added the Authorization.cs file to contain policy, claims and roles

This commit is contained in:
James Tombleson 2023-07-23 16:20:47 -07:00
parent b9c07eda7d
commit 16e63aa4a1
2 changed files with 12 additions and 6 deletions

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

View File

@ -1,6 +0,0 @@
namespace Newsbot.Collector.Api.Domain;
public class AuthorizationRoles
{
public const string Administrators = "Administrators";
}