yavsc/src/Abstract/Constants.cs

60 lines
2.7 KiB
C#
Raw Normal View History

2019-10-08 23:41:19 +01:00
using Yavsc.Models.Auth;
namespace Yavsc
{
public static class Constants
{
2025-07-07 07:49:18 +01:00
public static readonly Scope[] SiteScopes = {
new Scope { Id = "profile", Description = "Your profile informations" },
new Scope { Id = "book" , Description ="Your booking interface"},
new Scope { Id = "blog" , Description ="Your blogging interface"},
new Scope { Id = "estimate" , Description ="Your estimation interface"},
new Scope { Id = "contract" , Description ="Your contract signature access"},
new Scope { Id = "admin" , Description ="Your administration rights on this site"},
new Scope { Id = "moderation" , Description ="Your moderator interface"},
2019-10-08 23:41:19 +01:00
new Scope { Id = "frontoffice" , Description ="Your front office interface" }
};
public const string CompanyClaimType = "https://schemas.pschneider.fr/identity/claims/Company";
public const string UserNameRegExp = @"^[a-zA-Z][a-zA-Z0-9._-]*$";
public const string UserFileNamePatternRegExp = @"^([a-zA-Z0-9._-]*/)*[a-zA-Z0-9._-]+$";
2025-07-07 07:49:18 +01:00
2023-04-05 22:29:40 +01:00
public const string LoginPath = "/signin";
public const string LogoutPath = "/signout";
2019-10-08 23:41:19 +01:00
public const string UserFilesPath = "/files";
public const string AvatarsPath = "/avatars";
public const string GitPath = "/sources";
2019-10-08 23:41:19 +01:00
public const string DefaultFactor = "Default";
public const string MobileAppFactor = "Mobile Application";
public const string SMSFactor = "SMS";
public const string AdminGroupName = "Administrator";
public const string PerformerGroupName = "Performer";
public const string StarGroupName = "Star";
public const string StarHunterGroupName = "StarHunter";
public const string BlogModeratorGroupName = "Moderator";
public const string FrontOfficeGroupName = "FrontOffice";
public const string DefaultAvatar = "/images/Users/icon_user.png";
public const string AnonAvatar = "/images/Users/icon_anon_user.png";
2025-07-14 18:58:04 +01:00
public const string YavscConnectionStringEnvName = "YAVSC_CONNECTION_STRING";
2019-10-08 23:41:19 +01:00
// at the end, let 4*4 bytes in peace
2020-09-12 01:11:30 +01:00
public const int WebSocketsMaxBufLen = 4096;
2019-10-08 23:41:19 +01:00
public static readonly long DefaultFSQ = 1024 * 1024 * 500;
public const string SshHeaderKey = "SSH";
public static readonly string NoneCode = "none";
public const int MaxUserNameLength = 26;
public const string LivePath = "/live/cast";
2025-02-15 20:06:07 +00:00
2025-07-07 07:49:18 +01:00
public const string StreamingPath = "/api/stream/put";
2025-08-18 11:27:13 +01:00
public static string RoleClaimType = "http://schemas.microsoft.com/ws/2008/06/identity/claims/role";
2019-10-08 23:41:19 +01:00
}
}