[codex] Address external auth review feedback

This commit is contained in:
Liang-Ting Jiang
2026-06-27 04:13:25 +00:00
parent 0bf810d417
commit 0b72ec4c10
33 changed files with 346 additions and 241 deletions
@@ -26,8 +26,8 @@ use codex_config::McpServerToolConfig;
use codex_config::types::AuthKeyringBackendKind;
use codex_config::types::OAuthCredentialsStoreMode;
use codex_exec_server::EnvironmentManager;
use codex_login::CallerProvidedAuth;
use codex_login::CodexAuth;
use codex_login::ExternalProvidedAuth;
use codex_protocol::ToolName;
use codex_protocol::mcp::McpServerInfo;
use codex_protocol::models::PermissionProfile;
@@ -71,9 +71,9 @@ fn create_test_tool(server_name: &str, tool_name: &str) -> ToolInfo {
}
#[test]
fn caller_provided_auth_scopes_codex_apps_cache() {
let auth = CodexAuth::CallerProvided(
CallerProvidedAuth::new([], "user-123").with_account_id("account-123"),
fn external_provided_auth_scopes_codex_apps_cache() {
let auth = CodexAuth::ExternalProvided(
ExternalProvidedAuth::new([], "user-123").with_account_id("account-123"),
);
assert_eq!(