Interface IPluginOAuthService
- Namespace
- Builvero.Application.Interfaces.Services
- Assembly
- Builvero.Application.dll
Service for managing OAuth credentials for plugin installations.
public interface IPluginOAuthService
Methods
ConnectOAuthAsync(Guid, Guid, string, string, string?, Dictionary<string, object>?, CancellationToken)
Connects OAuth credentials for a plugin installation (project default or user override).
Task ConnectOAuthAsync(Guid installationId, Guid userId, string provider, string accessToken, string? refreshToken, Dictionary<string, object>? metadata, CancellationToken ct = default)
Parameters
installationIdGuid- Service for managing OAuth credentials for plugin installations.
userIdGuid- Service for managing OAuth credentials for plugin installations.
providerstring- Service for managing OAuth credentials for plugin installations.
accessTokenstring- Service for managing OAuth credentials for plugin installations.
refreshTokenstring- Service for managing OAuth credentials for plugin installations.
metadataDictionary<string, object>- Service for managing OAuth credentials for plugin installations.
ctCancellationToken- Service for managing OAuth credentials for plugin installations.
Returns
- Task
- Service for managing OAuth credentials for plugin installations.
GetOAuthCredentialAsync(Guid, Guid, string, CancellationToken)
Gets OAuth credentials for a plugin installation (project default or user override).
Task<PluginOAuthCredentialDto?> GetOAuthCredentialAsync(Guid installationId, Guid userId, string provider, CancellationToken ct = default)
Parameters
installationIdGuid- Service for managing OAuth credentials for plugin installations.
userIdGuid- Service for managing OAuth credentials for plugin installations.
providerstring- Service for managing OAuth credentials for plugin installations.
ctCancellationToken- Service for managing OAuth credentials for plugin installations.
Returns
- Task<PluginOAuthCredentialDto>
- Service for managing OAuth credentials for plugin installations.