Table of Contents

Class OAuthAccount

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

Represents an external OAuth account linked to a user, enabling authentication via third-party providers.

public class OAuthAccount
Inheritance
OAuthAccount
Inherited Members

Remarks

Users can link multiple OAuth accounts from different providers to their Builvero account. This allows flexible authentication options and account recovery. The provider user ID is used to identify the user on the external platform.

Properties

AccessToken

Gets or sets an optional access token for the OAuth account, which may be used for additional API calls.

public string? AccessToken { get; set; }

Property Value

string
Represents an external OAuth account linked to a user, enabling authentication via third-party providers.

Remarks

Access tokens are typically short-lived and may be refreshed as needed. This field may be null if token storage is not required or if tokens are managed separately.

CreatedAt

Gets or sets the UTC timestamp when this OAuth account was linked to the user.

public DateTime CreatedAt { get; set; }

Property Value

DateTime
Represents an external OAuth account linked to a user, enabling authentication via third-party providers.

Id

Gets or sets the unique identifier for this OAuth account record.

public Guid Id { get; set; }

Property Value

Guid
Represents an external OAuth account linked to a user, enabling authentication via third-party providers.

Provider

Gets or sets the OAuth provider for this account (e.g., Google, LinkedIn).

public OAuthProvider Provider { get; set; }

Property Value

OAuthProvider
Represents an external OAuth account linked to a user, enabling authentication via third-party providers.

ProviderUserId

Gets or sets the unique identifier for the user on the external OAuth provider's platform.

public string ProviderUserId { get; set; }

Property Value

string
Represents an external OAuth account linked to a user, enabling authentication via third-party providers.

Remarks

This ID is provided by the OAuth provider and is used to identify the user during authentication. The combination of Provider and ProviderUserId should be unique.

User

Gets or sets the user this OAuth account is linked to.

public User User { get; set; }

Property Value

User
Represents an external OAuth account linked to a user, enabling authentication via third-party providers.

UserId

Gets or sets the unique identifier of the user this OAuth account is linked to.

public Guid UserId { get; set; }

Property Value

Guid
Represents an external OAuth account linked to a user, enabling authentication via third-party providers.