DevUIOptions.AuthToken Property

Definition

Gets or sets a shared bearer token required on every DevUI request. When null or empty, the value of the DEVUI_AUTH_TOKEN environment variable is used instead.

public string? AuthToken { get; set; }
member this.AuthToken : string with get, set
Public Property AuthToken As String

Property Value

Remarks

When a token is configured, requests must include the header Authorization: Bearer <token>. Comparison is performed in constant time. This is a convenience for development scenarios. Production hosts should prefer a real ASP.NET Core authentication scheme attached via ConfigureEndpoints.

Applies to