BankID OIDC Client
Component Detail
Infrastructure
medium complexity
mobile
0
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Infrastructure wrapper around the BankID/Criipto OIDC provider integration on the Flutter client side. Manages PKCE flow construction, secure in-app browser launch via flutter_secure_browser or app_links, and redirect URI interception. Configured with provider endpoints, client credentials, and the correct ACR values for Norwegian BankID.
bankid-oidc-client
Responsibilities
- Build PKCE code verifier and challenge for each auth attempt
- Construct the authorisation request URL with correct scope, nonce, and redirect_uri
- Launch and manage the secure in-app browser session
- Intercept the redirect callback URI and extract the authorisation code
- Expose provider discovery/configuration for backend token endpoint resolution
Interfaces
buildAuthRequest(config: BankIdConfig): AuthRequest
launchBrowser(authUrl: String): Future<void>
interceptCallback(): Future<Uri>
getProviderMetadata(): OidcProviderMetadata
Relationships
Dependents (2)
Components that depend on this component