Skip to content

Commit

Permalink
Merge pull request #260 from AzureAD/rn/release
Browse files Browse the repository at this point in the history
release changes for 0.1.5
  • Loading branch information
rohitnarula7176 committed Feb 28, 2018
2 parents cf14220 + 62696e3 commit 355dc1f
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ Via NPM:
Via CDN:
```JavaScript
<!-- Latest compiled and minified JavaScript -->
<script src="https://secure.aadcdn.microsoftonline-p.com/lib/0.1.3/js/msal.min.js"></script>
<script src="https://secure.aadcdn.microsoftonline-p.com/lib/0.1.5/js/msal.min.js"></script>
```

Note that msal.js is built for ES5, therefore enabling support of Internet Explorer 11. If you want to target Internet Explorer, you'll need to add a reference to promises polyfill. You might want to read more in the [FAQ](../../wiki)
```JavaScript
<!-- IE support: add promises polyfill before msal.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js" class="pre"></script>
<script src="https://secure.aadcdn.microsoftonline-p.com/lib/0.1.3/js/msal.min.js"></script>
<script src="https://secure.aadcdn.microsoftonline-p.com/lib/0.1.5/js/msal.min.js"></script>
```

## Build and running tests
Expand Down
32 changes: 32 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
# 0.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 });
```

# 0.1.4-beta

### Bug fixes

* Test version

# 0.1.3

### Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion devApps/ModuleSample/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "msalreact",
"version": "0.1.3",
"version": "0.1.5",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions dist/msal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/msal.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/msal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/msal.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ <h2 id="installation">Installation</h2>
<pre><code>npm <span class="hljs-keyword">install</span> msal
</code></pre><p>Via CDN:</p>
<pre><code class="lang-JavaScript"> &lt;!-- Latest compiled and minified JavaScript --&gt;
<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://secure.aadcdn.microsoftonline-p.com/lib/0.1.3/js/msal.min.js"</span>&gt;</span><span class="undefined"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></span>
<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://secure.aadcdn.microsoftonline-p.com/lib/0.1.5/js/msal.min.js"</span>&gt;</span><span class="undefined"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></span>
</code></pre>
<p>Note that msal.js is built for ES5, therefore enabling support of Internet Explorer 11. If you want to target Internet Explorer, you&#39;ll need to add a reference to promises polyfill. You might want to read more in the <a href="../../wiki">FAQ</a></p>
<pre><code class="lang-JavaScript"> &lt;!-- IE support: add promises polyfill before msal.js --&gt;
<span class="xml"><span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"pre"</span>&gt;</span><span class="undefined"></span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></span>
&lt;script src=<span class="hljs-string">"https://secure.aadcdn.microsoftonline-p.com/lib/0.1.3/js/msal.min.js"</span>&gt;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></span>
&lt;script src=<span class="hljs-string">"https://secure.aadcdn.microsoftonline-p.com/lib/0.1.5/js/msal.min.js"</span>&gt;<span class="xml"><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></span>
</code></pre>
<h2 id="build-and-running-tests">Build and running tests</h2>
<p>If you want to build the library and run all the unit tests, you can do the following.</p>
Expand Down
2 changes: 1 addition & 1 deletion lib-commonjs/Utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib-es6/Utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "git",
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
},
"version": "0.1.3",
"version": "0.1.5",
"description": "Microsoft Authentication Library for js",
"keywords": [
"implicit",
Expand Down
2 changes: 1 addition & 1 deletion src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export class Utils {
}

static getLibraryVersion(): string {
return "0.1.3";
return "0.1.5";
}

/*
Expand Down

0 comments on commit 355dc1f

Please sign in to comment.