Implement Single Sign-On (SSO) Feature: Add SSO settings page, integrate OIDC provider registration dialog, and update dependencies for better-auth to version 1.4.18. Enhance user interface with new SSO menu item and improve database schema for SSO providers.

This commit is contained in:
Mauricio Siu
2026-01-29 22:01:48 -06:00
parent 2e7f4dc1a2
commit 7f27601f7f
18 changed files with 9691 additions and 281 deletions
+10
View File
@@ -30,6 +30,7 @@ import {
Trash2,
User,
Users,
LogIn,
} from "lucide-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
@@ -406,6 +407,15 @@ const MENU: Menu = {
isEnabled: ({ auth, isCloud }) =>
!!((auth?.role === "owner" || auth?.role === "admin") && !isCloud),
},
{
isSingle: true,
title: "SSO",
url: "/dashboard/settings/sso",
icon: LogIn,
// Only enabled for admins in non-cloud environments (enterprise)
isEnabled: ({ auth, isCloud }) =>
!!((auth?.role === "owner" || auth?.role === "admin") && !isCloud),
},
],
help: [