Skip to content

Commit

Permalink
Update Readme.md and CHANGELOG.md (#44)
Browse files Browse the repository at this point in the history
* Update Readme.md

Update Readme.md to reflect new upcoming version 0.4.1.

* Update CHANGELOG.md

Updated CHANGELOG.md to reflect new 0.4.1 version.

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update docs

Co-authored-by: Tal Aviel <[email protected]>
  • Loading branch information
Erika-Grine and TalAviel authored Jul 21, 2020
1 parent f2ba0a8 commit 2b898dd
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## [v0.4.1](https://github.com/ibm-cloud-security/appid-clientsdk-js/releases/tag/0.4.1) (2020-07-21)

**Added**

- Update dependency versions

## [v0.4.0](https://github.com/ibm-cloud-security/appid-clientsdk-js/releases/tag/0.4.0) (2020-04-10)

**Added**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import AppID from 'ibmcloud-appid-js';

From the CDN:
```html
<script src="https://cdn.appid.cloud.ibm.com/appid-0.4.0.min.js"></script>
<script src="https://cdn.appid.cloud.ibm.com/appid-0.4.1.min.js"></script>
```

Or for development purposes use the minified file in this repo:
Expand Down
10 changes: 5 additions & 5 deletions docs/AppID.html
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ <h4 class="name" id="silentSignin"><span class="type-signature">(async) </span>s

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line123">line 123</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line131">line 131</a>
</li></ul></dd>


Expand Down Expand Up @@ -1053,7 +1053,7 @@ <h4 class="name" id="getUserInfo"><span class="type-signature">(async) </span>ge

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line161">line 161</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line169">line 169</a>
</li></ul></dd>


Expand Down Expand Up @@ -1267,7 +1267,7 @@ <h4 class="name" id="changePassword"><span class="type-signature">(async) </span

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line185">line 185</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line193">line 193</a>
</li></ul></dd>


Expand Down Expand Up @@ -1514,7 +1514,7 @@ <h4 class="name" id="changeDetails"><span class="type-signature">(async) </span>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line231">line 231</a>
<a href="index.js.html">index.js</a>, <a href="index.js.html#line239">line 239</a>
</li></ul></dd>


Expand Down Expand Up @@ -1761,7 +1761,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jan 09 2020 15:52:52 GMT-0600 (Central Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Tue Jul 21 2020 11:34:54 GMT-0500 (Central Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ <h5>Type:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jan 09 2020 15:52:52 GMT-0600 (Central Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Tue Jul 21 2020 11:34:54 GMT-0500 (Central Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h2 id="installation">Installation</h2>
<pre class="prettyprint source lang-javascript"><code>import AppID from 'ibmcloud-appid-js';
</code></pre>
<p>From the CDN:</p>
<pre class="prettyprint source lang-html"><code>&lt;script src=&quot;https://cdn.appid.cloud.ibm.com/appid-0.3.0.min.js&quot;>&lt;/script>
<pre class="prettyprint source lang-html"><code>&lt;script src=&quot;https://cdn.appid.cloud.ibm.com/appid-0.4.1.min.js&quot;>&lt;/script>
</code></pre>
<p>Or for development purposes use the minified file in this repo:</p>
<pre class="prettyprint source lang-html"><code>&lt;script type='text/javascript' src=&quot;dist/appid.min.js&quot;>&lt;/script>
Expand Down Expand Up @@ -124,7 +124,7 @@ <h2 id="api-reference">API Reference</h2>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jan 09 2020 15:52:52 GMT-0600 (Central Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Tue Jul 21 2020 11:34:54 GMT-0500 (Central Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
12 changes: 10 additions & 2 deletions docs/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,15 @@ <h1 class="page-title">index.js</h1>
async signin() {
this._validateInitalize();
const endpoint = this.openIdConfigResource.getAuthorizationEndpoint();
return this.utils.performOAuthFlowAndGetTokens({origin: this.window.origin, clientId: this.clientId, endpoint});
let origin = this.window.location.origin;
if (!origin) {
origin = this.window.location.protocol + "//" + this.window.location.hostname + (this.window.location.port ? ':' + this.window.location.port : '');
}
return this.utils.performOAuthFlowAndGetTokens({
origin,
endpoint,
clientId: this.clientId
});
}

/**
Expand Down Expand Up @@ -325,7 +333,7 @@ <h1 class="page-title">index.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Thu Jan 09 2020 15:52:52 GMT-0600 (Central Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Tue Jul 21 2020 11:34:54 GMT-0500 (Central Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
5 changes: 3 additions & 2 deletions sample/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
let tokens;
try {
await appID.init({
clientId: '<SPA_CLIENT_ID>',
discoveryEndpoint: '<WELL_KNOWN_ENDPOINT>'
clientId: '6757117a-4715-4f86-af8e-c9437de0cb86',
// discoveryEndpoint: 'https://eu-gb.appid.test.cloud.ibm.com/oauth/v4/d28b6a9a-f34c-4fcf-972b-5e957f029650/.well-known/openid-configuration'
discoveryEndpoint: 'http://localhost:6002/oauth/v4/d28b6a9a-f34c-4fcf-972b-5e957f029650/.well-known/openid-configuration'
});
} catch (e) {
console.error(e);
Expand Down

0 comments on commit 2b898dd

Please sign in to comment.