yavsc/Yavsc/Constants.cs

52 lines
2.6 KiB
C#
Raw Normal View History

2016-05-17 18:22:18 +02:00
namespace Yavsc
{
using Yavsc.Models.Auth;
2016-06-09 01:29:23 +02:00
public static class Constants
2016-05-17 18:22:18 +02:00
{
2016-06-13 13:33:32 +02:00
public const string ApplicationName = "Yavsc",
CompanyClaimType = "https://schemas.pschneider.fr/identity/claims/Company",
UserNameRegExp = @"^[a-zA-Z][a-zA-Z0-9 ]*$",
AuthorizePath = "~/authorize",
TokenPath = "~/token", LoginPath = "~/signin",
LogoutPath = "~/signout", UserInfoPath = "~/api/me",
2016-06-12 01:32:51 +02:00
ApplicationAuthenticationSheme = "ServerCookie",
2016-06-13 13:33:32 +02:00
ExternalAuthenticationSheme= "ExternalCookie",
CompanyInfoUrl = " https://societeinfo.com/app/rest/api/v1/company/json?registration_number={0}&key={1}",
DefaultFactor = "Default",
MobileAppFactor = "Mobile Application",
EMailFactor = "Email",
SMSFactor = "SMS",
AdminGroupName = "Administrator",
2016-08-04 13:39:46 +02:00
PerformerGroupName = "Performer",
StarGroupName = "Star",
StarHunterGroupName = "StarHunter",
2016-06-13 13:33:32 +02:00
BlogModeratorGroupName = "Moderator",
FrontOfficeGroupName = "FrontOffice",
GCMNotificationUrl = "https://gcm-http.googleapis.com/gcm/send",
2016-12-01 17:34:29 +01:00
KeyProtectorPurpose = "OAuth.AspNet.AuthServer",
UserFilesPath = "/UserFiles",
2017-02-01 19:53:10 +01:00
AvatarsPath = "/Avatars",
DefaultAvatar = "/images/Users/icon_user.png",
AnonAvatar = "/images/Users/icon_anon_user.png";
2017-02-02 12:00:03 +01:00
public static readonly long DefaultFSQ = 1024*1024*500;
2017-02-01 19:53:10 +01:00
2016-05-17 18:22:18 +02: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"}, 
new Scope { Id = "frontoffice" , Description ="Your front office interface" }
};
2016-06-13 13:33:32 +02:00
2016-05-17 18:22:18 +02:00
private static readonly string[] GoogleScopes = { "openid", "profile", "email" };
public static readonly string[] GoogleCalendarScopes =
{ "openid", "profile", "email", "https://www.googleapis.com/auth/calendar" };
public static readonly string NoneCode = "none";
2016-05-17 18:22:18 +02:00
}
}