Search Results for

    Show / Hide Table of Contents
    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
    Namespace: Umbraco.Cms.Web.Common.Middleware
    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
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • BasicAuthenticationMiddleware(IRuntimeState, IBasicAuthService)
      • BasicAuthenticationMiddleware(IRuntimeState, IBasicAuthService, IOptionsMonitor<GlobalSettings>, IHostingEnvironment)
    • Methods
      • InvokeAsync(HttpContext, RequestDelegate)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX