Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Enterprise features are a tax. We paid it once, in the open.

说明与用途

@alphabros/enterprise npm 包将 SSO、SCIM、审计日志和策略执行整合为单一可重用模块,帮助多款 B2B 产品快速部署,减少重复代码和维护成本。

问题

B2B products repeatedly rebuild SSO, SCIM, audit logs, and policy engines for each product, creating duplicated effort and maintenance overhead.

结果

Reduced duplicated effort by consolidating enterprise features into a single package, enabling rapid deployment across multiple products and simplifying maintenance.

工作流

  • 1. Install @alphabros/enterprise and better-auth.
  • 2. Import enterprisePreset into better-auth configuration, passing product name, secrets key, and resolveEntitlements function.
  • 3. Run npx ab-enterprise migrate --out drizzle to copy migration files.
  • 4. Run npx ab-enterprise verify after deployment to ensure DB schema matches migrations.
  • 5. Deploy the package; SSO wizard, SCIM endpoints, audit log, and portal become available behind existing /api/auth.
  • 6. Use <ab-security-settings> component in UI to expose portal features to IT admins.

证据

We ran two audits before the first publish, one on the repository and supply chain, one on the code, and a whole-branch review after the fixes.

来源

Five minutes to a working setup…

来源

  • 记录日期: 2026-09-21T08:00:25.940Z