modcomms/frontend/components
michael 321a9ca820 Implement Microsoft MSAL SSO with PKCE flow
Frontend:
- Add @azure/msal-browser and @azure/msal-react packages
- Create authConfig.ts with MSAL configuration for PKCE flow
- Create authService.ts for token acquisition and user info
- Wrap App with MsalProvider in index.tsx
- Replace dummy login with real MSAL loginPopup() in Login.tsx
- Update App.tsx to use useIsAuthenticated/useMsal hooks
- Update Profile.tsx to display real user data from claims
- Update geminiService.ts to include access_token in WebSocket messages
- Update WIPReviewer.tsx to pass msalInstance for auth

Backend:
- Add python-jose and httpx dependencies for JWT verification
- Create auth_service.py with Azure AD JWKS fetching and token verification
- Create auth.py FastAPI dependency for protected REST endpoints
- Update main.py to verify tokens on WebSocket and protect /info endpoint
- Add AZURE_TENANT_ID, AZURE_CLIENT_ID, DISABLE_AUTH to config

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 08:43:30 -06:00
..
icons initial commit 2025-12-12 09:03:17 -06:00
Analytics.tsx initial commit 2025-12-12 09:03:17 -06:00
AssetPreview.tsx initial commit 2025-12-12 09:03:17 -06:00
AssetUpload.tsx initial commit 2025-12-12 09:03:17 -06:00
Auditing.tsx initial commit 2025-12-12 09:03:17 -06:00
Campaigns.tsx initial commit 2025-12-12 09:03:17 -06:00
ChecksOverview.tsx initial commit 2025-12-12 09:03:17 -06:00
CopyGenAI.tsx initial commit 2025-12-12 09:03:17 -06:00
CreateCampaignModal.tsx initial commit 2025-12-12 09:03:17 -06:00
CreateProjectModal.tsx initial commit 2025-12-12 09:03:17 -06:00
FeedbackReport.tsx initial commit 2025-12-12 09:03:17 -06:00
Header.tsx initial commit 2025-12-12 09:03:17 -06:00
Hero.tsx initial commit 2025-12-12 09:03:17 -06:00
LoadingVisual.tsx initial commit 2025-12-12 09:03:17 -06:00
Login.tsx Implement Microsoft MSAL SSO with PKCE flow 2025-12-16 08:43:30 -06:00
PDFReport.tsx initial commit 2025-12-12 09:03:17 -06:00
Profile.tsx Implement Microsoft MSAL SSO with PKCE flow 2025-12-16 08:43:30 -06:00
Projects.tsx initial commit 2025-12-12 09:03:17 -06:00
ProofPreview.tsx initial commit 2025-12-12 09:03:17 -06:00
ProofTypeManager.tsx initial commit 2025-12-12 09:03:17 -06:00
Settings.tsx initial commit 2025-12-12 09:03:17 -06:00
Sidebar.tsx initial commit 2025-12-12 09:03:17 -06:00
StatusDashboard.tsx initial commit 2025-12-12 09:03:17 -06:00
ToggleSwitch.tsx initial commit 2025-12-12 09:03:17 -06:00
WIPReviewer.tsx Implement Microsoft MSAL SSO with PKCE flow 2025-12-16 08:43:30 -06:00