Class ValidateResourceRightMiddlewareOptions
Protects one resource path with an authorization policy.
public class ValidateResourceRightMiddlewareOptions
- Inheritance
-
ValidateResourceRightMiddlewareOptions
- Inherited Members
Properties
AuthorizationPolicy
Gets or sets the name of the authorization policy the current principal must satisfy to access the resource.
public string AuthorizationPolicy { get; set; }
Property Value
ContentToDisplay
Gets or sets the content written when access is denied. When empty, DefaultContent is used.
public string ContentToDisplay { get; set; }
Property Value
Path
Gets or sets the request path of the resource. The comparison ignores the case and the leading and trailing slashes. The same path with another extension is protected too, for example swagger.yaml for swagger.json.
public string Path { get; set; }