Skip to content

fix(auth): set sso flags on invite accept - #123088

Open
nora-shap wants to merge 2 commits into
masterfrom
fix/sso-linked-on-invite-accept
Open

fix(auth): set sso flags on invite accept#123088
nora-shap wants to merge 2 commits into
masterfrom
fix/sso-linked-on-invite-accept

Conversation

@nora-shap

Copy link
Copy Markdown
Member

When a new user accepted an invite to an SSO Org, we take them through the initial login and confirmation screen where we create a new user. Instead of bringing them into the app, we brought them back to the login page where they needed to click login with SSO again because we weren't setting sso__linked = True on invite acceptance.

sentry-junior Bot and others added 2 commits August 27, 2026 23:42
Invite acceptance only attached the user and left sso:linked unset, so the
first post-login org hit failed sso_is_valid and bounced back through
needs_sso for a second IdP round-trip.

Co-Authored-By: Nora Shapiro <nora.shapiro@sentry.io>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 28, 2026
@nora-shap
nora-shap marked this pull request as ready for review August 28, 2026 23:36
@nora-shap
nora-shap requested review from a team as code owners August 28, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant