Table of Contents

Class InMemoryClientStore

Namespace
Fdyay.IdentityServer.Stores.InMemory
Assembly
Fdyay.IdentityServer.Core.dll

In-memory client store backed by a fixed collection.

public class InMemoryClientStore : IClientStore
Inheritance
InMemoryClientStore
Implements
Inherited Members

Constructors

InMemoryClientStore(IEnumerable<Client>)

A store over a fixed list of clients, copied when constructed.

public InMemoryClientStore(IEnumerable<Client> clients)

Parameters

clients IEnumerable<Client>

The clients it answers with.

Exceptions

ArgumentNullException

clients is null.

ArgumentException

Two of clients share a client id.

Methods

FindClientByIdAsync(string, CancellationToken)

Finds a client by id, or returns null if not found.

public Task<Client?> FindClientByIdAsync(string clientId, CancellationToken cancellationToken = default)

Parameters

clientId string
cancellationToken CancellationToken

Returns

Task<Client>

GetAllClientsAsync(CancellationToken)

Every client, in the order they were given. Duende's.

public IAsyncEnumerable<Client> GetAllClientsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

IAsyncEnumerable<Client>