1. If Codex detects that a `codex mcp add -url …` server supports oauth, it will auto-initiate the login flow. 2. If the TUI starts and a MCP server supports oauth but isn't logged in, it will give the user an explicit warning telling them to log in.
20 lines
595 B
Rust
20 lines
595 B
Rust
mod auth_status;
|
|
mod find_codex_home;
|
|
mod logging_client_handler;
|
|
mod oauth;
|
|
mod perform_oauth_login;
|
|
mod rmcp_client;
|
|
mod utils;
|
|
|
|
pub use auth_status::determine_streamable_http_auth_status;
|
|
pub use auth_status::supports_oauth_login;
|
|
pub use codex_protocol::protocol::McpAuthStatus;
|
|
pub use oauth::OAuthCredentialsStoreMode;
|
|
pub use oauth::StoredOAuthTokens;
|
|
pub use oauth::WrappedOAuthTokenResponse;
|
|
pub use oauth::delete_oauth_tokens;
|
|
pub(crate) use oauth::load_oauth_tokens;
|
|
pub use oauth::save_oauth_tokens;
|
|
pub use perform_oauth_login::perform_oauth_login;
|
|
pub use rmcp_client::RmcpClient;
|