Table of Contents

Class ValidateResourceRightMiddlewareOptions

Namespace
Arc4u.OAuth2.Options
Assembly
Arc4u.OAuth2.AspNetCore.dll

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

string

ContentToDisplay

Gets or sets the content written when access is denied. When empty, DefaultContent is used.

public string ContentToDisplay { get; set; }

Property Value

string

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

Property Value

string