Table of Contents

Class ResourceExtensions

Namespace
Duende.IdentityServer.Models
Assembly
Duende.IdentityServer.dll

Extensions for Resource

public static class ResourceExtensions
Inheritance
ResourceExtensions
Inherited Members

Methods

FindApiResourcesByScope(Resources, string)

Finds the API resources that contain the scope.

public static IEnumerable<ApiResource> FindApiResourcesByScope(this Resources resources, string name)

Parameters

resources Resources

The resources.

name string

The name.

Returns

IEnumerable<ApiResource>

FindApiScope(Resources, string)

Finds the API scope.

public static ApiScope FindApiScope(this Resources resources, string name)

Parameters

resources Resources

The resources.

name string

The name.

Returns

ApiScope

FindIdentityResourcesByScope(Resources, string)

Finds the IdentityResource that matches the scope.

public static IdentityResource FindIdentityResourcesByScope(this Resources resources, string name)

Parameters

resources Resources

The resources.

name string

The name.

Returns

IdentityResource

GetRequiredScopeValues(ResourceValidationResult)

Returns the collection of scope values that are required.

public static IEnumerable<string> GetRequiredScopeValues(this ResourceValidationResult resourceValidationResult)

Parameters

resourceValidationResult ResourceValidationResult

Returns

IEnumerable<string>

ToScopeNames(Resources)

Converts to scope names.

public static IEnumerable<string> ToScopeNames(this Resources resources)

Parameters

resources Resources

The resources.

Returns

IEnumerable<string>