View Source
Class BasicAuthenticationMiddleware
Provides basic authentication via back-office credentials for public website access if configured for use and the
client IP is not allow listed.
Inheritance
System.Object
Assembly: Umbraco.Web.Website.dll
Syntax
public class BasicAuthenticationMiddleware : IMiddleware
Constructors
View Source
BasicAuthenticationMiddleware(IRuntimeState, IBasicAuthService)
Declaration
public BasicAuthenticationMiddleware(IRuntimeState runtimeState, IBasicAuthService basicAuthService)
Parameters
View Source
BasicAuthenticationMiddleware(IRuntimeState, IBasicAuthService, IOptionsMonitor<GlobalSettings>, IHostingEnvironment)
Declaration
public BasicAuthenticationMiddleware(IRuntimeState runtimeState, IBasicAuthService basicAuthService, IOptionsMonitor<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment)
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