Skip to content

Fix SSO dataset error on site wide org#1721

Open
vaimdevs wants to merge 3 commits into
masterfrom
fix/site-wide-org-dataset-error
Open

Fix SSO dataset error on site wide org#1721
vaimdevs wants to merge 3 commits into
masterfrom
fix/site-wide-org-dataset-error

Conversation

@vaimdevs

Copy link
Copy Markdown
Contributor
##Fix
* If get the SITE org from Graphistry, change to personal org with message
* If no org return, change to personal org

@vaimdevs vaimdevs changed the title Fix SSO dataset on site wide org Fix SSO dataset error on site wide org Jul 10, 2026
vaimdev added 2 commits July 10, 2026 21:26
…false success

switch_org() treated any status=='OK' response as a completed switch, but
the server overloads that status for two different outcomes: a real switch
(data has pk/org_name/organization_slug) and an SSO re-authentication
challenge (data['idp'] populated) for members of SSO-protected orgs who
aren't the owner/admin. The challenge case never actually updates the
server-side active org, so treating it as success silently left callers on
their previous org while locally claiming to have switched.

Now raises with the idp names and a pointer to sso_login(org_name=...) as
the alternative, instead of logging a false "Switched to organization" and
setting self.session.org_name to a value the server never accepted.
@vaimdev
vaimdev requested a review from aucahuasi July 17, 2026 15:36
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