Skip to content

Org login dead-ends for signed-in non-members without SSO #127164

Description

@sentry-junior

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

  1. Sign in to sentry.io with account A, a member of org A (SSO).
  2. 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.
  3. You're sent to org B's login page with ?next= pointing to the issue.
  4. 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: focusedOrgAuth turns on when the URL has an org, the user is signed in, and memberAuthenticated is 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.py returns a warning telling the user to sign in with a different account. Auth V2 doesn't render authOrganization.warnings, so the user never sees it.
  • Entry point: src/sentry/web/frontend/base.py sends non-members to the org login path when the org access check fails.

Related

via Daniel Sheccoury.

--

View Junior Session in Sentry

Activity

  1. linear-code commented on Oct 12, 2026

    @linear-code
  2. getsantry commented on Oct 12, 2026

    @getsantry
    Contributor

    Routing to @getsentry/product-owners-sign-in for triage ⏲️

  3. mvanhorn commented on Oct 13, 2026

    @mvanhorn

    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

  4. added a commit that references this issue on Oct 14, 2026
    2de9e9f
  5. akasakariko commented on Nov 13, 2026

    @akasakariko

    I'd like to work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions