INSIGHT-MVP/packages
Thomas Reitz 254d00c106 fix(ms365): dynamische Redirect-URI aus Request-Host + Azure-Kompatibilität
Problem: Redirect-URI wurde falsch aus SSO-URI abgeleitet, und unterstützte
nur eine feste URL statt sowohl IP als auch DNS-Name.

Lösung:
- initM365Integration: Host aus x-forwarded-host/host Header lesen,
  korrekte Redirect-URI bauen (proto://host/api/v1/auth/integrations/...)
- Redis-State speichert jetzt {userId, redirectUri} als JSON
- handleIntegrationCallback: gespeicherte redirectUri aus State verwenden
- getIntegrationAuthUrl/handleIntegrationCallback: optionaler redirectUri-Parameter
- Fallback-Derivation: base URL aus SSO-URI + fester Integrations-Pfad

Beide URIs müssen in Azure registriert sein:
- http://172.20.10.59/api/v1/auth/integrations/microsoft-365/callback
- http://insight.xinion.lan/api/v1/auth/integrations/microsoft-365/callback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-12 23:01:09 +01:00
..
core-service fix(ms365): dynamische Redirect-URI aus Request-Host + Azure-Kompatibilität 2026-03-12 23:01:09 +01:00
crm-service feat(crm): Microsoft 365 Graph-API Proxy (Phase 3.2) 2026-03-12 22:40:31 +01:00
frontend fix(ms365): OAuth-Connect via API-Call statt direktem Browser-Link 2026-03-12 22:57:20 +01:00