Search Results for

    Show / Hide Table of Contents
    View Source

    Class PreviewAuthenticationMiddleware

    Ensures that preview pages (front-end routed) are authenticated with the back office identity appended to the principal alongside any default authentication that takes place

    Inheritance
    object
    Namespace: Umbraco.Cms.Web.Common.Middleware
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class PreviewAuthenticationMiddleware

    Constructors

    View Source

    PreviewAuthenticationMiddleware(ILogger<PreviewAuthenticationMiddleware>, IPreviewTokenGenerator, IPreviewService)

    Declaration
    public PreviewAuthenticationMiddleware(ILogger<PreviewAuthenticationMiddleware> logger, IPreviewTokenGenerator previewTokenGenerator, IPreviewService previewService)
    Parameters
    Type Name Description
    ILogger<PreviewAuthenticationMiddleware> logger
    IPreviewTokenGenerator previewTokenGenerator
    IPreviewService previewService

    Methods

    View Source

    InvokeAsync(HttpContext, RequestDelegate)

    Declaration
    public Task InvokeAsync(HttpContext context, RequestDelegate next)
    Parameters
    Type Name Description
    HttpContext context
    RequestDelegate next
    Returns
    Type Description
    Task
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX