Skip to content

fix(auth logout): clear credentials from git credential helper on logout - #13450

Closed
babakks wants to merge 1 commit into
trunkfrom
babakks/cleanup-git-creds-on-logout
Closed

babakks wants to merge 1 commit into
trunkfrom
babakks/cleanup-git-creds-on-logout

Conversation

@babakks

@babakks babakks commented May 18, 2026

Copy link
Copy Markdown
Member

During login, if the user opts to authenticate git, the token is stored in the configured git credential helper via git credential approve. On logout, only gh's internal keyring was cleared, leaving the token in external helpers (e.g., osxkeychain, wincred). Now we also call git credential reject to remove it.

Fixes #13111

During login, if the user opts to authenticate git, the token is stored
in the configured git credential helper via `git credential approve`. On
logout, only gh's internal keyring was cleared, leaving the token in
external helpers (e.g., osxkeychain, wincred). Now we also call
`git credential reject` to remove it.

Fixes #13111

Co-authored-by: Copilot <[email protected]>
@fproulx-boostsecurity

Copy link
Copy Markdown

This does not revoke it though. OAuth refresh token is long live (1 year-ish)

@sds sds mentioned this pull request Sep 5, 2026
2 of 6 tasks
@BagToad BagToad mentioned this pull request Nov 24, 2026
2 of 6 tasks
@BagToad

BagToad commented Nov 24, 2026

Copy link
Copy Markdown
Member

Carried this forward in #15152, stacked on #15100, with @babakks credited as co-author. Closing this draft in favor of that PR.

@BagToad BagToad closed this Nov 24, 2026
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.

gh auth logout does not erase and/or revoke OAuth token in MacOS Keychain

3 participants