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 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:
TaskSaves an authentication bundle to disk.
Parameters
- bundle IntelligenceX.OpenAI.Auth.AuthBundle
- Bundle to save.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object