Added Authorization
This commit is contained in:
parent
04049f31f6
commit
e47d6488c2
15 changed files with 134 additions and 21 deletions
21
Lieb/Data/Constants.cs
Normal file
21
Lieb/Data/Constants.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
namespace Lieb.Data
|
||||
{
|
||||
public static class Constants
|
||||
{
|
||||
|
||||
|
||||
public const string ClaimType = "Role";
|
||||
public static class Roles
|
||||
{
|
||||
public const string User = "User";
|
||||
public const string RaidLead = "RaidLead";
|
||||
public const string GuildLead = "GuildLead";
|
||||
public const string Admin = "Admin";
|
||||
|
||||
public static List<string> GetAllRoles()
|
||||
{
|
||||
return typeof(Roles).GetFields().Select(f => f.GetValue(f)).Cast<string>().ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue