Table of Contents

Class ValidateSwaggerRightMiddlewareOption

Namespace
Arc4u.OAuth2.Middleware
Assembly
Arc4u.OAuth2.AspNetCore.dll
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

int

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

string

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; }

Property Value

string