- Added HanzoIAMSSOHandler class for Hanzo IAM authentication - Integrated Hanzo IAM as an SSO provider alongside Google, Microsoft, and generic SSO - Updated login UI from 'LiteLLM' to 'Hanzo Router' branding - Changed error messages to reference Hanzo Router instead of LiteLLM - Added .env.hanzo-iam.example configuration file - Updated environment variable from LITELLM_MASTER_KEY to ROUTER_MASTER_KEY (with backward compatibility) - Added support for HANZO_IAM_CLIENT_ID, HANZO_IAM_CLIENT_SECRET, and HANZO_IAM_SERVER_URL - Maintained compatibility with existing authentication methods (built-in auth and other SSO providers)
41 lines
1.4 KiB
Bash
41 lines
1.4 KiB
Bash
# Hanzo IAM Integration Configuration
|
|
# Copy this file to .env and update with your values
|
|
|
|
# Hanzo IAM SSO Configuration
|
|
HANZO_IAM_CLIENT_ID=chat-local
|
|
HANZO_IAM_CLIENT_SECRET=your-client-secret-here
|
|
HANZO_IAM_SERVER_URL=http://localhost:9003
|
|
|
|
# For local development with Hanzo Stack
|
|
# HANZO_IAM_SERVER_URL=http://iam:3000 # Use this when running in Docker
|
|
|
|
# Hanzo Router Configuration
|
|
ROUTER_MASTER_KEY=your-master-key-here
|
|
LITELLM_MASTER_KEY=${ROUTER_MASTER_KEY} # For backward compatibility
|
|
PROXY_BASE_URL=http://localhost:3081
|
|
|
|
# Development Mode Demo Credentials (only works in development)
|
|
# These are only used when NODE_ENV=development or DEV_MODE=true
|
|
DEMO_USERNAME=demo@hanzo.ai
|
|
DEMO_PASSWORD=hanzo123
|
|
|
|
# Choose Authentication Method:
|
|
# Option 1: Built-in Auth (default)
|
|
UI_USERNAME=admin
|
|
# UI_PASSWORD=<your-password> # If not set, uses ROUTER_MASTER_KEY
|
|
|
|
# Option 2: Hanzo IAM SSO
|
|
# Comment out UI_USERNAME above and set HANZO_IAM_CLIENT_ID/SECRET
|
|
|
|
# Option 3: Other SSO Providers (requires Hanzo Router Enterprise)
|
|
# GOOGLE_CLIENT_ID=your-google-client-id
|
|
# GOOGLE_CLIENT_SECRET=your-google-client-secret
|
|
# MICROSOFT_CLIENT_ID=your-microsoft-client-id
|
|
# MICROSOFT_CLIENT_SECRET=your-microsoft-client-secret
|
|
# MICROSOFT_TENANT=your-tenant-id
|
|
|
|
# Database Configuration
|
|
DATABASE_URL=mongodb://localhost:27017/hanzo-router
|
|
|
|
# Enable Development Mode Features
|
|
DEV_MODE=false # Set to true for demo credentials |