Flutter with Azure: How to sign into Flutter applications with Microsoft’s Azure ADB2C.

flutter_appauth: ^1.0.0
jwt_decode: ^0.3.1
Add the dependencies like so.
...
android {
...
defaultConfig {
...
manifestPlaceholders = [
'appAuthRedirectScheme': '<your_app_name>'
]
}
}
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
</intent>
<intent>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.APP_BROWSER" />
<data android:scheme="https" />
</intent>
</queries>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string><your_app_name></string>
</array>
</dict>
</array>
User flow
import 'package:flutter_appauth/flutter_appauth.dart';
import 'package:jwt_decode/jwt_decode.dart';
import 'dart:io';
FlutterAppAuth appAuth = FlutterAppAuth();
String _clientId = 'Your ClientID';
String _redirectUrl = 'Your Redirect URL';
String authorizationEndpoint = 'Your Authorization URL';
String tokenEndpoint = 'Your token URL';
List<String> _scopes = ['openid', 'profile', 'email'];

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store