IntelligenceX
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
Optional override path.
encryptionKeyBase64 System.String = null
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
Provider identifier.
accountId System.String = null
Optional account id.
cancellationToken System.Threading.CancellationToken = null
Cancellation token.
public virtual async Task SaveAsync(AuthBundle bundle, CancellationToken cancellationToken = null) #
Returns: Task

Saves an authentication bundle to disk.

Parameters

bundle IntelligenceX.OpenAI.Auth.AuthBundle
Bundle to save.
cancellationToken System.Threading.CancellationToken = null
Cancellation token.