Flutter — Microsoft API Management secured with AD — MSAL for Android
This is the fifth part of a mini series to show how to secure your Flutter applications using Microsoft technologies:
- Web API — Setting up your Web API with Visual Studio.
- APIM Service — Creating an API management service in Azure.
- Secure Gateway — Securing requests through the API gateway.
- MSAL — Authenticating your Flutter app on iOS.
- MSAL — Authenticating your Flutter app on Android.
- MSAL — Authenticating your Flutter app on the Web.
- Hosted API — Hosting your Web API’s in Azure.
- Secure Hosted API — Secure requests with the APIM Gateway
In this article we show how to get an access token by authenticating against an Azure AD on an Android phone or tablet.
Step 1: Declare MSAL as a dependency
Add the following entries to your app gradle android/app/src/build.gradle:
dependencies {
implementation 'com.microsoft.identity.client:msal:3.0.+'
}