Table of Contents

Class DecisionRequirement

Namespace
Keycloak.AuthServices.Authorization.Requirements
Assembly
Keycloak.AuthServices.Authorization.dll

Decision requirement

public class DecisionRequirement : IAuthorizationRequirement, IProtectedResourceData
Inheritance
DecisionRequirement
Implements
Inherited Members

Constructors

DecisionRequirement(string, string)

Constructs requirement

public DecisionRequirement(string resource, string scope)

Parameters

resource string
scope string

DecisionRequirement(string, string, string)

Constructs requirement based on resource id

public DecisionRequirement(string resource, string id, string scope)

Parameters

resource string
id string
scope string

DecisionRequirement(string, string[])

Constructs requirement

public DecisionRequirement(string resource, string[] scopes)

Parameters

resource string
scopes string[]

Properties

Audience

Gets or sets the Keycloak client ID of the resource server to use as the UMA audience parameter. When null, the global KeycloakAuthorizationServerOptions.Resource value is used.

public string? Audience { get; set; }

Property Value

string

Resource

Resource name

public string Resource { get; }

Property Value

string

Scopes

Resource scopes

public string[] Scopes { get; }

Property Value

string[]

ScopesValidationMode

Validation Mode

public ScopesValidationMode? ScopesValidationMode { get; set; }

Property Value

ScopesValidationMode?

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.