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
ResourcesThe resources.
name
stringThe name.
Returns
- IEnumerable<ApiResource>
FindApiScope(Resources, string)
Finds the API scope.
public static ApiScope FindApiScope(this Resources resources, string name)
Parameters
resources
ResourcesThe resources.
name
stringThe name.
Returns
- ApiScope
FindIdentityResourcesByScope(Resources, string)
Finds the IdentityResource that matches the scope.
public static IdentityResource FindIdentityResourcesByScope(this Resources resources, string name)
Parameters
resources
ResourcesThe resources.
name
stringThe 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
ToScopeNames(Resources)
Converts to scope names.
public static IEnumerable<string> ToScopeNames(this Resources resources)
Parameters
resources
ResourcesThe resources.