Dela via


RouteConfig.AuthorizationPolicy Property

Definition

The name of the AuthorizationPolicy to apply to this route. If not set then only the FallbackPolicy will apply. Set to "Default" to enable authorization with the applications default policy. Set to "Anonymous" to disable all authorization checks for this route.

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

Property Value

Applies to