Files
foxhunt/bin/fxt/src/auth/mod.rs
jgrusewski 463b2cd130 refactor(fxt): complete TLI→FXT rename + fix token storage panic
- Rename TliConfig→FxtConfig, TliError→FxtError, TliResult→FxtResult
- Migrate token storage path foxhunt-tli→foxhunt-fxt with auto-migration
- Fix FileTokenStorage::Default panic (fallback to /tmp on missing HOME)
- Update all doc comments, login prompt, config.toml.example, env vars
- Update keyring service names foxhunt-tli-access→foxhunt-fxt-access
- Add TOKEN_REFRESH_BUFFER_SECS named constant
- Add clarifying comments for JWT dummy key and IBKR default client ID

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 14:43:07 +01:00

20 lines
631 B
Rust

//! FXT authentication module
//!
//! Provides JWT-based authentication for FXT connections to the API Gateway,
//! including secure token storage, automatic refresh, and gRPC interceptors.
pub mod encryption;
pub mod interceptor;
pub mod jwt_generator;
pub mod key_manager;
pub mod login;
pub mod token_manager;
pub use encryption::{
decrypt_token, encrypt_token, read_token_auto, write_token_encrypted, EncryptionFormat,
};
pub use interceptor::AuthInterceptor;
pub use key_manager::KeyManager;
pub use login::{LoginClient, LoginRequest, LoginResponse, MfaRequest};
pub use token_manager::{AuthTokenManager, TokenStorage};