-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Labels
authIssues related to authentication and accountsIssues related to authentication and accountsbugSomething isn't workingSomething isn't working
Description
What version of Codex is running?
codex-cli 0.47.0
What subscription do you have?
Business Plan
Which model were you using?
not related
What platform is your computer?
Darwin 25.0.0 arm64 arm
What issue are you seeing?
codex login didn't works as expected when "Enforce SSO log in" on ChatGPT account.
What steps can reproduce the bug?
- Login to ChatGPT account where SSO is enabled and enforce
- Try run
codex exec "hello" - Got
exceeded retry limit, last status: 401 Unauthorized, request id: 99305b0bedfb45b1-BKK
What is the expected behavior?
Able to login successfully and chat with codex.
Additional information
The workaround I found is...
- run
codexthen run/logout - run
codexagain and login when it prompt - this will works until exit codex tui
I did some investigating on token and found that the jwt token created on first login, contains sso_connection_id field as well as sub fields having saml format. HOWEVER, on subsequence token missing sso_connection_id and sub fields having auth0 instead.
On first login
On subsequence execute
I also check network, and saw that openai return below error, when token missing sso_connection_id.
{
"detail": {
"code": "require_sso_login",
"account_name": "<account-name>"
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
authIssues related to authentication and accountsIssues related to authentication and accountsbugSomething isn't workingSomething isn't working