Table of Contents

Class InMemoryResourcesStore

Namespace
Duende.IdentityServer.Stores
Assembly
Duende.IdentityServer.dll

In-memory resource store

public class InMemoryResourcesStore : IResourceStore
Inheritance
InMemoryResourcesStore
Implements
IResourceStore
Inherited Members

Constructors

InMemoryResourcesStore(IEnumerable<IdentityResource>, IEnumerable<ApiResource>, IEnumerable<ApiScope>)

Initializes a new instance of the InMemoryResourcesStore class.

public InMemoryResourcesStore(IEnumerable<IdentityResource> identityResources = null, IEnumerable<ApiResource> apiResources = null, IEnumerable<ApiScope> apiScopes = null)

Parameters

identityResources IEnumerable<IdentityResource>
apiResources IEnumerable<ApiResource>
apiScopes IEnumerable<ApiScope>

Methods

FindApiResourcesByNameAsync(IEnumerable<string>)

public Task<IEnumerable<ApiResource>> FindApiResourcesByNameAsync(IEnumerable<string> apiResourceNames)

Parameters

apiResourceNames IEnumerable<string>

Returns

Task<IEnumerable<ApiResource>>

FindApiResourcesByScopeNameAsync(IEnumerable<string>)

public Task<IEnumerable<ApiResource>> FindApiResourcesByScopeNameAsync(IEnumerable<string> scopeNames)

Parameters

scopeNames IEnumerable<string>

Returns

Task<IEnumerable<ApiResource>>

FindApiScopesByNameAsync(IEnumerable<string>)

public Task<IEnumerable<ApiScope>> FindApiScopesByNameAsync(IEnumerable<string> scopeNames)

Parameters

scopeNames IEnumerable<string>

Returns

Task<IEnumerable<ApiScope>>

FindIdentityResourcesByScopeNameAsync(IEnumerable<string>)

public Task<IEnumerable<IdentityResource>> FindIdentityResourcesByScopeNameAsync(IEnumerable<string> scopeNames)

Parameters

scopeNames IEnumerable<string>

Returns

Task<IEnumerable<IdentityResource>>

GetAllResourcesAsync()

public Task<Resources> GetAllResourcesAsync()

Returns

Task<Resources>