Join Medium to view all my articles.

Flutter — Microsoft API Management secured with AD — MSAL for Android

simbu

--

This is the fifth part of a mini series to show how to secure your Flutter applications using Microsoft technologies:

  1. Web API — Setting up your Web API with Visual Studio.
  2. APIM Service — Creating an API management service in Azure.
  3. Secure Gateway — Securing requests through the API gateway.
  4. MSAL — Authenticating your Flutter app on iOS.
  5. MSAL — Authenticating your Flutter app on Android.
  6. MSAL — Authenticating your Flutter app on the Web.
  7. Hosted API — Hosting your Web API’s in Azure.
  8. 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.+'
}

--

--

simbu

Family, Friends, Code, Play, Repeat - Between the idea and the reality…Falls the shadow