From fed9bb26bf09b271ef55a85ceb8f90be5942748e Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 18 Dec 2025 10:39:15 -0600 Subject: [PATCH] Add Azure AD MSAL variables to deploy script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .env.deploy.example | 6 ++++++ deploy.sh | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.env.deploy.example b/.env.deploy.example index 69e7c9c..4bcad55 100644 --- a/.env.deploy.example +++ b/.env.deploy.example @@ -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 diff --git a/deploy.sh b/deploy.sh index 6022646..624fab1 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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"