Infrastructure medium complexity backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Infrastructure adapter that abstracts communication with external member portals, primarily HLF's Dynamics-based 'min side'. Handles protocol translation, authentication handshakes, retries, and rate limiting so upstream services can interact with diverse portal APIs through a uniform interface.

Feature: External Portal Integration

portal-gateway

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

  • Translate Meander domain calls into portal-specific API requests
  • Manage authentication tokens and refresh cycles with external portals
  • Apply retry, backoff, and circuit-breaker policies on outbound calls
  • Normalize external portal responses into Meander domain shapes
  • Log and surface transport-level errors for diagnostics

Interfaces

authenticate(config): PortalSession
fetchMembers(session, since): MemberRecord[]
pushMemberUpdate(session, member): PushResult
healthCheck(config): GatewayHealth