Add Azure AD MSAL variables to deploy script

- Include VITE_AZURE_CLIENT_ID, VITE_AZURE_TENANT_ID, and
  VITE_AZURE_REDIRECT_URI in frontend .env.local generation
- Document these variables in .env.deploy.example

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
michael 2025-12-18 10:39:15 -06:00
parent 3f1e1b5227
commit fed9bb26bf
2 changed files with 13 additions and 1 deletions

View file

@ -35,3 +35,9 @@ VITE_BACKEND_URL=https://your-domain.com
# CORS origins (should match your frontend domain)
# Multiple origins can be comma-separated
CORS_ORIGINS=https://your-domain.com
# Azure AD MSAL Configuration (for Microsoft SSO)
# Get these from your Azure AD app registration
VITE_AZURE_CLIENT_ID=your_azure_client_id
VITE_AZURE_TENANT_ID=your_azure_tenant_id
VITE_AZURE_REDIRECT_URI=https://your-domain.com

View file

@ -102,10 +102,16 @@ cd frontend
# Install dependencies (npm install is idempotent)
npm install
# Create/update .env.local with production URLs
# Create/update .env.local with production URLs and Azure AD config
cat > .env.local << EOF
# Backend URLs
VITE_BACKEND_WS_URL=${VITE_BACKEND_WS_URL:-ws://localhost:8000/ws/analyze}
VITE_BACKEND_URL=${VITE_BACKEND_URL:-http://localhost:8000}
# Azure AD MSAL Configuration
VITE_AZURE_CLIENT_ID=${VITE_AZURE_CLIENT_ID:-}
VITE_AZURE_TENANT_ID=${VITE_AZURE_TENANT_ID:-}
VITE_AZURE_REDIRECT_URI=${VITE_AZURE_REDIRECT_URI:-}
EOF
echo " Frontend environment configured"