PackageTrack
Sign in Get early access

msal_js

A Dart wrapper for the 'Microsoft Authentication Library for JavaScript (MSAL.js)'.

2.14.0 7.1K downloads/mo #3401 most downloaded on pub.dev Francessco121/msal-js-dart

What this package is like to depend on

Last release 5 years ago

no release in 18 months

Ships fairly regularly

a new release about every 4 months

Nearly every release is documented

notes for 12 of 12 stable releases

Nothing withdrawn

no release was ever pulled

8 years old

13 releases · first in 2018

0 releases in the last 12 months

see the full history below

Release timeline

13 releases · Nov 2018 to Jun 2021
2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 13
  1. 2.14.0 21 Jun 2021
    Release notes
    • (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 to PublicClientApplication.
        • handleRedirectFuture replaces handleRedirectCallback.
        • Request/response classes have new names.
    • (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.
    Open source →
    Release notes
    • (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 to PublicClientApplication.
        • handleRedirectFuture replaces handleRedirectCallback.
        • Request/response classes have new names.
    • (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.
    Open source →
  2. 1.4.0-nullsafety.0 20 Mar 2021 pre-release
    Release notes
    • 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.
    Open source →
    Release notes
    • 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.
    Open source →
  3. 1.3.0 26 Aug 2020
    Release notes
    • 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.
    Open source →
    Release notes
    • 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.
    Open source →
  4. 1.2.3 06 Jul 2020
    Release notes
    • Fix InteractionRequiredAuthErrors and ServerErrors not being converted correctly to their exception counterparts.
    Open source →
    Release notes
    • Fix InteractionRequiredAuthErrors and ServerErrors not being converted correctly to their exception counterparts.
    Open source →
  5. 1.2.2 05 Jul 2020
    Release notes
    • Replace dart:js usage with package:js. This gets around a dart2js 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.
    Open source →
    Release notes
    • Replace dart:js usage with package:js. This gets around a dart2js 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.
    Open source →
  6. 1.2.1 12 Dec 2019
    Release notes
    • Fix acquireTokenPopup, acquireTokenSilent, and loginPopup failing to correctly convert JS promise errors to exceptions.
    Open source →
    Release notes
    • Fix acquireTokenPopup, acquireTokenSilent, and loginPopup failing to correctly convert JS promise errors to exceptions.
    Open source →
  7. 1.2.0 11 Dec 2019
    Release notes
    • Support for msal.js v1.2.x
    • Added AuthRequest.redirectUri
    Open source →
    Release notes
    • Support for msal.js v1.2.x
    • Added AuthRequest.redirectUri
    Open source →
  8. 1.1.0 17 Nov 2019
    Release notes
    • Support for msal.js v1.1.x
    • Added Account.idTokenClaims
    • Added AuthRequest.forceRefresh
    Open source →
    Release notes
    • Support for msal.js v1.1.x
    • Added Account.idTokenClaims
    • Added AuthRequest.forceRefresh
    Open source →
  9. 1.0.1 17 Nov 2019
    Release notes
    • Fixed AuthRequest.extraQueryParameters not working.
    • Removed dependency on package:js.
    • Deprecated FrameworkOptions. The 'framework' configuration for UserAgentApplication is an unfortunate coupling between msal-core and msal-angular(js). Since this package only wraps msal-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.
    Open source →
    Release notes
    • Fixed AuthRequest.extraQueryParameters not working.
    • Removed dependency on package:js.
    • Deprecated FrameworkOptions. The 'framework' configuration for UserAgentApplication is an unfortunate coupling between msal-core and msal-angular(js). Since this package only wraps msal-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.
    Open source →
  10. 1.0.0 29 Oct 2019
    Release notes

    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 with Account.
    • Replaced MsalException with AuthException and its inheritors.
    • UserAgentApplication changes:
      • Login/acquire methods now take in and return AuthRequest and AuthResponse respectively.
      • Constructor now takes in a single Configuration object.
      • Replaced TokenReceivedCallback with AuthResponseCallback.
      • Replaced getUser with getAccount.
      • Replaced getAllUsers with getAllAccounts.
      • Replaced loginInProgress with getLoginInProgress.
      • Added handleRedirectCallback.
      • Added getCurrentConfiguration.
      • Added getPostLogoutRedirectUri.
      • Added getRedirectUri.
      • Removed cacheLocation.
      • Removed loadFrameTimeout.
      • Removed clientId.
      • Removed validateAuthority.
    • Added missing getters to LoggerOptions.
    • Fixed error when providing null for options when creating a Logger.
    Open source →
    Release notes

    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 with Account.
    • Replaced MsalException with AuthException and its inheritors.
    • UserAgentApplication changes:
      • Login/acquire methods now take in and return AuthRequest and AuthResponse respectively.
      • Constructor now takes in a single Configuration object.
      • Replaced TokenReceivedCallback with AuthResponseCallback.
      • Replaced getUser with getAccount.
      • Replaced getAllUsers with getAllAccounts.
      • Replaced loginInProgress with getLoginInProgress.
      • Added handleRedirectCallback.
      • Added getCurrentConfiguration.
      • Added getPostLogoutRedirectUri.
      • Added getRedirectUri.
      • Removed cacheLocation.
      • Removed loadFrameTimeout.
      • Removed clientId.
      • Removed validateAuthority.
    • Added missing getters to LoggerOptions.
    • Fixed error when providing null for options when creating a Logger.
    Open source →
  11. 0.3.2 25 Mar 2019
    Release notes
    • Support for msal.js v0.2.4.
    • UserAgentApplicationOptions changes:
      • redirectUri may now be either a String or RedirectUriCallback.
      • postLogoutRedirectUri may now be either a String or RedirectUriCallback.
    • UserAgentApplication changes:
      • The constructor parameter tokenReceivedCallback may now be null.
    Open source →
  12. 0.3.1 28 Nov 2018
    Release notes
    • Fix crash which occurred when using the logger callback in code compiled with dart2js.
    Open source →
  13. 0.3.0 24 Nov 2018
    Release notes
    • 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.

    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