-
Notifications
You must be signed in to change notification settings - Fork 456
[feat] Add multi-organizations, verified domains, and sso providers #3372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jp-agenta
merged 175 commits into
release/v0.78.0
from
feat/add-multi-orgs-domains-and-sso
Jan 16, 2026
Merged
[feat] Add multi-organizations, verified domains, and sso providers #3372
jp-agenta
merged 175 commits into
release/v0.78.0
from
feat/add-multi-orgs-domains-and-sso
Jan 16, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Fix regression where auth methods were hidden during auth upgrade - Show social auth buttons when auth upgrade is required - Hide email-based flows during auth upgrade (user needs social/SSO) - Move org switch and sign out options to bottom with cleaner layout - Change 'workspace' to 'organization' in copy - Fix unused variable lint error in SendOTP component
03d1686 to
bb37034
Compare
When a subscription plan is changed, the entitlements cache was not being invalidated, causing the old plan's entitlements to remain in effect until the cache expired or was manually cleared. This fix adds cache invalidation for the 'entitlements:subscription' namespace after any subscription event is processed, ensuring that plan changes take effect immediately.
fix(frontend): fix auth upgrade flow regression and improve UI
…ache-on-plan-switch fix(api): invalidate entitlements cache on plan switch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a comprehensive authentication and authorization system centered on multi-organization support, domain verification, and enterprise SSO (OIDC). It adds new database schema and migrations, new OSS/EE services and API routes, updated SuperTokens integration, and a significant frontend rework for auth flows and organization settings.
The PR also ships extensive design documentation and manual test plans.
Change inventory (organized by area)
Data model and migrations
Key files:
api/ee/databases/postgres/migrations/core/versions/12d23a8f7dde_add_slug_to_organizations.pyapi/ee/databases/postgres/migrations/core/versions/59b85eb7516c_add_sso_oidc_tables.pyapi/ee/databases/postgres/migrations/core/versions/a9f3e8b7c5d1_clean_up_organizations.pyapi/ee/databases/postgres/migrations/core/versions/c3b2a1d4e5f6_add_secret_org_scope.pyapi/oss/databases/postgres/migrations/core/versions/12d23a8f7dde_add_slug_to_organizations.pyapi/oss/databases/postgres/migrations/core/versions/59b85eb7516c_add_sso_oidc_tables.pyapi/oss/databases/postgres/migrations/core/versions/a9f3e8b7c5d1_clean_up_organizations.pyapi/oss/databases/postgres/migrations/core/versions/c3b2a1d4e5f6_add_secret_org_scope.pyOSS backend
AuthServicefor discovery, policy enforcement, and session identity tracking.Key files:
api/oss/src/core/auth/service.pyapi/oss/src/apis/fastapi/auth/router.pyapi/oss/src/core/auth/supertokens/config.pyapi/oss/src/core/auth/supertokens/overrides.pyapi/oss/src/dbs/postgres/users/dao.pyapi/oss/src/services/auth_service.pyapi/oss/src/services/user_service.pyapi/oss/src/utils/env.pyEE backend
Key files:
api/ee/src/apis/fastapi/organizations/router.pyapi/ee/src/dbs/postgres/organizations/dao.pyapi/ee/src/services/organization_service.pyapi/ee/src/routers/organization_router.pyapi/ee/src/services/commoners.pyFrontend (OSS)
Key files:
web/oss/src/pages/auth/[[...path]].tsxweb/oss/src/pages/auth/callback/[[...callback]].tsxweb/oss/src/components/pages/settings/Organization/index.tsxweb/oss/src/components/Sidebar/components/ListOfOrgs.tsxweb/oss/src/components/Sidebar/components/AuthUpgradeModal.tsxweb/oss/src/services/organization/api/index.tsDocs and test assets
docs/designs/advanced-auth.Key files:
docs/designs/advanced-auth/*api/ee/tests/manual/auth/*docs/docs/self-host/01-quick-start.mdxdocs/docs/self-host/02-configuration.mdxhosting/docker-compose/*/env.*.exampleBehavior and policy changes
Risks and migration considerations
Suggested validation
api/ee/tests/manual/auth/README.md.