Class ValidateResourcesRightMiddlewareOptions
Configures the resources right validation middleware.
public class ValidateResourcesRightMiddlewareOptions
- Inheritance
-
ValidateResourcesRightMiddlewareOptions
- Inherited Members
Properties
DefaultContent
Gets or sets the content returned when access is denied and the resource has no ContentToDisplay. The default is an empty Swagger 2.0 document titled "You are not authorized!".
public string DefaultContent { get; set; }
Property Value
ResourcesPolicies
Gets or sets the protected resources. The key is only a description of the entry: it is not used, but it must not be empty.
public Dictionary<string, ValidateResourceRightMiddlewareOptions> ResourcesPolicies { get; set; }