René's URL Explorer Experiment


Title: Bug: Clicking one external auth button disables all other auth buttons on workspace creation page · Issue #22420 · coder/coder · GitHub

Open Graph Title: Bug: Clicking one external auth button disables all other auth buttons on workspace creation page · Issue #22420 · coder/coder

X Title: Bug: Clicking one external auth button disables all other auth buttons on workspace creation page · Issue #22420 · coder/coder

Description: Description When a template requires multiple coder_external_auth providers (e.g., GitLab and an OIDC provider), clicking the "Login with..." button for one provider causes all other auth buttons to show a loading spinner and become disa...

Open Graph Description: Description When a template requires multiple coder_external_auth providers (e.g., GitLab and an OIDC provider), clicking the "Login with..." button for one provider causes all other auth buttons t...

X Description: Description When a template requires multiple coder_external_auth providers (e.g., GitLab and an OIDC provider), clicking the "Login with..." button for one provider causes all other auth...

Opengraph URL: https://github.com/coder/coder/issues/22420

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: Clicking one external auth button disables all other auth buttons on workspace creation page","articleBody":"## Description\n\nWhen a template requires multiple `coder_external_auth` providers (e.g., GitLab and an OIDC provider), clicking the \"Login with...\" button for one provider causes **all other auth buttons** to show a loading spinner and become disabled. The user cannot interact with the second auth button until they refresh the page after completing the first authentication.\n\n## Environment\n\n- Coder version: 2.29.6\n- Browser: Chrome (likely affects all browsers)\n\n## Steps to Reproduce\n\n1. Configure two or more external auth providers in Coder (e.g., GitLab and an OIDC/PING provider)\n2. Create a template that requires both providers using `coder_external_auth` data sources:\n   ```hcl\n   data \"coder_external_auth\" \"provider_a\" {\n     id = \"provider-a\"\n   }\n\n   data \"coder_external_auth\" \"provider_b\" {\n     id = \"provider-b\"\n   }\n   ```\n3. Navigate to the \"Create Workspace\" page for that template\n4. Observe two auth buttons under \"External Authentication\"\n5. Click the \"Login with...\" button for the first provider\n\n## Expected Behavior\n\nOnly the clicked provider's button should show a loading spinner. The second provider's button should remain clickable so the user can authenticate with both providers without a page refresh.\n\n## Actual Behavior\n\nBoth buttons immediately show a loading spinner and become disabled. The second button cannot be clicked until the page is refreshed after the first auth completes.\n\n## Current Workaround\n\nUsers must:\n1. Click the first auth button and complete authentication\n2. Refresh the page\n3. Click the second auth button\n\nThis works because after refresh, the first provider is already authenticated, leaving only one unauthenticated button.\n\n## Root Cause Analysis\n\nThe `externalAuthPollingState` is a **single shared state** for all external auth providers. When any button is clicked, `startPollingExternalAuth()` sets the global state to `\"polling\"`, and every `ExternalAuthButton` receives the same `isLoading` prop:\n\n**`CreateWorkspacePageView.tsx` (~line 536):**\n```tsx\n{externalAuth.map((auth) => (\n  \u003cExternalAuthButton\n    key={auth.id}\n    auth={auth}\n    isLoading={externalAuthPollingState === \"polling\"}\n    onStartPolling={startPollingExternalAuth}\n    displayRetry={externalAuthPollingState === \"abandoned\"}\n  />\n))}\n```\n\n**`CreateWorkspacePage.tsx` (~line 365):**\n```tsx\nconst useExternalAuth = (versionId: string | undefined) => {\n  const [externalAuthPollingState, setExternalAuthPollingState] =\n    useState\u003cExternalAuthPollingState>(\"idle\");\n  // ... single state shared across ALL providers\n};\n```\n\nAdditionally, polling stops only when `allSignedIn` is true (every provider is authenticated), so even after the first auth succeeds, the polling state won't revert to `\"idle\"` until the second provider also authenticates — which the user can't trigger because its button is disabled.\n\n## Suggested Fix\n\nMake the polling state per-provider instead of global, e.g., using a `Map\u003cstring, ExternalAuthPollingState>` keyed by auth provider ID, so each button independently tracks its own polling/loading/abandoned state.\n\n---\n\n*Created on behalf of a user.*","author":{"url":"https://github.com/apps/blinkagent","@type":"Person","name":"blinkagent"},"datePublished":"2026-02-27T22:11:56Z","url":"https://github.com/coder/coder/issues/22420"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4238bbd5-1086-0147-7196-176ba90d78a0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB05C:29AEE8:1C13976:255AFFA:6B0160CB
html-safe-nonce9d9cf488ae0be9848a2f758f01b8603c92e680d92f986121d771e7f169c73013
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDVDOjI5QUVFODoxQzEzOTc2OjI1NUFGRkE6NkIwMTYwQ0IiLCJ2aXNpdG9yX2lkIjoiNzIwNjczOTQ0ODQwNTUxNjQ5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7b514529f9722623ffee63187c995bde9fc13013c37f2ea2ae5a3cb7b8893124
hovercard-subject-tagissue:4003091392
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/22420/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c64e812a3e2b717773ccc1adf2b9d40fd3af78492723eced645a0c806dc04555/coder/coder/issues/22420
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c64e812a3e2b717773ccc1adf2b9d40fd3af78492723eced645a0c806dc04555/coder/coder/issues/22420
og:image:altDescription When a template requires multiple coder_external_auth providers (e.g., GitLab and an OIDC provider), clicking the "Login with..." button for one provider causes all other auth buttons t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameblinkagent[bot]
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/22420#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F22420
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F22420
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/22420
Reloadhttps://github.com/coder/coder/issues/22420
Reloadhttps://github.com/coder/coder/issues/22420
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/22420
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/22420
#26313https://github.com/coder/coder/pull/26313
Bug: Clicking one external auth button disables all other auth buttons on workspace creation pagehttps://github.com/coder/coder/issues/22420#top
#26313https://github.com/coder/coder/pull/26313
https://github.com/aqandrew
bughttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/apps/blinkagent
blinkagenthttps://github.com/apps/blinkagent
on Feb 27, 2026https://github.com/coder/coder/issues/22420#issue-4003091392
blinkagenthttps://github.com/apps/blinkagent
bughttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%22
on Feb 27, 2026https://github.com/coder/coder/issues/22420#event-23148418892
aqandrewhttps://github.com/aqandrew
on Jun 10, 2026https://github.com/coder/coder/issues/22420#event-26597517616
fix(site): make external auth polling state per-providerhttps://github.com/coder/coder/commit/65aafd0771578cf28780c0ef47cd9d05b9de8d74
https://docs.github.com/articles/closing-issues-via-commit-messages
65aafd0https://github.com/coder/coder/commit/65aafd0771578cf28780c0ef47cd9d05b9de8d74
aqandrewhttps://github.com/aqandrew
completedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#26313https://github.com/coder/coder/pull/26313
on Jun 18, 2026https://github.com/coder/coder/issues/22420#event-26926903337
aqandrewhttps://github.com/aqandrew
on Jun 18, 2026https://github.com/coder/coder/issues/22420#event-26926903369
fix(site): set external auth provider polling status individually (#2…https://github.com/coder/coder/commit/61fa2ab878313b796f634bf181504a45b643d92d
#2…https://github.com/coder/coder/pull/26313
https://docs.github.com/articles/closing-issues-via-commit-messages
61fa2abhttps://github.com/coder/coder/commit/61fa2ab878313b796f634bf181504a45b643d92d
matifalihttps://github.com/matifali
aqandrewhttps://github.com/aqandrew
on Jun 22, 2026https://github.com/coder/coder/issues/22420#event-27035045533
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/22420
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/22420
aqandrewhttps://github.com/aqandrew
bughttps://github.com/coder/coder/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.