@azure/msal-node 1.3.3 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -1,6 +1,41 @@
1
1
  {
2
2
  "name": "@azure/msal-node",
3
3
  "entries": [
4
+ {
5
+ "date": "Tue, 07 Dec 2021 00:17:01 GMT",
6
+ "tag": "@azure/msal-node_v1.4.0",
7
+ "version": "1.4.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "janutter@microsoft.com",
12
+ "package": "@azure/msal-node",
13
+ "commit": "4741b6c3a6a3dd58feefde93c095c05e1eca5e03",
14
+ "comment": "Add support for hybrid spa flow #3478"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@azure/msal-node",
19
+ "comment": "Bump @azure/msal-common to v5.2.0",
20
+ "commit": "d7c209f7aa3ae4380a77a31ff1319fbf7201ae45"
21
+ }
22
+ ],
23
+ "none": [
24
+ {
25
+ "author": "kamausamuel11@gmail.com",
26
+ "package": "@azure/msal-node",
27
+ "commit": "8259de7520d2940d290332cd03c5b8babeb0966e",
28
+ "comment": "deps: npm audit fix msal-node"
29
+ },
30
+ {
31
+ "author": "thomas.norling@microsoft.com",
32
+ "package": "@azure/msal-node",
33
+ "commit": "02dbd9172368bfc69e4a47f01a3ada0b96345c81",
34
+ "comment": "Package.json updates"
35
+ }
36
+ ]
37
+ }
38
+ },
4
39
  {
5
40
  "date": "Mon, 01 Nov 2021 23:53:22 GMT",
6
41
  "tag": "@azure/msal-node_v1.3.3",
package/CHANGELOG.md CHANGED
@@ -1,9 +1,18 @@
1
1
  # Change Log - @azure/msal-node
2
2
 
3
- This log was last generated on Mon, 01 Nov 2021 23:53:22 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 07 Dec 2021 00:17:01 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.4.0
8
+
9
+ Tue, 07 Dec 2021 00:17:01 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Add support for hybrid spa flow #3478 (janutter@microsoft.com)
14
+ - Bump @azure/msal-common to v5.2.0
15
+
7
16
  ## 1.3.3
8
17
 
9
18
  Mon, 01 Nov 2021 23:53:22 GMT
package/README.md CHANGED
@@ -112,6 +112,7 @@ AAD samples:
112
112
  - [username-password](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/username-password): Web application using OAuth 2.0 resource owner password credentials (ROPC) flow to acquire a token for a web API.
113
113
  - [ElectronTestApp](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ElectronTestApp): Electron desktop application using OAuth 2.0 auth code with PKCE flow to acquire a token for a web API such as Microsoft Graph.
114
114
  - [ExpressTestApp](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-node-samples/ExpressTestApp): Express.js MVC web application using OAuth 2.0 auth code with PKCE flow to acquire a token for a web API such as Microsoft Graph.
115
+ - [Hybrid Spa Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/HybridSample): Sample demonstrating how to use `enableSpaAuthorizationCode` to perform SSO for applications that leverage server-side and client-side authentication using MSAL Browser and MSAL Node.
115
116
 
116
117
  B2C samples:
117
118
 
@@ -1522,7 +1522,7 @@ class TokenCache {
1522
1522
 
1523
1523
  /* eslint-disable header/header */
1524
1524
  const name = "@azure/msal-node";
1525
- const version = "1.3.3";
1525
+ const version = "1.4.0";
1526
1526
 
1527
1527
  /*
1528
1528
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1970,13 +1970,13 @@ class ClientAssertion {
1970
1970
  const issuedAt = msalCommon.TimeUtils.nowSeconds();
1971
1971
  this.expirationTime = issuedAt + 600;
1972
1972
  const header = {
1973
- [JwtConstants.ALGORITHM]: JwtConstants.RSA_256,
1974
- [JwtConstants.X5T]: EncodingUtils.base64EncodeUrl(this.thumbprint, "hex")
1973
+ alg: JwtConstants.RSA_256,
1974
+ x5t: EncodingUtils.base64EncodeUrl(this.thumbprint, "hex")
1975
1975
  };
1976
1976
 
1977
1977
  if (this.publicCertificate) {
1978
1978
  Object.assign(header, {
1979
- [JwtConstants.X5C]: this.publicCertificate
1979
+ x5c: this.publicCertificate
1980
1980
  });
1981
1981
  }
1982
1982
 
@@ -1989,7 +1989,7 @@ class ClientAssertion {
1989
1989
  [JwtConstants.JWT_ID]: cryptoProvider.createNewGuid()
1990
1990
  };
1991
1991
  this.jwt = jsonwebtoken.sign(payload, this.privateKey, {
1992
- header: header
1992
+ header
1993
1993
  });
1994
1994
  return this.jwt;
1995
1995
  }