Skip to content

Release #1092 — Task-96056: cross-project social login fallback - #1094

Open
vichugofsl wants to merge 1 commit into
masterfrom
release-96056-social-login-fallback-to-master
Open

Release #1092 — Task-96056: cross-project social login fallback#1094
vichugofsl wants to merge 1 commit into
masterfrom
release-96056-social-login-fallback-to-master

Conversation

@vichugofsl

@vichugofsl vichugofsl commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Release of #1092 to master

Cherry-picks the single commit from #1092 (2f38dc41) onto master for production release. No other develop changes are included.

What it does

Task-96056 — Hosanna (project 63452) shares the dbp_users database with Bible.is (52341). When an existing Bible.is user signs into Hosanna with a social provider that sends no email (Facebook without email, or Apple ID on repeat sign-in), the project-scoped account lookup missed and there was no email to fall back on, leading to duplicate accounts or a blocked 401.

This adds a cross-project fallback on the social identity itself (provider_id + provider_user_id), parallel to the existing email fallback:

  • Oldest matching account wins; soft-deleted users are skipped.
  • A one-time linked_from_project field is returned on the login where the cross-project link happens.
  • project_id is validated up front, returning a clean 404 instead of a 500 on an unknown project.

Ref: #1092

NOTE 1

See the PR: #1092 to check the optional database change (index).

@sonarqubecloud

Copy link
Copy Markdown

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