mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
## What changed - Add `GatewayLoginControl` so hosts can require caller-initiated browser authorization while retaining automatic login by default. - Expose passive readiness checks, scoped status subscriptions, and cancellable browser login that reports success after credentials are persisted. - Return non-retryable request errors for `LoginRequired` and `LoginInProgress`, while preserving retries for transient authentication failures. - Keep rejected credentials unready until replaced, and prevent slow readiness reads from blocking cached requests or overwriting newer credentials. ## Testing Add coverage for login cancellation, status notifications, external credential recovery, concurrent credential I/O, legacy automatic login, and request retry behavior. GitOrigin-RevId: e236d203998ceb6eeaca9704cc05d20ad45f2931
17 lines
436 B
Python
17 lines
436 B
Python
load("//:defs.bzl", "codex_rust_crate")
|
|
|
|
codex_rust_crate(
|
|
name = "login",
|
|
compile_data = [
|
|
"src/assets/error.html",
|
|
"src/assets/success.html",
|
|
"src/assets/success_legacy.html",
|
|
],
|
|
crate_name = "codex_login",
|
|
test_shard_counts = {
|
|
# Gateway credential tests exercise real encryption and run serially on Windows.
|
|
"login-unit-tests": 4,
|
|
},
|
|
unit_test_timeout = "long",
|
|
)
|