Class ValidateSwaggerRightMiddlewareOption
- Namespace
- Arc4u.OAuth2.Middleware
- Assembly
- Arc4u.OAuth2.AspNetCore.dll
Configures the ValidateSwaggerRightMiddleware.
public class ValidateSwaggerRightMiddlewareOption
- Inheritance
-
ValidateSwaggerRightMiddlewareOption
- Inherited Members
Properties
Access
Gets or sets the identifier of the right (operation) that the principal must have, checked with IsAuthorized.
public int Access { get; set; }
Property Value
ContentToDisplay
Gets or sets the content written when access is denied. The default is an empty Swagger 2.0 document titled "You are not authorized!".
public string ContentToDisplay { get; set; }
Property Value
Path
Gets or sets the request path of the Swagger document to protect. 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; }