Skip to content

Conversation

Weves
Copy link
Contributor

@Weves Weves commented May 20, 2025

Description

^

How Has This Been Tested?

Tested w/ customer

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@Weves Weves requested a review from a team as a code owner May 20, 2025 18:38
Copy link

vercel bot commented May 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 6:38pm

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR fixes external permission user sign-up in non-multi-tenant deployments by modifying user session handling in backend/onyx/auth/users.py. The changes ensure proper tenant context management by:

  • Gating session user lookup behind MULTI_TENANT check in oauth_callback method
  • Only attempting to get user from session if MULTI_TENANT is True in create method
  • Ensuring user_db overwriting only occurs in multi-tenant mode
  • Maintaining consistent user session handling based on deployment mode

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@Weves Weves added this pull request to the merge queue May 20, 2025
Merged via the queue into main with commit 0593d04 May 20, 2025
11 of 12 checks passed
@Weves Weves deleted the test-oauth-fix branch May 20, 2025 21:17
ferdinandl007 pushed a commit to ferdinandl007/onyx that referenced this pull request May 27, 2025
* OAuth w/ external user fix

* Apply to basic auth as well
aronszanto pushed a commit to aronszanto/onyx that referenced this pull request May 27, 2025
* OAuth w/ external user fix

* Apply to basic auth as well
ZhipengHe pushed a commit to ZhipengHe/onyx that referenced this pull request Jun 6, 2025
* OAuth w/ external user fix

* Apply to basic auth as well
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* OAuth w/ external user fix

* Apply to basic auth as well
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.

2 participants