msal_auth
3.5.3, released 3 months ago by aubergine.co
A Flutter plugin for Microsoft authentication via the native MSAL library.
What it does
Allows users to sign in with Microsoft accounts using native MSAL library for Android, iOS, and macOS. It supports single and multiple account modes, acquiring tokens interactively and silently, and integration with the Microsoft Authenticator app, browser, or webview.
AI-written summary of version 3.5.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need Microsoft Entra ID (AAD) or B2C authentication in your Flutter app.
- You want to use the native MSAL library for Android, iOS, and macOS.
Skip it when
- You only need Google, Apple, or generic OAuth sign-in without Microsoft.
- You want a pure Dart implementation without native mobile dependencies.
Strengths
- Uses official native MSAL libraries under the hood.
- Supports broker authentication (Microsoft Authenticator app).
- Supports both single and multiple account modes.
Weaknesses
- Requires platform-specific configuration in Azure Portal and native project files.
- Platform-specific minimum version requirements (Android SDK 21+, iOS/macOS 16+/11+ depending on tooling).
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 0
Requires app registration in Azure Portal, platform-specific bundle/package configuration, signature hashes for Android, keychain sharing capabilities for iOS/macOS, and custom configuration JSON files.
final msalAuth = await SingleAccountPca.create(
clientId: '<MICROSOFT_CLIENT_ID>',
androidConfig: AndroidConfig(
configFilePath: 'assets/msal_config.json',
redirectUri: '<Android Redirect URI>',
),
);Alternatives
Packages that do the same job and could replace msal_auth.
- flutter_appauth
If you prefer using AppAuth for OAuth2 / OpenID Connect authentication instead of MSAL-specific SDKs.
92Compare