mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
[codex] Address external auth review feedback
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user