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
-
objectSwaggerBasicAuthMiddleware
Constructors
SwaggerBasicAuthMiddleware(RequestDelegate, IOptions<SwaggerSettings>)
public SwaggerBasicAuthMiddleware(RequestDelegate next, IOptions<SwaggerSettings> settings)
Parameters
nextRequestDelegatesettingsIOptions<SwaggerSettings>
Methods
InvokeAsync(HttpContext)
public Task InvokeAsync(HttpContext context)
Parameters
contextHttpContext
Returns
- Task