Interface IBackOfficeAntiforgery
Antiforgery implementation for the Umbraco back office
Namespace: Umbraco.Cms.Web.BackOffice.Security
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public interface IBackOfficeAntiforgery
Methods
View SourceGetAndStoreTokens(HttpContext)
Generates tokens to use for the cookie and header antiforgery values
Declaration
void GetAndStoreTokens(HttpContext httpContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext |
ValidateRequestAsync(HttpContext)
Validates the headers/cookies passed in for the request
Declaration
Task<Attempt<string>> ValidateRequestAsync(HttpContext httpContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext |
Returns
Type | Description |
---|---|
Task<Attempt<System.String>> |