features/identity-roles #14
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