Flutter
This guide demonstrates how to add user authentication to a Flutter application using BlitzWare.
1) Configure BlitzWare
Get Your Application Keys
You will need some details about your application to communicate with BlitzWare. You can get these details from the Application Settings section in the BlitzWare dashboard.

You need the Client ID.
Configure Redirect URIs
A redirect URI is a URL in your application where BlitzWare redirects the user after they have authenticated. The redirect URI for your app must be added to the Redirect URIs list in your Application Settings under the Security tab. If this is not set, users will be unable to log in to the application and will get an error.
2) Install the BlitzWare Flutter SDK
Run the following command within your project directory to install the BlitzWare Flutter SDK:
Prerequisites
This SDK requires Flutter 3.0.0 or higher and includes the following key dependencies:
flutter_appauth- For OAuth 2.0 authentication with PKCEflutter_secure_storage- For secure token storageprovider- For state managementhttp- For API communication
These dependencies are automatically installed with the SDK.
Platform Setup
iOS Setup
Add URL scheme to your
ios/Runner/Info.plist:
Replace yourapp with your actual app scheme.
Android Setup
Add the redirect URI receiver activity to
android/app/src/main/AndroidManifest.xmlinside the<application>tag:
Replace yourapp with your actual app scheme.
3) Implementation Guide
Follow this step-by-step guide to implement authentication in your app.
That's it! You now have a fully functional Flutter application with BlitzWare authentication.
For more information, check out the example app which demonstrates all these features and more.
Last updated