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 SourceMemberCookieManager(IRuntimeState, UmbracoRequestPaths)
Declaration
public MemberCookieManager(IRuntimeState runtime, UmbracoRequestPaths umbracoRequestPaths)
Parameters
Type | Name | Description |
---|---|---|
IRuntime |
runtime | |
Umbraco |
umbracoRequestPaths |
Methods
View SourceShouldAuthenticateRequest(String)
Determines if we should authenticate the request
Declaration
public bool ShouldAuthenticateRequest(string absPath)
Parameters
Type | Name | Description |
---|---|---|
System. |
absPath |
Returns
Type | Description |
---|---|
System. |
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