---
name: "Social Reporting Tool"
client: "TBD"
status: active
tech: []
local_path: /Users/ai_leed/Documents/Projects/Oliver/social-reporting-tool
deploy:
url:
tags:
  - project
created: 2026-04-15
---

## Overview
> New project — fill in during first session.

## Tech Stack
- **Frontend:**
- **Backend:**
- **Infrastructure:**

## Deployment
- **Local path:** `/Users/ai_leed/Documents/Projects/Oliver/social-reporting-tool`

## Sessions
### 2026-04-15 – Fix frontend deployment to /var/www/html and
**Asked:** Fix frontend deployment to /var/www/html and ensure Apache reloads after copy.
**Done:** Updated deploy.sh and setup.sh to use recursive copy, added Apache reload, and made file copying self-documenting.

### 2026-04-15 – Fix frontend deployment not copying files
**Asked:** Fix frontend deployment not copying files to /var/www/html folder.
**Done:** Updated deploy.sh to recursively copy frontend files and added Apache reload command.

### 2026-04-15 – Set up SSO (SPA) with token
**Asked:** Set up SSO (SPA) with token exchange in browser using Azure AD / MSAL configuration.
**Done:** Implemented Azure AD MSAL configuration with self-hosted MSAL.js library and SSO setup across frontend files.

### 2026-04-15 – Set up SSO (SPA) with Azure
**Asked:** Set up SSO (SPA) with Azure AD / MSAL token exchange in the browser
**Done:** Verified Azure AD configuration and server.ts implementation for SSO token exchange


## Change Log
| Date | Requested | Changed | Files |
|------|-----------|---------|-------|
| 2026-04-15 | Frontend deployment | cp -r recursive copy, Apache systemctl reload, mkdir -p safety check | deploy.sh, setup.sh |
| 2026-04-15 | Frontend deployment | Fixed cp glob pattern to use recursive copy, added Apache reload | deploy.sh, setup.sh |
| 2026-04-15 | SSO setup | Added MSAL.js library and Azure AD configuration, enabled SSO token exchange | frontend/msal-browser.min.js, frontend/config.js, frontend/login.html |
| 2026-04-15 | SSO setup with Azure AD | Azure tenant ID, client ID, redirect URI configured; server.ts verified | server.ts |

## Related
