DevUIOptions.AuthToken Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.