Skip to content

fix: whoami for fly users - #71

Merged
designcode merged 3 commits into
mainfrom
fix/whoami-for-fly-orgs
Apr 7, 2026
Merged

designcode merged 3 commits into
mainfrom
fix/whoami-for-fly-orgs

Conversation

@designcode

@designcode designcode commented Apr 7, 2026 •

Copy link
Copy Markdown
Collaborator

also move fetchOrganizationsFromUserInfo from fly to client


Note

Medium Risk
Moderate risk because it changes organization discovery/storage and how Fly SSO users are detected, which can affect login, org selection, and whoami/org listing behavior.

Overview
Fixes Fly SSO behavior by moving fetchOrganizationsFromUserInfo into TigrisAuthClient and using it (plus a new isFlyUser() check) to list/store organizations from Auth0 userinfo instead of relying on ID token claims.

Refactors auth/storage integration: client.ts now uses a claimsNamespace config value, storage orgs are typed as IAM Organization, and credential org assignment is now explicit (storeCredentialOrganization(orgId, 'saved'|'temporary')) with corresponding updates to configure/credentials login and tests. Also updates getStorageConfig to include organizationId/iamEndpoint for configured credentials and simplifies callers like whoami and presign to use storage’s getLoginMethod/stored org list.

Reviewed by Cursor Bugbot for commit 09c8c19. Bugbot is set up for automated code reviews on this repo. Configure here.

designcode and others added 2 commits April 7, 2026 16:00
also move fetchOrganizationsFromUserInfo from fly to client
Update tests to match removed getCredentials from provider (now
getStoredCredentials on storage) and storeCredentialOrganization's
new explicit target parameter.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3537068. Configure here.

Comment thread src/lib/configure/index.ts Resolved
@designcode designcode changed the title fix: fix whoami for fly users fix: whoami for fly users Apr 7, 2026
@designcode
designcode merged commit 3831387 into main Apr 7, 2026
3 checks passed
@designcode
designcode deleted the fix/whoami-for-fly-orgs branch April 7, 2026 15:00
@github-actions

github-actions Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants