INSIGHT-MVP/packages/core-service
Thomas Reitz 45cf644f81 feat: add Microsoft Entra ID (Azure AD) SSO integration
Backend-driven Authorization Code Flow with @azure/msal-node:
- EntraIdService: MSAL ConfidentialClientApplication, auth URL generation, token exchange
- SsoController: /auth/sso/microsoft (initiate) + /auth/sso/microsoft/callback (callback)
- AuthService.loginViaSso(): User provisioning (find by OID, auto-link by email, or create new)
- CSRF protection via state parameter stored in Redis
- SSO status endpoint for frontend feature detection

Frontend:
- "Mit Microsoft anmelden" button on login page (shown only when SSO is configured)
- SsoCallbackPage: handles redirect from backend, sets token, loads user profile
- AuthContext.loginWithToken(): new method for SSO token handling

Configuration:
- AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_REDIRECT_URI env vars
- docker-compose.yml updated to pass Azure vars to core service

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 22:31:34 +01:00
..
assets/icons feat: use PNG contact icons in PDF export instead of vector drawing 2026-03-09 20:11:40 +01:00
prisma feat: implement expert profile with skills, experience, languages, projects, certifications and attachments 2026-03-09 10:23:47 +01:00
src feat: add Microsoft Entra ID (Azure AD) SSO integration 2026-03-09 22:31:34 +01:00
.dockerignore feat: implement Sprint 1 Alpha - full stack with Docker, NestJS, React 2026-03-08 15:33:36 +01:00
Dockerfile fix: add bcrypt native module rebuild to Dockerfile 2026-03-08 16:42:06 +01:00
nest-cli.json feat: implement Sprint 1 Alpha - full stack with Docker, NestJS, React 2026-03-08 15:33:36 +01:00
package-lock.json feat: add Microsoft Entra ID (Azure AD) SSO integration 2026-03-09 22:31:34 +01:00
package.json feat: add Microsoft Entra ID (Azure AD) SSO integration 2026-03-09 22:31:34 +01:00
tsconfig.build.json feat: implement Sprint 1 Alpha - full stack with Docker, NestJS, React 2026-03-08 15:33:36 +01:00
tsconfig.json feat: implement Sprint 1 Alpha - full stack with Docker, NestJS, React 2026-03-08 15:33:36 +01:00