mirror of
https://github.com/openai/codex.git
synced 2026-11-17 22:10:37 +00:00
## Why Matching API workload identity metadata alone can preserve a credential source across session-family or provider and mapping revision changes. ## What changed - Compare API workload identity tokens using OAuth source claims so ordinary token refreshes preserve the source while session or identity changes retire it. - Include `wif_runtime_authorization_version`, `wif_provider_revision`, and `wif_mapping_revision` in source comparisons. - Reject API workload identity exchange tokens without parseable source claims and nonempty `iss` and `session_id` values. Evict rejected credentials so a subsequent resolve exchanges them again. ## Testing Add regression coverage for refresh continuity, session-family and revision changes, and rejection and re-exchange of tokens with missing, empty, or whitespace-only `session_id` values. GitOrigin-RevId: 67189c27efae8a233250a320e6d4fac71d865e90