Skip to content

OAuth tokens too long for Windows keyring #10353

@ofek

Description

@ofek

What version of Codex is running?

0.93.0

What subscription do you have?

Plus

Which model were you using?

No response

What platform is your computer?

Windows 11

What terminal emulator and version are you using (if applicable)?

Windows Terminal

What issue are you seeing?

The primary login mechanism via OAuth doesn't work on Windows when using the keyring storage option.

Unable to persist auth file: failed to write OAuth tokens to keyring: Attribute 'password encoded as UTF-16' is longer than platform limit of 2560 chars
Image

What steps can reproduce the bug?

Log in with the following configuration:

cli_auth_credentials_store = "keyring"
mcp_oauth_credentials_store = "keyring"

What is the expected behavior?

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

authIssues related to authentication and accountsbugSomething isn't workingwindows-osIssues related to Codex on Windows systems

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions