Skip to content

feat: allow GitHub users to switch to OIDC - #28729

Draft
justinwolfington wants to merge 3 commits into
coder:mainfrom
justinwolfington:justinwolfington/github-to-oidc-conversion-upstream
Draft

feat: allow GitHub users to switch to OIDC#28729
justinwolfington wants to merge 3 commits into
coder:mainfrom
justinwolfington:justinwolfington/github-to-oidc-conversion-upstream

Conversation

@justinwolfington

@justinwolfington justinwolfington commented Aug 27, 2026

Copy link
Copy Markdown

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:

Security page authenticated with GitHub and a Switch to Google action

After:

Passwordless change-login-type confirmation dialog

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.

@github-actions github-actions Bot added the community Pull Requests and issues created by the community. label Aug 27, 2026
@github-actions

github-actions Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@justinwolfington

Copy link
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Pull Requests and issues created by the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant