Table of Contents

Interface IConfigurationStoreWriter

Namespace
Fdyay.IdentityServer.Dapper.Stores
Assembly
Fdyay.IdentityServer.Dapper.dll

Writes client and resource configuration into the Dapper store.

public interface IConfigurationStoreWriter

Methods

SaveApiResourceAsync(ApiResource, CancellationToken)

Writes an API resource, replacing any stored API resource with the same name.

Task SaveApiResourceAsync(ApiResource resource, CancellationToken cancellationToken = default)

Parameters

resource ApiResource

The API resource to store. Its name is the key.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes once the resource is stored.

SaveApiScopeAsync(ApiScope, CancellationToken)

Writes an API scope, replacing any stored API scope with the same name.

Task SaveApiScopeAsync(ApiScope scope, CancellationToken cancellationToken = default)

Parameters

scope ApiScope

The API scope to store. Its name is the key.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes once the scope is stored.

SaveClientAsync(Client, CancellationToken)

Writes a client, replacing any stored client with the same client id.

Task SaveClientAsync(Client client, CancellationToken cancellationToken = default)

Parameters

client Client

The client to store. Its ClientId is the key.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes once the client is stored.

SaveIdentityResourceAsync(IdentityResource, CancellationToken)

Writes an identity resource, replacing any stored identity resource with the same name.

Task SaveIdentityResourceAsync(IdentityResource resource, CancellationToken cancellationToken = default)

Parameters

resource IdentityResource

The identity resource to store. Its name is the key.

cancellationToken CancellationToken

Cancels the write.

Returns

Task

A task that completes once the resource is stored.