Add authentication and authorization (#21)
Reviewed-on: #21
This commit was merged in pull request #21.
This commit is contained in:
@@ -2,6 +2,18 @@
|
||||
|
||||
public class GlobalConstants
|
||||
{
|
||||
public static int NUMBER_PER_PAGE = 50;
|
||||
public readonly static Guid ADMINISTRATOR_ID = Guid.Parse("{06CA5CB7-6DE5-4A73-9DDD-8E2D5CCDF104}");
|
||||
public readonly static Guid ADMINISTRATOR_USER_ID = Guid.Parse("{2AB56FCB-0CDE-4DAE-AC9C-FC7635B0D18A}");
|
||||
public readonly static Guid MEMBER_ID = Guid.Parse("{BCE14DEA-1748-4A76-8485-ADEE83DF5EFD}");
|
||||
|
||||
public const string ADMINISTRATOR = "Administrateur";
|
||||
public const string MEMBER = "Membre";
|
||||
public const string ADMIN_MEMBER = $"{ADMINISTRATOR}, {MEMBER}";
|
||||
|
||||
public const int JWT_DURATION_HOUR = 12;
|
||||
|
||||
public const int NUMBER_PER_PAGE = 50;
|
||||
|
||||
public const string LS_AUTH_STORAGE_KEY = "authToken";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user