mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
[codex] Rename host-provided auth
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::HostProvidedAuth;
|
||||
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 host_provided_auth_scopes_codex_apps_cache() {
|
||||
let auth = CodexAuth::HostProvided(
|
||||
HostProvidedAuth::new([], "user-123").with_account_id("account-123"),
|
||||
fn caller_provided_auth_scopes_codex_apps_cache() {
|
||||
let auth = CodexAuth::CallerProvided(
|
||||
CallerProvidedAuth::new([], "user-123").with_account_id("account-123"),
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user