npm msal 1.0.0-preview.0
Release msal v1.0.0-preview.0

latest releases: 1.4.18, 1.3.6, 1.3.5...
5 years ago

1.0.0-preview.0

New Features (Breaking Changes)

As announced earlier @https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL.js-1.0.0-preview-changes we are excited to announce the preview release.

Release notes:

Configuration Object

  • Initialization of the MSAL JS library – We introduced a ‘Configuration’ object that can be sent through the constructor of UserAgentApplication() class.

Request Object

  • ‘Request’ object is introduced for all login/accessToken calls, this replaces previous overloading of login/acquireToken calls
  • Users can choose to pass optional parameters to finetune their requests for authentication and authorization.
  • 'User' object is now replaced with 'Account' => the public API getUser() is now getAccount() with more enhanced data.

Response and Error Objects

  • ‘Response’ and 'Error' objects are introduced for server responses and app failures
    • For ‘Redirect’ usecases, explicit success and failure call backs should be passed to ‘handleRedirectCallbacks()’.
    • For 'Popup' and 'Silent' usecases, a promise pattern i.e.,' .then and .catch' can be used.
    • Note: Error objects are better classified and messaged with this release. Detailed documentation for Error Handling will be added soon in docs

The 'Configuration', 'Request', 'Response' and 'Error' datatypes and their usage is detailed in the changelog.md @https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-core/changelog.md

We will follow up with a detailed blog post and a Quickstart Application soon with these changes.

Don't miss a new msal release

NewReleases is sending notifications on new releases.