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
clientsIEnumerable<Client>The clients it answers with.
Exceptions
- ArgumentNullException
clientsis null.- ArgumentException
Two of
clientsshare 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
clientIdstringcancellationTokenCancellationToken
Returns
GetAllClientsAsync(CancellationToken)
Every client, in the order they were given. Duende's.
public IAsyncEnumerable<Client> GetAllClientsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken