Skip to content

Commit

Permalink
Update MSAL browser and node library versions (#670)
Browse files Browse the repository at this point in the history
* Update msal browser and node versions

* update msal browser and node versions.
  • Loading branch information
davidchesnut authored Feb 6, 2024
1 parent deab21d commit 4f6da43
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 42 deletions.
33 changes: 16 additions & 17 deletions Samples/auth/Office-Add-in-NodeJS-SSO/Begin/package-lock.json

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

2 changes: 1 addition & 1 deletion Samples/auth/Office-Add-in-NodeJS-SSO/Begin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"morgan": "~1.10.0",
"node-fetch": "^2.6.7",
"pug": "^3.0.2",
"@azure/msal-node": "1.18.4",
"@azure/msal-node": "2.6.2",
"jwks-rsa": "^2.0.5",
"uuid": "^8.3.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />

<!-- msal.min.js can be used in the place of msal.js; included msal.js to make debug easy -->
<script id="load-msal" src="https://alcdn.msauth.net/browser/2.15.0/js/msal-browser.js"
integrity="sha384-dFzMiVGB5HpWZ+5w5VSif6jhWfNeplSw9ACYmQKZcY2azuT9kCxVWVI9HyfGdkHV"
crossorigin="anonymous"></script>

<script id="load-msal" src="https://alcdn.msauth.net/browser/2.35.0/js/msal-browser.js"
integrity="sha384-+8A1rifuHuJxJgQn6UCxGgmo6Q2SvIeEAqtPOsXCpi0DpqZLtuDhxxnqjJZw/1ve"
crossorigin="anonymous"></script>
<!-- Office JavaScript API -->
<script type="text/javascript" src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const myMSALObj = new msal.PublicClientApplication(msalConfig);
Office.initialize = async function () {
if (Office.context.ui.messageParent) {
try {
await myMSALObj.initialize();

const response = await myMSALObj.handleRedirectPromise();
handleResponse(response);
} catch (error) {
Expand Down
33 changes: 16 additions & 17 deletions Samples/auth/Office-Add-in-NodeJS-SSO/Complete/package-lock.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"morgan": "~1.10.0",
"node-fetch": "^2.6.7",
"pug": "^3.0.2",
"@azure/msal-node": "1.18.4",
"@azure/msal-node": "2.6.2",
"jwks-rsa": "^2.0.5",
"uuid": "^8.3.1"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />

<!-- msal.min.js can be used in the place of msal.js; included msal.js to make debug easy -->
<script id="load-msal" src="https://alcdn.msauth.net/browser/2.15.0/js/msal-browser.js"
integrity="sha384-dFzMiVGB5HpWZ+5w5VSif6jhWfNeplSw9ACYmQKZcY2azuT9kCxVWVI9HyfGdkHV"
<script id="load-msal" src="https://alcdn.msauth.net/browser/2.35.0/js/msal-browser.js"
integrity="sha384-+8A1rifuHuJxJgQn6UCxGgmo6Q2SvIeEAqtPOsXCpi0DpqZLtuDhxxnqjJZw/1ve"
crossorigin="anonymous"></script>

<!-- Office JavaScript API -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const myMSALObj = new msal.PublicClientApplication(msalConfig);
Office.initialize = async function () {
if (Office.context.ui.messageParent) {
try {
await myMSALObj.initialize();

const response = await myMSALObj.handleRedirectPromise();
handleResponse(response);
} catch (error) {
Expand Down

0 comments on commit 4f6da43

Please sign in to comment.