BankID API Gateway
Component Detail
Infrastructure
high complexity
mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Low-level HTTP client for all communication with the BankID OIDC provider. Handles authorization endpoint construction, token endpoint requests, PKCE code verifier/challenge generation, redirect URI registration, and error normalization for provider-specific error codes.
bankid-api-gateway
Responsibilities
- Construct BankID authorization and token endpoint URLs
- Execute token exchange HTTP requests with PKCE
- Normalize BankID error responses to app-level error types
- Manage redirect URI scheme registration for in-app browser callbacks
Interfaces
getAuthorizationEndpoint()
getTokenEndpoint()
exchangeCode(code, codeVerifier, redirectUri)
generatePkceChallenge()
normalizeError(providerError)
validateRedirectUri(uri)