Owlen Auth Manager
Unified authentication management for the Owlen AI agent.
Overview
This crate manages the lifecycle of authentication credentials for various LLM providers. It supports both API key-based authentication and OAuth flows with automatic token refresh.
Features
- Multi-Source Credentials: Load credentials from environment variables, secure storage, or command-line helpers.
- OAuth Integration: Built-in support for device code flows and standard OAuth 2.0.
- Token Refresh: Automatic background refreshing of expiring OAuth tokens.
- Secure Handling: Leverages the
credentialscrate for encrypted storage.
Components
AuthManager: The central coordinator for all authentication logic.LoginFlow: Manages the interactive login process for providers.Refresher: Handles periodic checks and updates for expiring credentials.