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
resourceApiResourceThe API resource to store. Its name is the key.
cancellationTokenCancellationTokenCancels 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
scopeApiScopeThe API scope to store. Its name is the key.
cancellationTokenCancellationTokenCancels 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
clientClientThe client to store. Its ClientId is the key.
cancellationTokenCancellationTokenCancels 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
resourceIdentityResourceThe identity resource to store. Its name is the key.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task
A task that completes once the resource is stored.