Search Results for

    Show / Hide Table of Contents
    View Source

    Class MemberCookieManager

    A custom cookie manager for members to ensure that cookie auth does not occur for any back office requests

    Inheritance
    System.Object
    Microsoft.AspNetCore.Authentication.Cookies.ChunkingCookieManager
    Namespace: Umbraco.Cms.Web.Common.Security
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class MemberCookieManager : ChunkingCookieManager, ICookieManager

    Constructors

    View Source

    MemberCookieManager(IRuntimeState, UmbracoRequestPaths)

    Declaration
    public MemberCookieManager(IRuntimeState runtime, UmbracoRequestPaths umbracoRequestPaths)
    Parameters
    Type Name Description
    IRuntimeState runtime
    UmbracoRequestPaths umbracoRequestPaths

    Methods

    View Source

    ShouldAuthenticateRequest(String)

    Determines if we should authenticate the request

    Declaration
    public bool ShouldAuthenticateRequest(string absPath)
    Parameters
    Type Name Description
    System.String absPath
    Returns
    Type Description
    System.Boolean

    true if the request should be authenticated

    Remarks

    We auth the request when it is not a back office request and when the runtime level is Run

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MemberCookieManager(IRuntimeState, UmbracoRequestPaths)
    • Methods
      • ShouldAuthenticateRequest(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX