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
httpContextHttpContext
ValidateRequestAsync(HttpContext)
Validates the headers/cookies passed in for the request
Task<Attempt<string?>> ValidateRequestAsync(HttpContext httpContext)
Parameters
httpContextHttpContext