Table of Contents

Class PluginOAuthCredential

Namespace
Builvero.Domain.Entities
Assembly
Builvero.Domain.dll

Represents OAuth credentials stored for a plugin installation (project default or user override).

public class PluginOAuthCredential
Inheritance
PluginOAuthCredential
Inherited Members

Remarks

OAuth credentials are encrypted at rest. Project-level installations have a default credential, but users can override with their own credentials if needed.

Properties

CreatedAtUtc

Gets or sets the UTC timestamp when this credential was created.

public DateTime CreatedAtUtc { get; set; }

Property Value

DateTime
Represents OAuth credentials stored for a plugin installation (project default or user override).

EncryptedAccessToken

Gets or sets the encrypted access token.

public string EncryptedAccessToken { get; set; }

Property Value

string
Represents OAuth credentials stored for a plugin installation (project default or user override).

EncryptedRefreshToken

Gets or sets the encrypted refresh token (if available).

public string? EncryptedRefreshToken { get; set; }

Property Value

string
Represents OAuth credentials stored for a plugin installation (project default or user override).

Id

Gets or sets the unique identifier for this credential record.

public Guid Id { get; set; }

Property Value

Guid
Represents OAuth credentials stored for a plugin installation (project default or user override).

Installation

Gets or sets the plugin installation this credential is associated with.

public PluginInstallation Installation { get; set; }

Property Value

PluginInstallation
Represents OAuth credentials stored for a plugin installation (project default or user override).

InstallationId

Gets or sets the plugin installation this credential is associated with.

public Guid InstallationId { get; set; }

Property Value

Guid
Represents OAuth credentials stored for a plugin installation (project default or user override).

MetadataJson

Gets or sets additional metadata as JSON (e.g., token expiry, scopes).

public string? MetadataJson { get; set; }

Property Value

string
Represents OAuth credentials stored for a plugin installation (project default or user override).

Project

Gets or sets the project if this is a project-level credential.

public Project? Project { get; set; }

Property Value

Project
Represents OAuth credentials stored for a plugin installation (project default or user override).

ProjectId

Gets or sets the project ID if this is a project-level credential (null for user-level).

public Guid? ProjectId { get; set; }

Property Value

Guid?
Represents OAuth credentials stored for a plugin installation (project default or user override).

Provider

Gets or sets the OAuth provider name (e.g., "google", "github").

public string Provider { get; set; }

Property Value

string
Represents OAuth credentials stored for a plugin installation (project default or user override).

Scope

Gets or sets the scope of this credential (user or project).

public PluginInstallationScope Scope { get; set; }

Property Value

PluginInstallationScope
Represents OAuth credentials stored for a plugin installation (project default or user override).

UpdatedAtUtc

Gets or sets the UTC timestamp when this credential was last updated.

public DateTime UpdatedAtUtc { get; set; }

Property Value

DateTime
Represents OAuth credentials stored for a plugin installation (project default or user override).

User

Gets or sets the user if this is a user-level credential override.

public User? User { get; set; }

Property Value

User
Represents OAuth credentials stored for a plugin installation (project default or user override).

UserId

Gets or sets the user ID if this is a user-level credential override (null for project default).

public Guid? UserId { get; set; }

Property Value

Guid?
Represents OAuth credentials stored for a plugin installation (project default or user override).