mirror of
https://github.com/openai/codex.git
synced 2026-10-28 18:58:46 +00:00
Wire app-server user verification RPCs to the native provider (#43568)
## Why The existing `userVerification/*` handlers always returned unavailability, leaving local clients unable to use the native verification provider. ## What changed - Dispatch status, enrollment, deletion, and challenge signing through an account-scoped provider. Enrollment creates or reuses a local key; it does not register credentials with a server. - Restrict enrollment, deletion, and signing to stdio and in-process connections, rejecting WebSocket and remote-control callers before parameter validation. - Bound native work to one operation per service with a 120-second timeout, and propagate in-process caller cancellation. Recheck connection, cancellation, and authentication state before delivering results, including after waiting for response queue capacity. - Add device-gated verification capability wiring for the experimental in-process `codex-tui` client, with automatic activation still disabled by default. ## Testing Add tests for local key reuse and deletion, decoded challenge signing, cancellation, authentication changes during verification and response queuing, concurrent worker rejection, and stdio/WebSocket RPC behavior. GitOrigin-RevId: 7eac15a5ffb049d27bf8fedcfbae19a49a3f6a3d
This commit is contained in:
@@ -129,7 +129,9 @@ impl TracingHarness {
|
||||
_codex_home: codex_home,
|
||||
processor,
|
||||
outgoing_rx,
|
||||
session: Arc::new(ConnectionSessionState::new()),
|
||||
session: Arc::new(ConnectionSessionState::new(
|
||||
crate::transport::ConnectionOrigin::Stdio,
|
||||
)),
|
||||
tracing,
|
||||
};
|
||||
|
||||
@@ -265,6 +267,9 @@ async fn build_test_processor(
|
||||
state_db: None,
|
||||
config_warnings: Vec::new(),
|
||||
session_source: SessionSource::VSCode,
|
||||
user_verification: Arc::new(crate::user_verification::Service::new(Arc::clone(
|
||||
&auth_manager,
|
||||
))),
|
||||
auth_manager,
|
||||
installation_id: "11111111-1111-4111-8111-111111111111".to_string(),
|
||||
code_mode_session_provider: None,
|
||||
|
||||
Reference in New Issue
Block a user