Expand description
Authentication module for VT Code.
This module provides:
- OAuth flows for OpenRouter and other providers
- ACP authentication method handling
- Authentication configuration management
Re-exports§
pub use auth_handler::AuthHandler;pub use auth_handler::AuthMethod;
Modules§
- auth_
handler - Authentication handler for different ACP auth methods.
Structs§
- OAuth
Callback Page - Open
RouterO Auth Config - Configuration for OpenRouter OAuth authentication.
- Open
Router Token - Stored OAuth token with metadata.
- Pkce
Challenge - PKCE challenge pair containing verifier and challenge strings.
Enums§
- Auth
Status - OAuth authentication status.
- OAuth
Provider - OAuth
Result
Functions§
- clear_
oauth_ token - exchange_
code_ for_ token - Exchange an authorization code for an API key.
- generate_
pkce_ challenge - Generate a cryptographically secure PKCE challenge pair.
- get_
auth_ status - get_
auth_ url - Generate the OAuth authorization URL.
- load_
oauth_ token - Load an OAuth token from storage using the default mode.
- run_
oauth_ callback_ server - save_
oauth_ token - Save an OAuth token to encrypted storage using the default mode.