Infrastructure high complexity mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Low-level HTTP client for communication with the Vipps Login OIDC provider. Handles authorization URL construction with Vipps-specific scopes (including phone number and national ID), token exchange, and normalization of Vipps error responses including provider unavailability.

Feature: BankID & Vipps Authentication

vipps-api-gateway

Responsibilities

  • Construct Vipps authorization URL with correct scopes
  • Execute Vipps token endpoint requests
  • Parse Vipps ID token for personnummer and phone number claims
  • Normalize Vipps-specific error codes to app-level error types

Interfaces

getAuthorizationEndpoint(scopes)
getTokenEndpoint()
exchangeCode(code, codeVerifier, redirectUri)
parseIdTokenClaims(idToken)
normalizeError(providerError)
getAvailableScopes()