45 lines
1.8 KiB
C#
45 lines
1.8 KiB
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using Microsoft.AspNet.Http;
|
|
|
|
namespace Microsoft.AspNet.Security.Cookies
|
|
{
|
|
/// <summary>
|
|
/// Default values related to cookie-based authentication middleware
|
|
/// </summary>
|
|
public static class CookieAuthenticationDefaults
|
|
{
|
|
/// <summary>
|
|
/// The default value used for CookieAuthenticationOptions.AuthenticationType
|
|
/// </summary>
|
|
public const string AuthenticationType = "Cookies";
|
|
|
|
/// <summary>
|
|
/// The prefix used to provide a default CookieAuthenticationOptions.CookieName
|
|
/// </summary>
|
|
public const string CookiePrefix = ".AspNet.";
|
|
|
|
/// <summary>
|
|
/// The default value used by UseApplicationSignInCookie for the
|
|
/// CookieAuthenticationOptions.LoginPath
|
|
/// </summary>
|
|
[SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Login", Justification = "By design")]
|
|
public static readonly PathString LoginPath = new PathString("/Account/Login");
|
|
|
|
/// <summary>
|
|
/// The default value used by UseApplicationSignInCookie for the
|
|
/// CookieAuthenticationOptions.LogoutPath
|
|
/// </summary>
|
|
[SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Logout", Justification = "By design")]
|
|
public static readonly PathString LogoutPath = new PathString("/Account/Logout");
|
|
|
|
/// <summary>
|
|
/// The default value of the CookieAuthenticationOptions.ReturnUrlParameter
|
|
/// </summary>
|
|
public const string ReturnUrlParameter = "ReturnUrl";
|
|
}
|
|
}
|