In-App Browser Infrastructure
Component Detail
Infrastructure
medium complexity
mobile
0
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Flutter infrastructure layer wrapping flutter_web_auth_2 (or equivalent) to launch external OAuth provider URLs inside a secure in-app browser and capture the redirect callback via a custom URL scheme. Provides a unified interface used by both the BankID Login Screen and Vipps Login Screen to initiate and complete provider flows without leaving the app.
in-app-browser-infrastructure
Responsibilities
- Launch external OAuth URLs in a secure in-app browser session
- Register and handle custom URL scheme redirects from providers
- Pass captured authorization codes and state parameters back to callers
- Handle browser dismissal and user cancellation events
- Enforce HTTPS and validate redirect URL origins for security
Interfaces
launchAuthUrl(url, callbackScheme)
onCallbackReceived(callbackUrl)
cancelBrowserSession()
isRedirectSchemeRegistered(scheme)
registerRedirectScheme(scheme)
Relationships
Dependents (2)
Components that depend on this component