Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    GetAndStoreTokens(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
    View Source

    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>>
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetAndStoreTokens(HttpContext)
      • ValidateRequestAsync(HttpContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX