feat: allow GitHub users to switch to OIDC - #28729
Draft
justinwolfington wants to merge 3 commits into
Draft
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
cdrci2
added a commit
to coder/cla
that referenced
this pull request
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Allow a user authenticated through GitHub to switch the existing Coder user to OIDC. The GitHub-to-OIDC path may use a different email after ownership of the GitHub account is proven; password flows keep their existing email-match requirement.
The conversion requires the active GitHub session to belong to the target user, rejects OIDC identities already bound to another Coder user, and revokes only the session used to perform the conversion.
Verification
Manual verification on a non-production Coder deployment confirmed that a converted user retained the same Coder user and workspace ownership, could sign in through OIDC, and could no longer sign in through GitHub. I also ran generation, formatting, the full pre-commit suite, targeted OIDC backend tests, a fake-IdP JWK verification test, the affected Storybook file, TypeScript checks, frontend lint, and a production frontend build.
Before:
After:
AI assistance was used extensively for this contribution. Primary used
gpt-5.6-terra. I reviewed the implementation and verification results and remain accountable for the change. Note this was tested on our live coder instance when migrating users from GitHub to Okta for auth.