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-12 01:32:51 +02:00
|
|
|
|
public const string AccessDeniedPath = "~/signin", AuthorizePath = "~/authorize",
|
|
|
|
|
|
TokenPath = "~/token", LocalLoginPath = "~/signin", LoginPath = "~/signin",
|
|
|
|
|
|
ExternalLoginPath = "~/extsign", LogoutPath = "~/signout", MePath = "~/api/Me";
|
2016-06-10 01:14:53 +02:00
|
|
|
|
|
2016-06-12 01:32:51 +02:00
|
|
|
|
public const string
|
|
|
|
|
|
ApplicationAuthenticationSheme = "ServerCookie",
|
|
|
|
|
|
ExternalAuthenticationSheme= "ExternalCookie";
|
|
|
|
|
|
|
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-12 01:32:51 +02:00
|
|
|
|
public const string
|
|
|
|
|
|
CompanyInfoUrl = " https://societeinfo.com/app/rest/api/v1/company/json?registration_number={0}&key={1}",
|
|
|
|
|
|
DefaultFactor = "Default",
|
|
|
|
|
|
MobileAppFactor = "Google.clood",
|
|
|
|
|
|
EMailFactor = "Email",
|
|
|
|
|
|
SMSFactor = "Phone",
|
|
|
|
|
|
AdminGroupName = "Administrator",
|
|
|
|
|
|
BlogModeratorGroupName = "Moderator",
|
|
|
|
|
|
FrontOfficeGroupName = "FrontOffice",
|
|
|
|
|
|
UserBillsFilesDir= "Bills",
|
|
|
|
|
|
UserFilesDir = "UserFiles",
|
|
|
|
|
|
GCMNotificationUrl = "https://gcm-http.googleapis.com/gcm/send",
|
|
|
|
|
|
KeyProtectorPurpose = "OAuth.AspNet.AuthServer";
|
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" };
|
2016-06-12 01:32:51 +02:00
|
|
|
|
public const string ApplicationName = "Yavsc",
|
|
|
|
|
|
Issuer = "https://dev.pschneider.fr",
|
|
|
|
|
|
CompanyClaimType = "https://schemas.pschneider.fr/identity/claims/Company",
|
|
|
|
|
|
UserNameRegExp = @"^[a-zA-Z][a-zA-Z0-9 ]*$";
|
2016-05-17 18:22:18 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|