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

Description

Infrastructure adapter encapsulating all HTTP communication with the Vipps Login API. Implements the same authentication provider interface as the BankID Provider Adapter, enabling the authentication system to treat both Norwegian identity providers uniformly. Handles Vipps-specific configuration including merchant credentials, API versioning, and the Vipps MT test environment for integration testing.

Feature: Vipps Authentication

vipps-provider-adapter

Responsibilities

  • Implement shared authentication provider interface consistent with BankID adapter
  • Manage Vipps merchant credentials and API configuration securely
  • Handle HTTP requests to Vipps Login API endpoints (authorize, token, userinfo)
  • Support both production and Vipps MT test environments
  • Handle Vipps-specific error codes and retry logic

Interfaces

getAuthorizationUrl(params: OAuthParams): string
exchangeCode(code: string): Promise<TokenResponse>
getUserInfo(accessToken: string): Promise<UserInfo>
revokeToken(token: string): Promise<void>
validateToken(idToken: string, nonce: string): Promise<boolean>
refreshAccessToken(refreshToken: string): Promise<TokenResponse>
getProviderName(): string
isAvailable(): Promise<boolean>

Relationships

Dependents (1)

Components that depend on this component