IntelligenceX

API Reference

Interface

IAuthBundleStore

Namespace IntelligenceX.OpenAI.Auth
Assembly IntelligenceX
Modifiers abstract

Abstraction for storing authentication bundles.

Usage

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

Returned or exposed by

Accepted by parameters

Methods

public abstract Task<AuthBundle> GetAsync(String provider, String accountId = null, CancellationToken cancellationToken = null) #
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 = null optionalposition: 2
Cancellation token.
public abstract Task<IReadOnlyList<AuthBundle>> ListAsync(String provider, CancellationToken cancellationToken = null) #
Returns: Task<IReadOnlyList<AuthBundle>>

Lists known bundles for the specified provider.

Parameters

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

Saves an authentication bundle.

Parameters

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

Extension Methods

public static Task RemoveAsync(IAuthBundleStore store, String provider, String accountId, CancellationToken cancellationToken = null) #
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 = null optionalposition: 3

Exceptions