Repository navigation
Open
Description
When a user is already signed in with an account that isn't a member of an org, and that org uses password login (no SSO provider), the org login page (/auth/login/<org>/?next=…) only shows a disabled SSO button. There's no email/password form, no sign-out, and no switch-account option, so the user can't reach the page they asked for.
Reproduction
- Sign in to sentry.io with account A, a member of org A (SSO).
- Open an issue link (e.g. from an email notification) for org B. Account A has no access to org B, which uses email/password login only.
- You're sent to org B's login page with
?next=pointing to the issue. - The page only shows a disabled SSO button. There's nothing you can do from there.
Workaround
Sign out manually from sentry.io, then open the link again.
Root cause (high confidence, from code reading)
static/app/views/authV2/authLogin/index.tsx:focusedOrgAuthturns on when the URL has an org, the user is signed in, andmemberAuthenticatedis false. In that state the page hides the email/password form (multi-org SaaS), the social login links, and the clear/switch-org action.static/app/views/authV2/authLogin/components/organizationSsoButton.tsx: the SSO button is disabled when the org has no auth provider, and here it's the only control left.src/sentry/api/endpoints/auth_organization_config.pyreturns a warning telling the user to sign in with a different account. Auth V2 doesn't renderauthOrganization.warnings, so the user never sees it.- Entry point:
src/sentry/web/frontend/base.pysends non-members to the org login path when the org access check fails.
Related
- fix(auth): Remove account settings from organization login #123823 removed the Account Settings escape hatch from this flow and planned a follow-up.
- ref(auth): Remove legacy login, registration, and MFA handlers #126712 removed the legacy login.
- Account switching can overwrite post-login redirect and bounce users to the wrong org #112006 and Cross-workspace login redirects to wrong subdomain on first attempt when following email deep link #113954 cover the redirect going to the wrong place after a successful account switch. Here the user can't start the switch at all.
via Daniel Sheccoury.
--
Reacted by Melvin Valster and Martin Mederly
Metadata
Metadata
Assignees
Projects
- StatusShow more project fieldsWaiting for: Product Owner
Activity
linear-code commentedon Oct 12, 2026
ENG-8795
getsantry commentedon Oct 12, 2026
Routing to @getsentry/product-owners-sign-in for triage ⏲️
danielsheccoury-sentry commentedon Oct 12, 2026
reported by customer here - https://app.intercom.com/a/inbox/onh0p2wm/inbox/admin/10968572/conversation/215476315989190?skipRedirection=true
mvanhorn commentedon Oct 13, 2026
Focused organization auth hides email and password on multi-org SaaS whenever the user is signed in but is not a member, and with no auth provider the remaining SSO button is disabled. The organization config already returns a membership warning, but the login page never rendered those warnings.
Organization warnings are rendered as plain-text alerts ahead of the session warning and the login banner.
#127239
fix(authlogin): allow account switching from password organization login
akasakariko commentedon Nov 13, 2026
I'd like to work on this