Skip to content

chore(credential): support Windows Credential Manager to store OAuth tokens and API keys - #344

Open
Cedric / ViaDézo1er (viadezo1er) wants to merge 1 commit into
mainfrom
cedric/windows-credential-manager-support
Open

chore(credential): support Windows Credential Manager to store OAuth tokens and API keys#344
Cedric / ViaDézo1er (viadezo1er) wants to merge 1 commit into
mainfrom
cedric/windows-credential-manager-support

Conversation

@viadezo1er

@viadezo1er Cedric / ViaDézo1er (viadezo1er) commented Aug 27, 2026

Copy link
Copy Markdown
Contributor
Screenshot 2026-08-27 at 15 11 23

The bt used in the screenshot was cedric/windows-credential-manager-support rebased on top of cedric/clarify-credential-metadata-vs-secret-storage.
As shown in the screenshot, the secret storage used is not correctly reported. It's normal since in #341, Windows Credential Manager was not supported yet.
Thus, if #344 is merged before #341, it needs to add support in #341 to show that the Windows Credential Manager is used.
If merged after #341, this PR needs to do it.

@viadezo1er
Cedric / ViaDézo1er (viadezo1er) marked this pull request as ready for review August 27, 2026 21:48

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 407a7d6f0c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment thread src/auth.rs
Comment on lines +2998 to +3001
Ok(format!("{KEYCHAIN_SERVICE}/{profile_name}")
.encode_utf16()
.chain(std::iter::once(0))
.collect())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid case-folding collisions in credential targets

On Windows, Credential Manager matches generic credential target names case-insensitively, while AuthStore and profile lookup treat names as case-sensitive. Creating profiles such as work and Work therefore stores two metadata records but maps both to the same credential: the second login overwrites the first, and deleting or renaming either profile can delete the other's secret. Selecting one profile may then authenticate with the wrong account or fail, so the target must preserve case-sensitive identity or case-only duplicate profile names must be rejected.

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown
Contributor

Latest downloadable build artifacts for this PR commit 407a7d6f0c37:

Available artifact names
  • artifacts-build-global
  • artifacts-build-local-aarch64-pc-windows-msvc
  • artifacts-build-local-x86_64-pc-windows-msvc
  • artifacts-build-local-x86_64-apple-darwin
  • artifacts-build-local-x86_64-unknown-linux-musl
  • artifacts-build-local-aarch64-apple-darwin
  • artifacts-build-local-x86_64-unknown-linux-gnu
  • artifacts-build-local-aarch64-unknown-linux-gnu
  • artifacts-plan-dist-manifest
  • cargo-dist-cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant