RouteConfig.AuthorizationPolicy 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.
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