Implement SSO Sign-In Options: Add components for signing in with GitHub, Google, and SSO, enhancing user authentication methods. Update SSO settings to conditionally render based on enterprise features and improve the overall login experience on the homepage.

This commit is contained in:
Mauricio Siu
2026-01-30 22:28:17 -06:00
parent 66b4bf2c4e
commit f3d9960b7f
9 changed files with 326 additions and 213 deletions
+3 -3
View File
@@ -412,9 +412,9 @@ const MENU: Menu = {
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),
// Enabled for admins in both cloud and self-hosted (enterprise)
isEnabled: ({ auth }) =>
!!(auth?.role === "owner" || auth?.role === "admin"),
},
],