feat(sso-chat-deployment): added sso auth option for chat deployment (#1729)

* feat(sso-chat-deployment): added sso auth option for chat deployment

* ack PR comments
This commit is contained in:
Waleed
2025-10-25 14:58:25 -07:00
committed by GitHub
parent 517f1a91b6
commit ce4893a53c
12 changed files with 334 additions and 17 deletions

View File

@@ -648,9 +648,9 @@ export const chat = pgTable(
customizations: json('customizations').default('{}'), // For UI customization options
// Authentication options
authType: text('auth_type').notNull().default('public'), // 'public', 'password', 'email'
authType: text('auth_type').notNull().default('public'), // 'public', 'password', 'email', 'sso'
password: text('password'), // Stored hashed, populated when authType is 'password'
allowedEmails: json('allowed_emails').default('[]'), // Array of allowed emails or domains when authType is 'email'
allowedEmails: json('allowed_emails').default('[]'), // Array of allowed emails or domains when authType is 'email' or 'sso'
// Output configuration
outputConfigs: json('output_configs').default('[]'), // Array of {blockId, path} objects