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
Type |
Name |
Description |
IRuntimeState |
runtimeState |
|
IBasicAuthService |
basicAuthService |
|
View Source
BasicAuthenticationMiddleware(IRuntimeState, IBasicAuthService, IOptionsMonitor<GlobalSettings>, IHostingEnvironment)
Declaration
public BasicAuthenticationMiddleware(IRuntimeState runtimeState, IBasicAuthService basicAuthService, IOptionsMonitor<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment)
Parameters
Type |
Name |
Description |
IRuntimeState |
runtimeState |
|
IBasicAuthService |
basicAuthService |
|
Microsoft.Extensions.Options.IOptionsMonitor<GlobalSettings> |
globalSettings |
|
IHostingEnvironment |
hostingEnvironment |
|
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