Skip to content

Commit 715c6ec

Browse files
committed
docs(sso): tighten the personal-provider note to the self-host path it describes
1 parent 15cc971 commit 715c6ec

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

  • apps/sim/app/api/auth/sso/register

apps/sim/app/api/auth/sso/register/route.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -661,13 +661,10 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
661661
* same transaction that removes the proof, the provider cannot end up trusted
662662
* without current ownership in either commit order.
663663
*
664-
* Org-less (personal) SSO has no verified domain behind it, so on the hosted
665-
* multi-tenant deployment it is granted no linking authority — otherwise anyone
666-
* able to register one could claim a domain they do not own and have their own
667-
* IdP auto-link to existing accounts on it. Sim's UI always registers
668-
* org-scoped, so this only affects direct API callers. Self-hosted deployments
669-
* are single-tenant, where the operator is the only tenant and the org-less
670-
* path keeps working as before.
664+
* Org-less (personal) SSO is a self-host-only path — Sim's UI always registers
665+
* org-scoped. It has no verified domain behind it, so it is trusted only when
666+
* self-hosted, where the operator is the sole tenant. On the hosted deployment
667+
* that trust would let anyone claim a domain they do not own.
671668
*/
672669
const grantProviderDomainTrust = async (): Promise<boolean> => {
673670
if (!orgId) {

0 commit comments

Comments
 (0)