Table of Contents

Interface IBackOfficeAntiforgery

Namespace
Umbraco.Cms.Web.BackOffice.Security
Assembly
Umbraco.Web.BackOffice.dll

Antiforgery implementation for the Umbraco back office

public interface IBackOfficeAntiforgery

Methods

GetAndStoreTokens(HttpContext)

Generates tokens to use for the cookie and header antiforgery values

void GetAndStoreTokens(HttpContext httpContext)

Parameters

httpContext HttpContext

ValidateRequestAsync(HttpContext)

Validates the headers/cookies passed in for the request

Task<Attempt<string?>> ValidateRequestAsync(HttpContext httpContext)

Parameters

httpContext HttpContext

Returns

Task<Attempt<string>>