Table of Contents

Class SwaggerSettings

Namespace
KadicAuth.Application.Common
Assembly
KadicAuth.Application.dll

Controls Swagger UI availability and basic-auth protection per environment. Mapped from the "SwaggerSettings" section in appsettings.

public sealed class SwaggerSettings
Inheritance
object
SwaggerSettings

Fields

SectionName

public const string SectionName = "SwaggerSettings"

Field Value

string

Properties

Enabled

Whether Swagger UI is exposed at all. Set to false in Production.

public bool Enabled { get; set; }

Property Value

bool

Password

Basic-auth password for Swagger access.

public string Password { get; set; }

Property Value

string

RequireAuth

When true, the /swagger path requires HTTP Basic authentication using the Username and Password values below.

public bool RequireAuth { get; set; }

Property Value

bool

Username

Basic-auth username for Swagger access.

public string Username { get; set; }

Property Value

string