Skip to content

Conversation

@celia-oai
Copy link
Contributor

@celia-oai celia-oai commented Oct 23, 2025

This PR introduces a new Auth Storage abstraction layer that takes care of read, write, and load of auth tokens based on the AuthCredentialsStoreMode. It is similar to how we handle MCP client oauth here. Instead of reading and writing directly from disk for auth tokens, Codex CLI workflows now should instead use this auth storage using the public helper functions.

This PR is just a refactor of the current code so the behavior stays the same. We will add support for keyring and hybrid mode in follow-up PRs.

I have read the CLA Document and I hereby sign the CLA

@github-actions
Copy link

github-actions bot commented Oct 23, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@celia-oai celia-oai changed the title changes [draft] Introduce New Auth Storage Abstraction for Codex CLI Oct 23, 2025
@celia-oai celia-oai force-pushed the dev/cc/auth-new-abstraction branch 3 times, most recently from a1e8077 to c75857a Compare October 23, 2025 20:26
@celia-oai celia-oai changed the title [draft] Introduce New Auth Storage Abstraction for Codex CLI [Auth] Introduce New Auth Storage Abstraction for Codex CLI Oct 23, 2025
@celia-oai celia-oai requested review from bolinfest, gpeal, owenlin0, pakrym-oai and pkomlev and removed request for pkomlev October 23, 2025 20:36
@celia-oai celia-oai marked this pull request as ready for review October 23, 2025 20:44
@celia-oai celia-oai requested a review from gpeal October 24, 2025 02:02
@celia-oai
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Oct 24, 2025
@celia-oai celia-oai requested a review from gpeal October 24, 2025 20:58
Copy link
Collaborator

@pakrym-oai pakrym-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice but let's move file implementation to a separate file along with it's tests.

@celia-oai celia-oai force-pushed the dev/cc/auth-new-abstraction branch 4 times, most recently from e470ea8 to 11ac69d Compare October 25, 2025 04:35
@celia-oai celia-oai force-pushed the dev/cc/auth-new-abstraction branch 4 times, most recently from 3a3c1d3 to 068a3b7 Compare October 25, 2025 05:10
@celia-oai celia-oai force-pushed the dev/cc/auth-new-abstraction branch from 07d197a to 8b9e633 Compare October 27, 2025 17:29
@celia-oai celia-oai enabled auto-merge (squash) October 27, 2025 17:37
@celia-oai celia-oai disabled auto-merge October 27, 2025 17:45
@celia-oai celia-oai merged commit eb5b1b6 into main Oct 27, 2025
34 of 36 checks passed
@celia-oai celia-oai deleted the dev/cc/auth-new-abstraction branch October 27, 2025 18:01
@github-actions github-actions bot locked and limited conversation to collaborators Oct 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants