Table of Contents

Class ResourceValidationResult

Namespace
Duende.IdentityServer.Validation
Assembly
Duende.IdentityServer.dll

Result of validation of requested scopes and resource indicators.

public class ResourceValidationResult
Inheritance
ResourceValidationResult
Inherited Members
Extension Methods

Constructors

ResourceValidationResult()

Ctor

public ResourceValidationResult()

ResourceValidationResult(Resources)

Ctor

public ResourceValidationResult(Resources resources)

Parameters

resources Resources

ResourceValidationResult(Resources, IEnumerable<ParsedScopeValue>)

Ctor

public ResourceValidationResult(Resources resources, IEnumerable<ParsedScopeValue> parsedScopeValues)

Parameters

resources Resources
parsedScopeValues IEnumerable<ParsedScopeValue>

Properties

InvalidResourceIndicators

The requested resource indicators that are invalid.

public ICollection<string> InvalidResourceIndicators { get; set; }

Property Value

ICollection<string>

InvalidScopes

The requested scopes that are invalid.

public ICollection<string> InvalidScopes { get; set; }

Property Value

ICollection<string>

ParsedScopes

The parsed scopes represented by the result.

public ICollection<ParsedScopeValue> ParsedScopes { get; set; }

Property Value

ICollection<ParsedScopeValue>

RawScopeValues

The original (raw) scope values represented by the validated result.

public IEnumerable<string> RawScopeValues { get; }

Property Value

IEnumerable<string>

Resources

The resources of the result.

public Resources Resources { get; set; }

Property Value

Resources

Succeeded

Indicates if the result was successful.

public bool Succeeded { get; }

Property Value

bool

Methods

Filter(IEnumerable<string>)

Returns new result filted by the scope values.

public ResourceValidationResult Filter(IEnumerable<string> scopeValues)

Parameters

scopeValues IEnumerable<string>

Returns

ResourceValidationResult

FilterByResourceIndicator(string)

Filters the result by the resource indicator for issuing access tokens.

public ResourceValidationResult FilterByResourceIndicator(string resourceIndicator)

Parameters

resourceIndicator string

Returns

ResourceValidationResult