Table of Contents

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

installationId Guid
Service for managing OAuth credentials for plugin installations.
userId Guid
Service for managing OAuth credentials for plugin installations.
provider string
Service for managing OAuth credentials for plugin installations.
accessToken string
Service for managing OAuth credentials for plugin installations.
refreshToken string
Service for managing OAuth credentials for plugin installations.
metadata Dictionary<string, object>
Service for managing OAuth credentials for plugin installations.
ct CancellationToken
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

installationId Guid
Service for managing OAuth credentials for plugin installations.
userId Guid
Service for managing OAuth credentials for plugin installations.
provider string
Service for managing OAuth credentials for plugin installations.
ct CancellationToken
Service for managing OAuth credentials for plugin installations.

Returns

Task<PluginOAuthCredentialDto>
Service for managing OAuth credentials for plugin installations.