Replace X-User-Id header auth with Azure AD JWT token validation. Backend validates tokens via JWKS, frontend uses MSAL for login/token acquisition. Adds logout button, 401 handling, and configurable AZURE_AUTH_ENABLED toggle. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
742 B
Text
28 lines
742 B
Text
# Database
|
|
DATABASE_URL=postgresql+asyncpg://olivas:olivas@localhost:5453/olivas
|
|
|
|
# Storage
|
|
UPLOAD_DIR=./data/uploads
|
|
|
|
# ML Model
|
|
DEVICE=auto # auto | cpu | cuda
|
|
|
|
# CORS
|
|
CORS_ORIGINS=http://localhost:1577
|
|
|
|
# Server
|
|
BACKEND_HOST=0.0.0.0
|
|
BACKEND_PORT=8000
|
|
|
|
# AI Design Analysis (optional — leave empty to disable)
|
|
ANTHROPIC_API_KEY=
|
|
|
|
# Azure AD SSO (set AZURE_AUTH_ENABLED=false to disable)
|
|
AZURE_AUTH_ENABLED=true
|
|
AZURE_TENANT_ID=e519c2e6-bc6d-4fdf-8d9c-923c2f002385
|
|
AZURE_CLIENT_ID=9079054c-9620-4757-a256-23413042f1ef
|
|
|
|
# Frontend Azure AD (Vite env vars)
|
|
VITE_AZURE_TENANT_ID=e519c2e6-bc6d-4fdf-8d9c-923c2f002385
|
|
VITE_AZURE_CLIENT_ID=9079054c-9620-4757-a256-23413042f1ef
|
|
VITE_AZURE_REDIRECT_URI=https://ai-sandbox.oliver.solutions/olivas
|