API Reference
Class
FileAuthBundleStore
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 async 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
- Provider identifier.
- accountId System.String? = null
- Optional account id.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
public async Task<IReadOnlyList<AuthBundle>> ListAsync(String provider, CancellationToken cancellationToken = default) #Returns:
Task<IReadOnlyList<AuthBundle>>Lists all bundles for the specified provider.
Parameters
- provider System.String
- cancellationToken System.Threading.CancellationToken = default
public async Task RemoveAsync(String provider, String? accountId, CancellationToken cancellationToken = default) #Returns:
TaskRemoves one account without deleting other stored accounts or providers.
Parameters
- provider System.String
- accountId System.String?
- cancellationToken System.Threading.CancellationToken = default
public async Task SaveAsync(AuthBundle bundle, CancellationToken cancellationToken = default) #Returns:
TaskSaves an authentication bundle to disk.
Parameters
- bundle IntelligenceX.OpenAI.Auth.AuthBundle
- Bundle to save.
- cancellationToken System.Threading.CancellationToken = default
- Cancellation token.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?