// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Authentication.Cookies { /// /// Default values related to cookie-based authentication handler /// public static class CookieAuthenticationDefaults { /// /// The default value used for CookieAuthenticationOptions.AuthenticationScheme /// public const string AuthenticationScheme = "Cookies"; /// /// The prefix used to provide a default CookieAuthenticationOptions.CookieName /// public static readonly string CookiePrefix = ".AspNetCore."; /// /// The default value used by CookieAuthenticationMiddleware for the /// CookieAuthenticationOptions.LoginPath /// public static readonly PathString LoginPath = new PathString("/Account/Login"); /// /// The default value used by CookieAuthenticationMiddleware for the /// CookieAuthenticationOptions.LogoutPath /// public static readonly PathString LogoutPath = new PathString("/Account/Logout"); /// /// The default value used by CookieAuthenticationMiddleware for the /// CookieAuthenticationOptions.AccessDeniedPath /// public static readonly PathString AccessDeniedPath = new PathString("/Account/AccessDenied"); /// /// The default value of the CookieAuthenticationOptions.ReturnUrlParameter /// public static readonly string ReturnUrlParameter = "ReturnUrl"; } }