IntelligenceX

API Reference

Interface

IAuthBundleStore

Namespace IntelligenceX.OpenAI.Auth
Assembly IntelligenceX
Modifiers abstract

Abstraction for storing authentication bundles.

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 2

Methods

public abstract Task<AuthBundle?> GetAsync(String provider, String? accountId = null, CancellationToken cancellationToken = default) #
Returns: Task<AuthBundle?>

Retrieves a bundle for the specified provider and account.

Parameters

provider System.String requiredposition: 0
Provider identifier.
accountId System.String? = null optionalposition: 1
Optional account id.
cancellationToken System.Threading.CancellationToken = default optionalposition: 2
Cancellation token.
public abstract Task<IReadOnlyList<AuthBundle>> ListAsync(String provider, CancellationToken cancellationToken = default) #
Returns: Task<IReadOnlyList<AuthBundle>>

Lists known bundles for the specified provider.

Parameters

provider System.String requiredposition: 0
Provider identifier.
cancellationToken System.Threading.CancellationToken = default optionalposition: 1
Cancellation token.
public abstract Task SaveAsync(AuthBundle bundle, CancellationToken cancellationToken = default) #
Returns: Task

Saves an authentication bundle.

Parameters

bundle IntelligenceX.OpenAI.Auth.AuthBundle requiredposition: 0
Bundle to save.
cancellationToken System.Threading.CancellationToken = default optionalposition: 1
Cancellation token.

Extension Methods

public static Task RemoveAsync(IAuthBundleStore store, String provider, String? accountId, CancellationToken cancellationToken = default) #
Returns: Task

Removes a stored account, or reports that the configured store does not support persistent sign-out.

Parameters

store IntelligenceX.OpenAI.Auth.IAuthBundleStore requiredposition: 0
provider System.String requiredposition: 1
accountId System.String? requiredposition: 2
cancellationToken System.Threading.CancellationToken = default optionalposition: 3

Exceptions