Current status: proof-of-concept
Compatible backend using Firebase functions: activout/bankid-demo-backend-firebase
Code to launch BankID app:
final client = BankIdFirebaseClient();
final response = await client.auth();
var url = 'https://app.bankid.com/?autostarttoken=${response.autoStartToken}&redirect=null';
if (!await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication)) {
throw Exception('Could not launch $url');
}
Setup a Firebase project and enable billing.
Follow the instructions in the Add Firebase to your Flutter app.
This will generate the following files that currently are listed in .gitignore
so that I don't accidentally commit them
to the repository:
android/app/google-services.json
ios/Runner/GoogleService-Info.plist
ios/firebase_app_id_file.json
lib/firebase_options.dart
- Make /collect create a Firebase Auth custom token
- BankID Flutter demo app for use with .NET backend: activout/bankid-demo-flutter
- BankID demo backend in .NET for Flutter app: activout/bankid-demo-backend-dotnet
Contact [email protected] to order a support package.