msal_js 2.14.0 msal_js: ^2.14.0 copied to clipboard
A Dart wrapper for the 'Microsoft Authentication Library for JavaScript (MSAL.js)'.
v2.14.0 #
- (breaking change) Support for MSAL.js 2.14.
- MSAL 2.x has a slightly different API than MSAL 1.x, some notable changes include:
UserAgentApplication
was renamed toPublicClientApplication
.handleRedirectFuture
replaceshandleRedirectCallback
.- Request/response classes have new names.
- MSAL 2.x has a slightly different API than MSAL 1.x, some notable changes include:
- (breaking change) Removed deprecated
MissingMsalJsException
class. - Fixed issue where setting the base
Logger
log level would set the wrong level. - Fixed issue where getting the log level from
LoggerOptions
would return the wrong level.
v1.4.0-nullsafety.0 #
- Migrated to null safety. (#21, thanks nyarian!)
- Note: Many properties and returns are now nullable that seem like they shouldn't be. This is because msal.js is written in a way that makes it impossible to guarantee null safety.
- Updated minimum SDK version to
2.12.0-259.9.beta
. - Added
LogLevel.unknown
to represent msal.js log levels that don't have an enum value counterpart.
v1.3.0 #
- Added
UserAgentApplication.ssoSilent
. - Added
UserAgentApplication.setLogger
. - Added
AuthRequest.redirectStartPage
. - Added
AuthRequest.onRedirectNavigate
. - Added
AuthRequest.authorityMetadata
. - Added
AuthOptions.authorityMetadata
. - Added
AuthOptions.knownAuthorities
. - Fixed exception thrown when creating a
Logger
without any options.
v1.2.3 #
- Fix
InteractionRequiredAuthError
s andServerError
s not being converted correctly to their exception counterparts.
v1.2.2 #
- Replace
dart:js
usage withpackage:js
. This gets around adart2js
issue when compiling a Flutter app for the web and also "modernizes" the codebase a little. - Deprecated
MissingMsalJsException
. This is no longer thrown even if msal.js is missing. - Added Flutter Web app example.
v1.2.1 #
- Fix
acquireTokenPopup
,acquireTokenSilent
, andloginPopup
failing to correctly convert JS promise errors to exceptions.
v1.2.0 #
- Support for msal.js v1.2.x
- Added
AuthRequest.redirectUri
v1.1.0 #
- Support for msal.js v1.1.x
- Added
Account.idTokenClaims
- Added
AuthRequest.forceRefresh
v1.0.1 #
- Fixed
AuthRequest.extraQueryParameters
not working. - Removed dependency on
package:js
. - Deprecated
FrameworkOptions
. The 'framework' configuration forUserAgentApplication
is an unfortunate coupling betweenmsal-core
andmsal-angular(js)
. Since this package only wrapsmsal-core
, setting these options does nothing and should not have been included in the API to begin with. It will be removed in a future release.
v1.0.0 #
See https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL.js-1.0.0-api-release for conceptual breaking changes in 1.0.
- Support for msal.js v1.0.x.
- Changed minimum Dart SDK version from 1.23.0 to 2.0.0.
- Replaced
User
withAccount
. - Replaced
MsalException
withAuthException
and its inheritors. UserAgentApplication
changes:- Login/acquire methods now take in and return
AuthRequest
andAuthResponse
respectively. - Constructor now takes in a single
Configuration
object. - Replaced
TokenReceivedCallback
withAuthResponseCallback
. - Replaced
getUser
withgetAccount
. - Replaced
getAllUsers
withgetAllAccounts
. - Replaced
loginInProgress
withgetLoginInProgress
. - Added
handleRedirectCallback
. - Added
getCurrentConfiguration
. - Added
getPostLogoutRedirectUri
. - Added
getRedirectUri
. - Removed
cacheLocation
. - Removed
loadFrameTimeout
. - Removed
clientId
. - Removed
validateAuthority
.
- Login/acquire methods now take in and return
- Added missing getters to
LoggerOptions
. - Fixed error when providing
null
for options when creating aLogger
.
v0.3.2 #
- Support for msal.js v0.2.4.
UserAgentApplicationOptions
changes:redirectUri
may now be either aString
orRedirectUriCallback
.postLogoutRedirectUri
may now be either aString
orRedirectUriCallback
.
UserAgentApplication
changes:- The constructor parameter
tokenReceivedCallback
may now benull
.
- The constructor parameter
v0.3.1 #
- Fix crash which occurred when using the logger callback in code compiled with dart2js.
v0.3.0 #
- Rewrote entire library using
package:js
. - The constructor for
UserAgentApplication
now semantically matches the JavaScript version. - The constructor for
Logger
now semantically matches the JavaScript version. - No longer contains a build of msal.js. A valid version of msal.js must be installed separately.
Versions listed below are not available on pub as they were made before this package was published.
v0.2.1 #
- Fix
MsalException
not correctly decoding the error code/description.
v0.2.0 #
- Support for msal.js v0.2.3.
- All
UserAgentApplication
constructor parameters are now named. Parameters that used to be positional are now marked as@required
.
v0.1.0 #
- Support for msal.js v0.1.5.