Service Layer medium complexity backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Backend service that manages per-tenant external portal configuration and orchestrates synchronization between Meander and the organization's member portal. Handles credential storage, sync scheduling, and conflict resolution to keep both systems aligned without overlap.

Feature: External Portal Integration

external-portal-service

Sources & reasoning

HLF (§73) requires explicit coordination with their Dynamics portal; §378 lists it as a feature of admin-organization marked as a config flag. Core Product per the phase-2 entry in §264 ('Koordinering med HLFs eksterne portalprosjekt').

  • Koordinering med eget portalprosjekt: HLF redesigner «min side» på Dynamics-plattformen. Appen og portalen må ikke overlappe eller motarbeide hverandre.
  • External Portal Integration (HLF config flag)

Responsibilities

  • Persist and retrieve per-tenant portal configuration
  • Encrypt and securely store portal credentials
  • Schedule and execute synchronization jobs
  • Resolve data conflicts between Meander and external portal
  • Emit audit events for config changes and sync runs

Interfaces

getPortalConfig(orgId): PortalConfig
updatePortalConfig(orgId, config): PortalConfig
triggerSync(orgId): SyncJobResult
getSyncStatus(orgId): SyncStatus