Table of Contents

Class ValidateResourcesRightMiddlewareOptions

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

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

string

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

Property Value

Dictionary<string, ValidateResourceRightMiddlewareOptions>