// 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
{
///
/// Default values related to cookie-based authentication middleware
///
public static class CookieAuthenticationDefaults
{
///
/// The default value used for CookieAuthenticationOptions.AuthenticationType
///
public const string AuthenticationType = "Cookies";
///
/// The prefix used to provide a default CookieAuthenticationOptions.CookieName
///
public const string CookiePrefix = ".AspNet.";
///
/// The default value used by UseApplicationSignInCookie for the
/// CookieAuthenticationOptions.LoginPath
///
[SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Login", Justification = "By design")]
public static readonly PathString LoginPath = new PathString("/Account/Login");
///
/// The default value used by UseApplicationSignInCookie for the
/// CookieAuthenticationOptions.LogoutPath
///
[SuppressMessage("Microsoft.Naming", "CA1726:UsePreferredTerms", MessageId = "Logout", Justification = "By design")]
public static readonly PathString LogoutPath = new PathString("/Account/Logout");
///
/// The default value of the CookieAuthenticationOptions.ReturnUrlParameter
///
public const string ReturnUrlParameter = "ReturnUrl";
}
}