Table of Contents

Class SwaggerBasicAuthMiddleware

Namespace
KadicAuth.Api.Middleware
Assembly
KadicAuth.Api.dll

Protects the /swagger path with HTTP Basic authentication in non-local environments. Only active when SwaggerSettings.RequireAuth is true.

public class SwaggerBasicAuthMiddleware
Inheritance
object
SwaggerBasicAuthMiddleware

Constructors

SwaggerBasicAuthMiddleware(RequestDelegate, IOptions<SwaggerSettings>)

public SwaggerBasicAuthMiddleware(RequestDelegate next, IOptions<SwaggerSettings> settings)

Parameters

next RequestDelegate
settings IOptions<SwaggerSettings>

Methods

InvokeAsync(HttpContext)

public Task InvokeAsync(HttpContext context)

Parameters

context HttpContext

Returns

Task