PackageTrack
Sign in Get early access

msal_auth

A comprehensive Flutter plugin for managing Microsoft authentication using the native Microsoft Authentication Library (MSAL).

3.5.2 17K downloads/mo #2341 most downloaded on pub.dev nayanAubie/msal_auth

What this package is like to depend on

Last release 20 days ago

03 Aug 2026

Ships unpredictably

gaps range from 8 days to 8 months

Nearly every release is documented

notes for 38 of 38 stable releases

Nothing withdrawn

no release was ever pulled

2 years old

38 releases · first in 2024

5 releases in the last 12 months

see the full history below

Release timeline

38 releases · Mar 2024 to Aug 2026
2025 2026
Release Pre-release

Releases

latest 38
  1. 3.5.2 03 Aug 2026
    Release notes
    • Added optional redirectUri in AppleConfig for iOS/MacOS. When provided, MSAL uses it directly instead of deriving the default msauth.<bundle-id> redirect, which fails with teamId is missing on some managed devices. Keeping it null preserves the existing behaviour. #issue/145
    • AppleConfig.broker is now applied on MacOS as well (earlier it was iOS only). Setting it to webView / safariBrowser disables the Microsoft SSO extension and routes authentication through the web view. #issue/145
    Open source →
    Release notes
    • Added optional redirectUri in AppleConfig for iOS/MacOS. When provided, MSAL uses it directly instead of deriving the default msauth.<bundle-id> redirect, which fails with teamId is missing on some managed devices. Keeping it null preserves the existing behaviour. #issue/145
    • AppleConfig.broker is now applied on MacOS as well (earlier it was iOS only). Setting it to webView / safariBrowser disables the Microsoft SSO extension and routes authentication through the web view. #issue/145
    Open source →
  2. 3.5.1 27 Jun 2026
    Release notes
    • Fixed issue of IllegalStateException: Reply already submitted crash due to multiple account callback from Android to Dart. #issue/116
    • Added MsalNoCurrentAccountException in Dart to handle absence of signed-in account. #issue/141
    Open source →
    Release notes
    • Fixed issue of IllegalStateException: Reply already submitted crash due to multiple account callback from Android to Dart. #issue/116
    • Added MsalNoCurrentAccountException in Dart to handle absence of signed-in account. #issue/141
    Open source →
  3. 3.5.0 08 May 2026
    Release notes
    • Added support for Swift Package Manager on iOS and macOS. #issue/132
    • Fixed the native Swift getCurrentAccount implementation so acquireTokenSilent and signOut correctly wait for the asynchronous callback. #issue/129
    Open source →
    Release notes
    • Added support for Swift Package Manager on iOS and macOS. #issue/132
    • Fixed the native Swift getCurrentAccount implementation so acquireTokenSilent and signOut correctly wait for the asynchronous callback. #issue/129
    Open source →
  4. 3.4.1 04 May 2026
    Release notes
    • Fixed an Android release build issue caused by missing ProGuard rule mappings in the Android library. #issue/135
    Open source →
    Release notes
    • Fixed an Android release build issue caused by missing ProGuard rule mappings in the Android library. #issue/135
    Open source →
  5. 3.4.0 01 May 2026
    Release notes
    • Updated native MSAL SDK versions: Android: 8.3.+ and iOS & macOS: 2.11.0
    • Migrated Android build scripts from Groovy to Kotlin DSL.
    • Added automatic handling of MSALPublicClientApplication.handleMSALResponse for iOS URL callbacks via both AppDelegate and SceneDelegate, removing the need for manual integration in host apps.
    • Added a shared device mode status check method to the PublicClientApplication class. #issue/126
    Open source →
    Release notes
    • Updated native MSAL SDK versions: Android: 8.3.+ and iOS & macOS: 2.11.0
    • Migrated Android build scripts from Groovy to Kotlin DSL.
    • Added automatic handling of MSALPublicClientApplication.handleMSALResponse for iOS URL callbacks via both AppDelegate and SceneDelegate, removing the need for manual integration in host apps.
    • Added a shared device mode status check method to the PublicClientApplication class. #issue/126
    Open source →
  6. 3.3.0 19 Aug 2025
    Release notes
    • Created AppTheme style in the example app for MSAL WebView in Android. #issue/119
    • Added support for customised webview in iOS and macOS. #issue/90
    Open source →
    Release notes
    • Created AppTheme style in the example app for MSAL WebView in Android. #issue/119
    • Added support for customised webview in iOS and macOS. #issue/90
    Open source →
  7. 3.2.7 24 Jul 2025
    Release notes
    • Fixed issue of authorityType value assignment in iOS/MacOS. #issue/118
    Open source →
    Release notes
    • Fixed issue of authorityType value assignment in iOS/MacOS. #issue/118
    Open source →
  8. 3.2.6 18 Jul 2025
    Release notes
    • Fixed MSAL error conversion in Dart due to nil details received from iOS/MacOS.
    • Improved error codes in iOS/MacOS when a custom exception needs to be thrown.
    Open source →
    Release notes
    • Fixed MSAL error conversion in Dart due to nil details received from iOS/MacOS.
    • Improved error codes in iOS/MacOS when a custom exception needs to be thrown.
    Open source →
  9. 3.2.5 17 Jul 2025
    Release notes
    • Fixed an issue on iOS where the Authenticator app did not open when switching the broker to Authenticator.
    • Refactored error handling in MSAL exceptions to include correlation IDs and improve error detail mapping. iOS/MacOS now shows the proper exception message instead of Operation couldn't be completed.
    • AuthenticationResult (Android): Fixed username value in account mapping. username value will be null instead of Missing from token response if not found.
    Open source →
    Release notes
    • Fixed an issue on iOS where the Authenticator app did not open when switching the broker to Authenticator.
    • Refactored error handling in MSAL exceptions to include correlation IDs and improve error detail mapping. iOS/MacOS now shows the proper exception message instead of Operation couldn't be completed.
    • AuthenticationResult (Android): Fixed username value in account mapping. username value will be null instead of Missing from token response if not found.
    Open source →
  10. 3.2.4 15 Jul 2025
    Release notes
    • Handle UI unavailable error in acquireToken method and adjust view controller retrieval logic. #issue/101
    • Add authority parameter support for acquireToken and acquireTokenSilent methods. #issue/91
    Open source →
    Release notes
    • Handle UI unavailable error in acquireToken method and adjust view controller retrieval logic. #issue/101
    • Add authority parameter support for acquireToken and acquireTokenSilent methods. #issue/91
    Open source →
  11. 3.2.3 10 Jul 2025
    Release notes
    • Fixed an issue causing MsalUiRequiredException due to an internal call to acquireTokenSilent within the acquireToken method during native calls. #issue/82
    Open source →
  12. 3.2.2 10 Jul 2025
    Release notes
    • Fixed an issue of broker in iOS due to broker availability was set to auto in the acquireToken method.
    Open source →
  13. 3.2.1 08 Jul 2025
    Release notes
    • Updated example app to use the signature hash programmatically instead of hardcoding it in AndroidManifest.xml.
    • Updated the example/README for detailed instructions on how to set up the example app.
    • Update documentation for the following:
      • Internet and Network State permissions in AndroidManifest.xml.
      • Debug and release signature hash generation for Android.
      • ProGuard setup within this plugin.
    Open source →
  14. 3.2.0 07 Jul 2025
    Release notes
    • Upgrade MSAL native libraries:
      • Android: 6.0.1 (Version fixed to ensure each release of msal_auth consistently uses a specific native MSAL version)
      • Apple: 2.2.0
    • Used modern Gradle syntax with updated Kotlin and Gradle wrapper version.
    • Migrated the Android example app from Groovy to Kotlin build scripts.
    Open source →
  15. 3.1.5 04 Jul 2025
    Release notes
    • Fixed an issue in iOS: "Unable to create public client application" when the app doesn't specify LSApplicationQueriesSchemes in Info.plist. #issue/80
    • Added an assertion in the acquireTokenSilent method to ensure identifier is not null when using multiple account mode. #issue/93
    Open source →
  16. 3.1.4 28 Feb 2025
    Release notes
    • Upgrade MSAL native libraries:
      • Android: 5.10.+
      • Apple: 1.7.0
    • Fixed an issue of casting List<Object> to List<String> in the MsalDeclinedScopeException. #issue/83
    • Make idToken, tenantId and correlationId nullable in AuthenticationResult. #issue/81
    Open source →
  17. 3.1.3 28 Feb 2025
    Release notes
    • Fixed a crash when opening the app from TestFlight on iOS. #issue/25
    • Allowed to extend the SingleAccountPca & MultipleAccountPca classes. #issue/81
    Open source →
  18. 3.1.2 12 Feb 2025
    Release notes
    • Upgrade Android configuration to support latest Gradle version.
    Open source →
  19. 3.1.1 21 Jan 2025
    Release notes
    • Made the name nullable in Account class because it may be null if the user is registered without setting a name.
    • Used default authority in example's msal_config.json.
    Open source →
  20. 3.1.0 05 Dec 2024
    Release notes
    • Added support for the macOS platform.
    • BREAKING CHANGES:
      • IosConfig class has been renamed to AppleConfig and now this configuration class supports iOS and macOS. broker property of this class is used only for iOS.
    Open source →
  21. 3.0.1 22 Nov 2024
    Release notes
    • Added Account Mode related instructions for Android in the README & fixed Dart analysis.
    Open source →
  22. 3.0.0 22 Nov 2024
    Release notes
    • Added support of single and multiple account mode.

    • Added new classes & methods based on account mode:

      • SingleAccountPca (Single Account Mode):
        • currentAccount
        • signOut()
      • MultipleAccountPca (Multiple Account Mode):
        • getAccount()
        • getAccounts()
        • removeAccount()
    • Added redirectUri in AndroidConfig class as a required parameter.

    • Added identifier option in acquireTokenSilent() that is required for multiple account mode.

    • Defined all the possible exceptions in Dart side that can be thrown by native MSAL SDK.

    • Example app is completely re-written to showcase all the features.

    • BREAKING CHANGES:

      • MsalAuth.createPublicClientApplication is removed and added 3 classes:
        • PublicClientApplication super class.
        • SingleAccountPca for single account mode.
          • SingleAccountPca.create() is used to create single account public client application.
        • MultipleAccountPca for multiple account mode.
          • MultipleAccountPca.create() is used to create multiple account public client application.
      • tenantId from AndroidConfig is removed because it can be set through JSON configuration file.
      • AuthMiddleware enum in IosConfig is renamed to Broker.
      • TenantType enum in IosConfig is renamed to AuthorityType with it's values:
        • entraIDAndMicrosoftAccount to aad.
        • azureADB2C to b2c.
      • scopes argument is moved to acquireToken() & acquireTokenSilent() methods. these methods are now part of PublicClientApplication class.
      • logout() is removed so signOut() or removeAccount() is used based on your account mode.
      • MsalUser class is replaced by AuthenticationResult with additional parameters.
      • MsalUserCanceledException is renamed to MsalUserCancelException.
    Open source →
  23. 2.2.1 12 Nov 2024
    Release notes
    • Added keychain group com.microsoft.adalcache in example/ios and updated instruction in README.
    Open source →
  24. 2.2.0 11 Nov 2024
    Release notes
    • Moved loginHint param to acquireToken function.
    • Added support of Prompt option in acquireToken function.
    Open source →
  25. 2.1.1 08 Nov 2024
    Release notes
    • Updated README for login process stuck on iOS due to missing callback handling. issue#26, issue#33
    Open source →
  26. 2.1.0 14 Oct 2024
    Release notes
    • Fixed issue of activity is null when FlutterFragmentActivity is used in MainActivity.kt
    Open source →
  27. 2.0.2 23 Sep 2024
    Release notes
    • Added idToken param in MsalUser class.
    Open source →
  28. 2.0.1 29 Jul 2024
    Release notes
    • Added support of loginHint.
    Open source →
  29. 2.0.0 20 Jun 2024
    Release notes
    • Added support for authenticating against Azure AD B2C tenants on iOS.
    Open source →
  30. 1.0.8 15 May 2024
    Release notes
    • Fixed crash in Android when MsalUiRequiredException occurs.
    • Added info about authority used in iOS.
    • Updated example code.
    Open source →
  31. 1.0.7 14 May 2024
    Release notes
    • Fixed Dart Analysis in model classes.
    Open source →
  32. 1.0.6 14 May 2024
    Release notes
    • Added documentation for How to setup app in Azure portal.
    Open source →
  33. 1.0.5 14 May 2024
    Release notes
    • Added documentation for broker authentication.
    Open source →
  34. 1.0.4 14 May 2024
    Release notes
    • Added documentation.
    Open source →
  35. 1.0.3 13 May 2024
    Release notes
    • Fixed Dart Analysis
    Open source →
  36. 1.0.2 13 May 2024
    Release notes
    • Added Dart Analysis
    Open source →
  37. 1.0.1 03 Apr 2024
    Release notes
    • Set tokenExpiresOn value as a milliseconds since epoch.
    Open source →
  38. 1.0.0 11 Mar 2024
    Release notes
    • Initial release.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive