msal_auth 3.1.0 msal_auth: ^3.1.0 copied to clipboard
A comprehensive Flutter plugin for managing Microsoft authentication using the native Microsoft Authentication Library (MSAL).
3.1.0 #
- Added support for the
macOS
platform. - BREAKING CHANGES:
IosConfig
class has been renamed toAppleConfig
and now this configuration class supports iOS and macOS.broker
property of this class is used only for iOS.
3.0.1 #
- Added
Account Mode
related instructions for Android in the README & fixed Dart analysis.
3.0.0 #
-
Added support of
single
andmultiple
account mode. -
Added new classes & methods based on account mode:
- SingleAccountPca (Single Account Mode):
- currentAccount
- signOut()
- MultipleAccountPca (Multiple Account Mode):
- getAccount()
- getAccounts()
- removeAccount()
- SingleAccountPca (Single Account Mode):
-
Added
redirectUri
inAndroidConfig
class as a required parameter. -
Added
identifier
option inacquireTokenSilent()
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
fromAndroidConfig
is removed because it can be set through JSON configuration file.AuthMiddleware
enum inIosConfig
is renamed toBroker
.TenantType
enum inIosConfig
is renamed toAuthorityType
with it's values:entraIDAndMicrosoftAccount
toaad
.azureADB2C
tob2c
.
scopes
argument is moved toacquireToken()
&acquireTokenSilent()
methods. these methods are now part ofPublicClientApplication
class.logout()
is removed sosignOut()
orremoveAccount()
is used based on your account mode.MsalUser
class is replaced byAuthenticationResult
with additional parameters.MsalUserCanceledException
is renamed toMsalUserCancelException
.
2.2.1 #
- Added keychain group
com.microsoft.adalcache
inexample/ios
and updated instruction in README.
2.2.0 #
- Moved
loginHint
param toacquireToken
function. - Added support of
Prompt
option inacquireToken
function.
2.1.1 #
- Updated README for login process stuck on iOS due to missing callback handling. issue#26, issue#33
2.1.0 #
- Fixed issue of
activity is null
whenFlutterFragmentActivity
is used inMainActivity.kt
2.0.2 #
- Added
idToken
param inMsalUser
class.
2.0.1 #
- Added support of
loginHint
.
2.0.0 #
- Added support for authenticating against Azure AD B2C tenants on iOS.
1.0.8 #
- Fixed crash in Android when
MsalUiRequiredException
occurs. - Added info about
authority
used in iOS. - Updated
example
code.
1.0.7 #
- Fixed
Dart Analysis
in model classes.
1.0.6 #
- Added documentation for
How to setup app in Azure portal
.
1.0.5 #
- Added documentation for broker authentication.
1.0.4 #
- Added documentation.
1.0.3 #
- Fixed
Dart Analysis
1.0.2 #
- Added
Dart Analysis
1.0.1 #
- Set
tokenExpiresOn
value as a milliseconds since epoch.
1.0.0 #
- Initial release.