Releases: AzureAD/microsoft-authentication-library-for-js
Releases · AzureAD/microsoft-authentication-library-for-js
Release v0.1.9
Release v0.1.7
Release v0.1.6
New Features
- Fixed bug with concurrent acquireToken requests. #274
- Added catchHandler for authority validation
- Fixed bug to handle the case for id_token with special characters.
Release v0.1.5
Breaking Changes
- The constructor function in Msal is no longer asynchronous. To use the instance of userAgentApplication in the callback function passed in the constructor, use "this" in the calback function scope. Please see below:
var userAgentApplication = new Msal.UserAgentApplication(applicationConfig.clientID, null, authCallback);
function authCallback(errorDesc, token, error, tokenType) {
console.log(userAgentApplication) //this will print undefined, use this instead
var self = this// self is instance of userAgentApplication
}
New Features
- By default, msal tries to take you back to the loginStartPage after successful authentication. To disable this setting, you can pass navigateToLoginRequestUrl:false
in the options object in the constructor. In that case, msal will just set the url hash to null and call the provided callback, thereby avoiding an additional reload. Please see snippet below:
var userAgentApplication = new Msal.UserAgentApplication(applicationConfig.clientID, null, authCallback, { navigateToLoginRequestUrl:false });
- The idToken object is now added as a property on user object in msal which can be used to query claims and the User class itself is exported under the global namespace.
- loadFrameTimout(msec) is now configurable by setting it to a value in the options object passed to the userAgentApplication contructor. The default timeout is 6000 msec. Please see the snippet below to change it:
var userAgentApplication = new Msal.UserAgentApplication(applicationConfig.clientID, null, authCallback, { loadFrameTimout:10000 });
Release 0.1.4-beta
Merge pull request #260 from AzureAD/rn/release release changes for 0.1.5
Release v0.1.3
- Added ability to import msal as es-5 or es-6 module.
- Added webpack to create a umd bundle with a global variable Msal exported to the window object.
- Fixed bug related to browser refresh.
- Set user object from cache if available before every acquireToken request.
- Enable logging by passing a logger in the constructor function.
Release v0.1.2
*Fixed bug with renewal of id_token.
*Added support for multiple asynchronous acquireToken requests.
*Added "user_cancelled" event for popup window.
Release v0.1.1
*Fixed browser specific issues.
Release v0.1.0
First Release