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
credentialPluginOAuthCredential- Repository interface for plugin OAuth credential data access operations.
ctCancellationToken- 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
installationIdGuid- Repository interface for plugin OAuth credential data access operations.
providerstring- Repository interface for plugin OAuth credential data access operations.
scopePluginInstallationScope- Repository interface for plugin OAuth credential data access operations.
ctCancellationToken- 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
installationIdGuid- Repository interface for plugin OAuth credential data access operations.
providerstring- Repository interface for plugin OAuth credential data access operations.
userIdGuid- Repository interface for plugin OAuth credential data access operations.
ctCancellationToken- 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
credentialPluginOAuthCredential- Repository interface for plugin OAuth credential data access operations.
ctCancellationToken- Repository interface for plugin OAuth credential data access operations.
Returns
- Task
- Repository interface for plugin OAuth credential data access operations.