Skip to content

Continue to company SSO without another click - #228

Merged
tnkuehne merged 2 commits into
mainfrom
social-sign-in-company-sso
Nov 19, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
social-sign-in-company-sso

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Why

A member who is signed in with email, Google or Microsoft and opens an organization that requires its own SSO lands on that organization's sign-in page and has to press its single button. The identity provider then asks again which account to use, although the address is already known. This happens from the organization list, from the SSO-required redirect when a member has only that organization, and from invitations to such an organization.

What

  • When a signed-in member opens /sign-in?organization=… for an organization that requires SSO and their session does not already belong to it, the page starts that company sign-in right away.
  • The member's address is sent as login_hint, so the provider can skip its account chooser.
  • The button remains as a fallback. The page does not start again when the sign-in returns to it within a minute or with an error, so a failing provider cannot cause a redirect loop.
  • Signed-out visitors, organizations without required SSO and sessions that already belong to the organization keep today's page.

Membership scoping is unchanged: an organization that requires SSO still needs a session from its own provider.

Screenshots

The page itself is unchanged. The new state is the pending button while the sign-in starts. The fallback state renders the same markup as main does today.

Starting automatically (new) Fallback (same as main)
1280 light
1280 dark
390 light
390 dark

Not captured: the provider's own pages. Whether a provider skips its account chooser with login_hint depends on the provider and its session.

Verification

  • Browser tests: the SSO-required redirect now continues to the provider without a click and sends login_hint. A signed-in invitee is taken through company sign-in back to the invitation, while a signed-out visitor still chooses SSO on the page.
  • Full local Playwright suite: 77 passed. The four cli-login.spec.ts tests could not start because the CLI binary was not built in this checkout.
  • Lint, format and control-plane typecheck pass.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no blocking issues remain.

Summary

Signed-in members and invitees can continue to required company SSO without another click, with their email supplied as login_hint.

  • Related signed-in users continue straight into company SSO.

Both previous findings are addressed. No new actionable issues found.

Reviews (2) · Last reviewed commit: "Start company SSO only for members and i..." · Reviewed by Greptile

A signed-in member who opens an organization that requires its own SSO
reaches its sign-in page from the organization list, an SSO-required
redirect or an invitation. Start that company sign-in right away with the
member's address as the login hint. Keep the button when the sign-in
returns to the page within a minute or after an error.
Any signed-in visitor can be linked to another organization's sign-in
page. Share their address with that provider without a click only when
they are a member or hold a pending invitation. Cover the provider-error
and recent-start fallbacks and an unrelated visitor in browser tests.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 5b199be Nov 19 2026, 04:29 PM

@tnkuehne
tnkuehne merged commit c776c1c into main Nov 19, 2026
15 of 16 checks passed
@tnkuehne
tnkuehne deleted the social-sign-in-company-sso branch November 19, 2026 17:02
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