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
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class PreviewAuthenticationMiddleware : IMiddleware
Constructors
View Source
PreviewAuthenticationMiddleware(ILogger<PreviewAuthenticationMiddleware>)
Declaration
public PreviewAuthenticationMiddleware(ILogger<PreviewAuthenticationMiddleware> logger)
Parameters
Methods
View Source
InvokeAsync(HttpContext, RequestDelegate)
Declaration
public async Task InvokeAsync(HttpContext context, RequestDelegate next)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Http.HttpContext |
context |
|
Microsoft.AspNetCore.Http.RequestDelegate |
next |
|
Returns