This commit is contained in:
Paul Schneider 2016-06-09 01:29:23 +02:00
commit 19b41ed9f4
19 changed files with 1729 additions and 7620 deletions

View file

@ -2,9 +2,17 @@ namespace Yavsc
{
using Yavsc.Models.Auth;
public static class Constants
public static class Constants
{
public const string RememberMeCookieName = "Berme";
public const string AccessDeniedPath = "~/forbidden";
public const string AuthorizePath = "~/authorize";
public const string TokenPath = "~/token";
public const string LoginPath = "~/signin";
public const string LogoutPath = "~/signout";
public const string MePath = "~/api/Me";
public const string ExternalAuthenticationSheme = "External";
public const string ApplicationAuthenticationSheme = "Server";
public static readonly Scope[] SiteScopes = { 
new Scope { Id = "profile", Description = "Your profile informations" },  
new Scope { Id = "book" , Description ="Your booking interface"},  
@ -40,8 +48,6 @@ namespace Yavsc
public const string UserNameRegExp = @"^[a-zA-Z][a-zA-Z0-9 ]*$";
public const string AuthenticationEndPath = "/signin";
public const string TokenEndPath = "/token";
public const string KeyProtectorPurpose = "OAuth.AspNet.AuthServer";