IntelligenceX

API Reference

Class

FileAuthBundleStore

Namespace IntelligenceX.OpenAI.Auth
Assembly IntelligenceX
Implements
Modifiers sealed

File-based authentication bundle store with optional encryption.

Inheritance

  • Object
  • FileAuthBundleStore

Constructors

public FileAuthBundleStore(String path = null, String encryptionKeyBase64 = null) #

Initializes a file-based auth bundle store.

Parameters

path System.String = null optionalposition: 0
Optional override path.
encryptionKeyBase64 System.String = null optionalposition: 1
Optional base64 encryption key.

Methods

public Void Delete() #
Returns: Void

Deletes the auth store file if it exists.

public virtual async 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 virtual async Task<IReadOnlyList<AuthBundle>> ListAsync(String provider, CancellationToken cancellationToken = null) #
Returns: Task<IReadOnlyList<AuthBundle>>

Lists all bundles for the specified provider.

Parameters

provider System.String requiredposition: 0
cancellationToken System.Threading.CancellationToken = null optionalposition: 1
public virtual async Task SaveAsync(AuthBundle bundle, CancellationToken cancellationToken = null) #
Returns: Task

Saves an authentication bundle to disk.

Parameters

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