Table of Contents

Interface IPluginOAuthCredentialRepository

Namespace
Builvero.Application.Interfaces.Repositories
Assembly
Builvero.Application.dll

Repository interface for plugin OAuth credential data access operations.

public interface IPluginOAuthCredentialRepository

Methods

CreateAsync(PluginOAuthCredential, CancellationToken)

Creates a new OAuth credential.

Task<PluginOAuthCredential> CreateAsync(PluginOAuthCredential credential, CancellationToken ct = default)

Parameters

credential PluginOAuthCredential
Repository interface for plugin OAuth credential data access operations.
ct CancellationToken
Repository interface for plugin OAuth credential data access operations.

Returns

Task<PluginOAuthCredential>
Repository interface for plugin OAuth credential data access operations.

GetByInstallationAndProviderAsync(Guid, string, PluginInstallationScope, CancellationToken)

Gets OAuth credential by installation, provider, and scope.

Task<PluginOAuthCredential?> GetByInstallationAndProviderAsync(Guid installationId, string provider, PluginInstallationScope scope, CancellationToken ct = default)

Parameters

installationId Guid
Repository interface for plugin OAuth credential data access operations.
provider string
Repository interface for plugin OAuth credential data access operations.
scope PluginInstallationScope
Repository interface for plugin OAuth credential data access operations.
ct CancellationToken
Repository interface for plugin OAuth credential data access operations.

Returns

Task<PluginOAuthCredential>
Repository interface for plugin OAuth credential data access operations.

GetByInstallationProviderAndUserAsync(Guid, string, Guid, CancellationToken)

Gets OAuth credential by installation, provider, and user (for user overrides).

Task<PluginOAuthCredential?> GetByInstallationProviderAndUserAsync(Guid installationId, string provider, Guid userId, CancellationToken ct = default)

Parameters

installationId Guid
Repository interface for plugin OAuth credential data access operations.
provider string
Repository interface for plugin OAuth credential data access operations.
userId Guid
Repository interface for plugin OAuth credential data access operations.
ct CancellationToken
Repository interface for plugin OAuth credential data access operations.

Returns

Task<PluginOAuthCredential>
Repository interface for plugin OAuth credential data access operations.

UpdateAsync(PluginOAuthCredential, CancellationToken)

Updates an existing OAuth credential.

Task UpdateAsync(PluginOAuthCredential credential, CancellationToken ct = default)

Parameters

credential PluginOAuthCredential
Repository interface for plugin OAuth credential data access operations.
ct CancellationToken
Repository interface for plugin OAuth credential data access operations.

Returns

Task
Repository interface for plugin OAuth credential data access operations.