dokploy/packages/server
Mauricio Siu a1a672b672 fix(auth): link SCIM-provisioned users through SSO and surface sign-in errors
SCIM provisioning created users with emailVerified: false, so better-auth
refused to link the matching SSO account (account_not_linked), and the
resulting redirect landed on better-auth's bare /error page with no
actionable feedback.

- Mark SCIM-provisioned users as email-verified at creation time, same
  trust rationale already applied to admin-invited credential users.
- Sync a SCIM user's membership role to the organization's configured
  default role instead of the hardcoded "member" the SCIM plugin creates.
- Set errorCallbackURL/onAPIError.errorURL to the sign-in page so failed
  SSO/OAuth callbacks land back on Dokploy's UI instead of better-auth's
  generic error page.
- Read the error query param on the sign-in page and show it through the
  existing AlertBlock instead of failing silently.

Fixes #4973
2026-08-13 02:11:15 -06:00
..
scripts fix(server): update build paths 2024-10-26 15:48:30 -06:00
src fix(auth): link SCIM-provisioned users through SSO and surface sign-in errors 2026-08-13 02:11:15 -06:00
auth-schema2.ts feat(scim): implement SCIM 2.0 user provisioning support 2026-07-08 14:06:22 -06:00
auth-schema.ts Refactor user schema and update database references: rename 'users_temp' to 'user' across the codebase, update related database queries, and enhance endpoint specifications for swarm settings in various database schemas. 2025-11-08 13:54:32 -06:00
esbuild.config.ts Refactor and update various components in the Dokploy application, enhancing functionality and fixing minor issues across multiple pages and features, including dashboard, settings, and API integrations. 2025-08-16 20:18:08 -06:00
package.json fix: disable minimumReleaseAge (broke builds on unrelated AWS SDK deps) 2026-08-12 04:26:27 -06:00
tsconfig.json feat: upgrade to TypeScript 7 and Next.js 16.3 2026-08-11 01:39:09 -06:00
tsconfig.server.json feat: upgrade to TypeScript 7 and Next.js 16.3 2026-08-11 01:39:09 -06:00
tsconfig.server.no-decl.json [autofix.ci] apply automated fixes 2026-02-16 18:51:10 +00:00