@azure/msal-common 4.5.0 → 4.5.1

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.
Files changed (116) hide show
  1. package/CHANGELOG.json +15 -0
  2. package/LICENSE +21 -21
  3. package/README.md +61 -61
  4. package/changelog.md +398 -390
  5. package/dist/_virtual/_tslib.js +1 -1
  6. package/dist/account/AuthToken.js +7 -7
  7. package/dist/account/AuthToken.js.map +1 -1
  8. package/dist/account/CcsCredential.js +1 -1
  9. package/dist/account/CcsCredential.js.map +1 -1
  10. package/dist/account/ClientInfo.js +10 -10
  11. package/dist/account/ClientInfo.js.map +1 -1
  12. package/dist/authority/Authority.js +53 -53
  13. package/dist/authority/Authority.js.map +1 -1
  14. package/dist/authority/AuthorityFactory.js +9 -9
  15. package/dist/authority/AuthorityFactory.js.map +1 -1
  16. package/dist/authority/AuthorityType.js +1 -1
  17. package/dist/authority/AuthorityType.js.map +1 -1
  18. package/dist/authority/CloudInstanceDiscoveryResponse.js +1 -1
  19. package/dist/authority/CloudInstanceDiscoveryResponse.js.map +1 -1
  20. package/dist/authority/OpenIdConfigResponse.js +1 -1
  21. package/dist/authority/OpenIdConfigResponse.js.map +1 -1
  22. package/dist/authority/ProtocolMode.js +1 -1
  23. package/dist/authority/ProtocolMode.js.map +1 -1
  24. package/dist/authority/RegionDiscovery.js +9 -9
  25. package/dist/authority/RegionDiscovery.js.map +1 -1
  26. package/dist/cache/CacheManager.js +47 -47
  27. package/dist/cache/CacheManager.js.map +1 -1
  28. package/dist/cache/entities/AccessTokenEntity.js +11 -11
  29. package/dist/cache/entities/AccessTokenEntity.js.map +1 -1
  30. package/dist/cache/entities/AccountEntity.js +14 -14
  31. package/dist/cache/entities/AccountEntity.js.map +1 -1
  32. package/dist/cache/entities/AppMetadataEntity.js +1 -1
  33. package/dist/cache/entities/AppMetadataEntity.js.map +1 -1
  34. package/dist/cache/entities/AuthorityMetadataEntity.js +5 -5
  35. package/dist/cache/entities/AuthorityMetadataEntity.js.map +1 -1
  36. package/dist/cache/entities/CacheRecord.js +1 -1
  37. package/dist/cache/entities/CacheRecord.js.map +1 -1
  38. package/dist/cache/entities/CredentialEntity.js +5 -5
  39. package/dist/cache/entities/CredentialEntity.js.map +1 -1
  40. package/dist/cache/entities/IdTokenEntity.js +3 -3
  41. package/dist/cache/entities/IdTokenEntity.js.map +1 -1
  42. package/dist/cache/entities/RefreshTokenEntity.js +3 -3
  43. package/dist/cache/entities/RefreshTokenEntity.js.map +1 -1
  44. package/dist/cache/entities/ServerTelemetryEntity.js +1 -1
  45. package/dist/cache/entities/ServerTelemetryEntity.js.map +1 -1
  46. package/dist/cache/entities/ThrottlingEntity.js +1 -1
  47. package/dist/cache/entities/ThrottlingEntity.js.map +1 -1
  48. package/dist/cache/persistence/TokenCacheContext.js +3 -3
  49. package/dist/cache/persistence/TokenCacheContext.js.map +1 -1
  50. package/dist/client/AuthorizationCodeClient.js +32 -32
  51. package/dist/client/AuthorizationCodeClient.js.map +1 -1
  52. package/dist/client/BaseClient.js +11 -11
  53. package/dist/client/BaseClient.js.map +1 -1
  54. package/dist/client/ClientCredentialClient.js +17 -17
  55. package/dist/client/ClientCredentialClient.js.map +1 -1
  56. package/dist/client/DeviceCodeClient.js +25 -25
  57. package/dist/client/DeviceCodeClient.js.map +1 -1
  58. package/dist/client/OnBehalfOfClient.js +19 -19
  59. package/dist/client/OnBehalfOfClient.js.map +1 -1
  60. package/dist/client/RefreshTokenClient.js +25 -25
  61. package/dist/client/RefreshTokenClient.js.map +1 -1
  62. package/dist/client/SilentFlowClient.js +27 -27
  63. package/dist/client/SilentFlowClient.js.map +1 -1
  64. package/dist/client/UsernamePasswordClient.js +11 -11
  65. package/dist/client/UsernamePasswordClient.js.map +1 -1
  66. package/dist/config/ClientConfiguration.js +6 -6
  67. package/dist/config/ClientConfiguration.js.map +1 -1
  68. package/dist/crypto/ICrypto.js +8 -8
  69. package/dist/crypto/ICrypto.js.map +1 -1
  70. package/dist/crypto/PopTokenGenerator.js +9 -9
  71. package/dist/crypto/PopTokenGenerator.js.map +1 -1
  72. package/dist/error/AuthError.js +3 -3
  73. package/dist/error/AuthError.js.map +1 -1
  74. package/dist/error/ClientAuthError.js +3 -3
  75. package/dist/error/ClientAuthError.js.map +1 -1
  76. package/dist/error/ClientConfigurationError.js +3 -3
  77. package/dist/error/ClientConfigurationError.js.map +1 -1
  78. package/dist/error/InteractionRequiredAuthError.js +3 -3
  79. package/dist/error/InteractionRequiredAuthError.js.map +1 -1
  80. package/dist/error/ServerError.js +3 -3
  81. package/dist/error/ServerError.js.map +1 -1
  82. package/dist/index.cjs.js +70 -29
  83. package/dist/index.cjs.js.map +1 -1
  84. package/dist/index.js +29 -29
  85. package/dist/logger/Logger.js +7 -7
  86. package/dist/logger/Logger.js.map +1 -1
  87. package/dist/network/INetworkModule.js +4 -4
  88. package/dist/network/INetworkModule.js.map +1 -1
  89. package/dist/network/NetworkManager.js +8 -8
  90. package/dist/network/NetworkManager.js.map +1 -1
  91. package/dist/network/ThrottlingUtils.js +4 -4
  92. package/dist/network/ThrottlingUtils.js.map +1 -1
  93. package/dist/packageMetadata.d.ts +1 -1
  94. package/dist/packageMetadata.js +2 -2
  95. package/dist/packageMetadata.js.map +1 -1
  96. package/dist/request/RequestParameterBuilder.js +18 -18
  97. package/dist/request/RequestParameterBuilder.js.map +1 -1
  98. package/dist/request/RequestValidator.js +10 -10
  99. package/dist/request/RequestValidator.js.map +1 -1
  100. package/dist/request/ScopeSet.js +14 -14
  101. package/dist/request/ScopeSet.js.map +1 -1
  102. package/dist/response/ResponseHandler.js +61 -61
  103. package/dist/response/ResponseHandler.js.map +1 -1
  104. package/dist/telemetry/server/ServerTelemetryManager.js +13 -13
  105. package/dist/telemetry/server/ServerTelemetryManager.js.map +1 -1
  106. package/dist/url/UrlString.js +24 -24
  107. package/dist/url/UrlString.js.map +1 -1
  108. package/dist/utils/Constants.js +1 -1
  109. package/dist/utils/Constants.js.map +1 -1
  110. package/dist/utils/ProtocolUtils.js +13 -13
  111. package/dist/utils/ProtocolUtils.js.map +1 -1
  112. package/dist/utils/StringUtils.js +5 -5
  113. package/dist/utils/StringUtils.js.map +1 -1
  114. package/dist/utils/TimeUtils.js +1 -1
  115. package/dist/utils/TimeUtils.js.map +1 -1
  116. package/package.json +1 -1
package/changelog.md CHANGED
@@ -1,9 +1,17 @@
1
1
  # Change Log - @azure/msal-common
2
2
 
3
- This log was last generated on Thu, 22 Jul 2021 22:50:22 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 02 Aug 2021 23:19:21 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 4.5.1
8
+
9
+ Mon, 02 Aug 2021 23:19:21 GMT
10
+
11
+ ### Patches
12
+
13
+ - Fix double encoding state #3903 (bmahal@microsoft.com)
14
+
7
15
  ## 4.5.0
8
16
 
9
17
  Thu, 22 Jul 2021 22:50:22 GMT
@@ -19,393 +27,393 @@ Thu, 22 Jul 2021 22:50:22 GMT
19
27
  - Add constant for active account cache key #3755 (thomas.norling@microsoft.com)
20
28
  - Fix double query string for logout endpoint #3814 (thomas.norling@microsoft.com)
21
29
 
22
- ## 4.4.0
23
-
24
- Mon, 28 Jun 2021 23:39:48 GMT
25
-
26
- ### Minor changes
27
-
28
- - Add CCS parameters to headers or form_data #3636 (prkanher@microsoft.com)
29
- - Add correlationId to log messages #3601 (joarroyo@microsoft.com)
30
-
31
- ### Patches
32
-
33
- - Export ServerAuthorizationTokenResponse type #3657 (thomas.norling@microsoft.com)
34
- - Discard tokens cached after current time #3786 (thomas.norling@microsoft.com)
35
- - Remove input params from Empty Scopes error constructors #3654 (thomas.norling@microsoft.com)
36
- - feat: modify the access token filter #3375 (samuelkamau@microsoft.com)
37
- - fix: fix device code polling bug (samuelkamau@microsoft.com)
38
-
39
- ## 4.3.0
40
-
41
- Wed, 12 May 2021 18:35:03 GMT
42
-
43
- ### Minor changes
44
-
45
- - add support for regional authorities (samuelkamau@microsoft.com)
46
-
47
- ### Patches
48
-
49
- - Fix double query string when authority endpoints contain query strings #3620 (thomas.norling@microsoft.com)
50
- - change msal-browser/msal-common to preserveModules to enable treeshaking #3300 (oo.thomas96@gmail.com)
51
- - Revert expiresOn type to make it nullable #3557 (hemoral@microsoft.com)
52
- - Add logLevel Trace to Logger #3589 (joarroyo@microsoft.com)
53
- - Throw untrustedAuthority error if discovery endpoint returns error in response body #3572 (thomas.norling@microsoft.com)
54
- - Add claims comparison to accountInfoIsEqual function #3527 (thomas.norling@microsoft.com)
55
- - Add check for empty object string in claims request parameter #3579 (prkanher@microsoft.com)
56
-
57
- ## 4.2.1
58
-
59
- Thu, 22 Apr 2021 23:26:08 GMT
60
-
61
- ### Patches
62
-
63
- - Fix typing for expiresOn field (#2994) (prkanher@microsoft.com)
64
- - Move /token headers to POST body to avoid OPTIONS request (#3094) (thomas.norling@microsoft.com)
65
- - Change "ts" type from string to number in SignedHttpRequest #3474 (prkanher@microsoft.com)
66
- - Add .browserslistrc #3471 (thomas.norling@microsoft.com)
67
-
68
- ## 4.2.0
69
-
70
- Wed, 14 Apr 2021 18:39:53 GMT
71
-
72
- ### Minor changes
73
-
74
- - Adding the refresh_in feature for msal.js #3005 (prkanher@microsoft.com)
75
- - Add support for AccessToken_With_AuthScheme credential type #3426 (hectormgdev@gmail.com)
76
-
77
- ### Patches
78
-
79
- - Make SHR parameters optional #3320 (hemoral@microsoft.com)
80
-
81
- ## 4.1.1
82
-
83
- Wed, 31 Mar 2021 22:25:57 GMT
84
-
85
- ### Patches
86
-
87
- - Update StringUtils.matchPattern to account for queries in string #3307 (joarroyo@microsoft.com)
88
- - Adds tokenQueryParameters request param #3309 (thomas.norling@microsoft.com)
89
- - Ignore account hints when prompt=select_account #3315 (thomas.norling@microsoft.com)
90
-
91
- ## 4.1.0
92
-
93
- Wed, 24 Mar 2021 22:55:46 GMT
94
-
95
- ### Minor changes
96
-
97
- - Add client claims support for SHRs (#3089) (hemoral@microsoft.com)
98
-
99
- ### Patches
100
-
101
- - Properly handle expiration timestamps when returned as strings (janutter@microsoft.com)
102
- - Add null as possible type for account on EndSessionRequest #3044 (thomas.norling@microsoft.com)
103
-
104
- ## 4.0.3
105
-
106
- Mon, 15 Mar 2021 23:45:17 GMT
107
-
108
- ### Patches
109
-
110
- - Use sid from account when available #3147 (prkanher@microsoft.com)
111
- - Add network error for failed requests (#3146) (thomas.norling@microsoft.com)
112
-
113
- ## 4.0.2
114
-
115
- Wed, 03 Mar 2021 21:47:05 GMT
116
-
117
- ### Patches
118
-
119
- - Fix OIDC Scopes Caching Issue (#3065) (prkanher@microsoft.com)
120
-
121
- ## 4.0.1
122
-
123
- Thu, 18 Feb 2021 00:34:32 GMT
124
-
125
- ### Patches
126
-
127
- - Clarify Device Code Timeout units (#3031) (hemoral@microsoft.com)
128
-
129
- ## 4.0.0
130
-
131
- Tue, 09 Feb 2021 01:48:22 GMT
132
-
133
- ### Major changes
134
-
135
- - Add API Extractor for msal-node (sameera.gajjarapu@microsoft.com)
136
-
137
- ### Patches
138
-
139
- - Fix version.json import errors (#2993) (thomas.norling@microsoft.com)
140
- - Setting postLogoutRedirectUri as null will disable post logout redirect (janutter@microsoft.com)
141
- - Ignore OIDC scopes during cache lookup or replacement (#2969) (prkanher@microsoft.com)
142
-
143
- ## 3.1.0
144
-
145
- Tue, 02 Feb 2021 01:56:47 GMT
146
-
147
- ### Minor changes
148
-
149
- - Add wrapper SKU and version to current telemetry header (#2845) (thomas.norling@microsoft.com)
150
-
151
- ### Patches
152
-
153
- - Fix token timestamp calculation (prkanher@microsoft.com)
154
- - Fix B2C policy switching (#2949) (thomas.norling@microsoft.com)
155
- - Get package version from version.json (#2915) (thomas.norling@microsoft.com)
156
-
157
- ## 3.0.0
158
-
159
- Thu, 21 Jan 2021 21:48:01 GMT
160
-
161
- ### Major changes
162
-
163
- - Authority metadata caching (#2758) (thomas.norling@microsoft.com)
164
-
165
- ## 2.1.0
166
-
167
- Tue, 12 Jan 2021 00:51:26 GMT
168
-
169
- ### Minor changes
170
-
171
- - Add interface stubs (#2792) (thomas.norling@microsoft.com)
172
-
173
- ### Patches
174
-
175
- - Adding account info equality check function (#2728) (prkanher@microsoft.com)
176
- - Adding device code timeout to the device code request(#2656) (samuel.kamau@microsoft.com)
177
-
178
- ## 2.0.0
179
-
180
- Mon, 07 Dec 2020 22:19:03 GMT
181
-
182
- ### Major changes
183
-
184
- - Enable StrictNullChecks (#2602) (thomas.norling@microsoft.com)
185
- - Rename request types and change required fields (#2512) (thomas.norling@microsoft.com)
186
-
187
- ### Minor changes
188
-
189
- - Add clone to Logger (#2670) (joarroyo@microsoft.com)
190
- - Enable the instance_aware flow (#1804) (prkanher@microsoft.com)
191
- - Support id_token_hint on logout request (#2587) (thomas.norling@microsoft.com)
192
-
193
- ### Patches
194
-
195
- - Fix login loop with empty query string (#2707) (thomas.norling@microsoft.com)
196
- - Expose idTokenClaims on AccountInfo (#2554) (janutter@microsoft.com)
197
- - Add matchPattern string util for wildcard matching for urls (#2678) (janutter@microsoft.com)
198
- - fix: added missing async (AzureAD/microsoft-authentication-library-for-js#2652) (patrick@ruhkopf.me)
199
- - Log messages contain package name and version (#2589) (thomas.norling@microsoft.com)
200
-
201
- ## 1.7.2
202
-
203
- Wed, 11 Nov 2020 23:33:20 GMT
204
-
205
- ### Patches
206
-
207
- - Add getAbsolutePath helper function to UrlString class (#2560) (thomas.norling@microsoft.com)
208
-
209
- ## 1.7.1
210
-
211
- Tue, 10 Nov 2020 01:48:44 GMT
212
-
213
- ### Patches
214
-
215
- - Enhance lookup for IdTokens/AppMetadata (#2530) (sameera.gajjarapu@microsoft.com)
216
- - Add LocalAccountId for ADFS usecases (#2573) (sameera.gajjarapu@microsoft.com)
217
-
218
- ## 1.7.0
219
-
220
- Sat, 07 Nov 2020 01:50:14 GMT
221
-
222
- ### Minor changes
223
-
224
- - Implement Password Grant Flow (#2204) (sameera.gajjarapu@microsoft.com)
225
- - Fixing a bug and adding `localAccountId` in AccountInfo interface (#2516) (sameera.gajjarapu@microsoft.com)
226
-
227
- ### Patches
228
-
229
- - Mandate localAccount in AccountInfo (sameera.gajjarapu@microsoft.com)
230
- - Filtered lookup of IdTokens, AppMetadata; Error handling in Node Storage (#2530) (sameera.gajjarapu@microsoft.com)
231
-
232
- ## 1.6.3
233
-
234
- Mon, 26 Oct 2020 21:00:29 GMT
235
-
236
- ### Patches
237
-
238
- - Fix ServerTelemetry maxErrorToSend bug (#2491) (thomas.norling@microsoft.com)
239
- - Add missing default headers to device code (sameera.gajjarapu@microsoft.com)
240
- - msal-browser and msal-node cache Interfaces to msal-common updated (#2415) (sameera.gajjarapu@microsoft.com)
241
-
242
- ## 1.6.2
243
-
244
- Tue, 20 Oct 2020 23:47:28 GMT
245
-
246
- ### Patches
247
-
248
- - Adds support for any OIDC-compliant authority (#2389). (jamckenn@microsoft.com)
249
-
250
- ## 1.6.1
251
-
252
- Thu, 15 Oct 2020 00:49:18 GMT
253
-
254
- ### Patches
255
-
256
- - Removing unused errors in msal-common and fixing possible build errors in @azure/msal-common@1.6.0 (#2432) (sameera.gajjarapu@microsoft.com)
257
-
258
- ## 1.6.0
259
-
260
- Wed, 14 Oct 2020 23:45:07 GMT
261
-
262
- ### Minor changes
263
-
264
- - Add support for persistence cache plugin (#2348) (sameera.gajjarapu@microsoft.com)
265
-
266
- ### Patches
267
-
268
- - Add Telemetry header size limit (#2223) (thomas.norling@microsoft.com)
269
-
270
- ## 1.5.0
271
-
272
- Fri, 02 Oct 2020 17:42:35 GMT
273
-
274
- ### Minor changes
275
-
276
- - Implementation of Access Token Proof-of-Possession Flow (#2151, #2153, #2154, #2209, #2289) (prkanher@microsoft.com)
277
-
278
- ## 1.4.0
279
-
280
- Wed, 23 Sep 2020 21:13:48 GMT
281
-
282
- ### Minor changes
283
-
284
- - FOCI - Family of Client IDs feature (#2201) (sameera.gajjarapu@microsoft.com)
285
-
286
- ### Patches
287
-
288
- - Remove null in function return types to be compatible with ICacheManager.ts (#2335) (sameera.gajjarapu@microsoft.com)
289
- - Scopes stored case sensitive, compared case insensitive (#2302) (sameera.gajjarapu@microsoft.com)
290
-
291
- ## 1.3.0
292
-
293
- Thu, 17 Sep 2020 23:16:22 GMT
294
-
295
- ### Minor changes
296
-
297
- - Add support for On-behalf-of flow (#2157) (sagonzal@microsoft.com)
298
- - ValidCacheType adds ServerTelemetryEntity (sameera.gajjarapu@microsoft.com)
299
- - Added client-side throttling to enhance server stability (#1907) (jamckenn@microsoft.com)
300
-
301
- ### Patches
302
-
303
- - Add name field to AccountInfo (#2288) (jamckenn@microsoft.com)
304
- - Realm should fallback to an empty string for non AAD scenarios (sameera.gajjarapu@microsoft.com)
305
- - Add default scopes in all requests and ignore in cache lookups (#2267) (thomas.norling@microsoft.com)
306
- - Move refreshToken API to RefreshTokenClient (#2264) (thomas.norling@microsoft.com)
307
- - Track Suberrors in Telemetry (#1921) (thomas.norling@microsoft.com)
308
- - Separate cache lookup from token refresh (#2189) (thomas.norling@microsoft.com)
309
-
310
- ## 1.2.0
311
-
312
- Tue, 25 Aug 2020 00:40:45 GMT
313
-
314
- ### Minor changes
315
-
316
- - Client Capabilities Support (#2169) (thomas.norling@microsoft.com)
317
- - Add support for acquiring tokens with client credentials grant (sagonzal@microsoft.com)
318
-
319
- ### Patches
320
-
321
- - ignore offline_access in scopes lookup (sameera.gajjarapu@microsoft.com)
322
- - Adds checks for cache entities (sameera.gajjarapu@microsoft.com)
323
- - Add claims request to /token calls (#2138) (thomas.norling@microsoft.com)
324
- - Fix Telemetry cacheHit Bug (#2170) (thomas.norling@microsoft.com)
325
- - Get username from emails claim in B2C scenarios (#2114) (thomas.norling@microsoft.com)
326
- - Update POST header to type Record (#2128) (thomas.norling@microsoft.com)
327
-
328
- ## 1.1.1
329
-
330
- Thu, 13 Aug 2020 02:20:48 GMT
331
-
332
- ### Patches
333
-
334
- - knownAuthorities enhancements (#2106) (thomas.l.norling@gmail.com)
335
- - Update typing of IdTokenClaims (#2105) (hemoral@microsoft.com)
336
- - Fix hash parsing issue from #2118 and back button cache clearing (#2129) (prkanher@microsoft.com)
337
-
338
- # 1.1.0
339
- ## Breaking Changes
340
- - None
341
-
342
- ## Features and Fixes
343
- - Decode state from URI Encoding before comparing (#2049)
344
- - getAllAccounts() returns empty array instead of `null` (#2059)
345
- - Updated the `UrlString.canonicalizeUri()` API to be static (#2078)
346
- - Add sid to `AuthorizationUrlRequest` and as part of request parameters sent to server (#2030)
347
- - Enable server telemetry headers to be formatted and sent in every request (#1917)
348
- - Enable platform level state information to be sent and read through the request state (#2045)
349
- - Add the confidential client flow (#2023)
350
-
351
- # 1.0.0
352
- ## Breaking Changes
353
- - None
354
-
355
- ## Features and Fixes
356
- - Fixed an issue where scopes were being made lower case before being sent to the service (#1961)
357
- - Fix an issue where token values were replaced with undefined if not sent by server (#1946)
358
- - Fix an issue where cache lookup for accounts was not working correctly (#1919)
359
- - Removed TelemetryOptions from msal-common since they were unused (#1983)
360
- - Add a response handler for the device code flow (#1947)
361
-
362
- # 1.0.0-beta.4
363
- ## Breaking Changes
364
- - None
365
-
366
- ## Features and Fixes
367
- - Fix an issue where state may be encoded twice on the server-side (#1852)
368
- - Fix an issue where extraScopesToConsent was not appending scopes correctly (#1854)
369
- - Fix an issue where the expiration was not being calculated correctly (#1860)
370
- - Add correlationId to all requests (#1868)
371
-
372
- # 1.0.0-beta.3
373
- ## Breaking Changes
374
- - `Request` update in msal-common (#1682, #1771)
375
- - AccountInfo interface (#1789)
376
- - Removal of SPA Client (#1793)
377
- - Unified Cache support (#1444, #1471, #1519, #1520, #1522, #1609, #1622, #1624, #1655, #1680, #1762)
378
-
379
- ## Features and Fixes
380
- - Initialization of B2cTrustedHostList (#1646)
381
- - SilentFlow support (#1711)
382
- - Utilize `Scopeset` across all libraries (#1770)
383
- - `state` support in msal-common (#1790)
384
- - EndSessionRequest (#1802)
385
-
386
- # 1.0.0-beta.2
387
- - Fixed an issue where types were not being exported from the correct location (#1613)
388
- - Fixed an issue where system configuration values were being overwritten with `undefined` (#1631)
389
- - Added support for sub-error codes from the eSTS service (#1533)
390
-
391
- # 1.0.0-beta.1
392
- - Fixed an issue where types are not exported correctly (#1517)
393
- - Logger class is now exported (#1486)
394
- - Added knownAuthorities to support B2C authorities (#1416)
395
- - Refactored authority classes for B2C use cases (#1424)
396
- - Synced all classes and objects to work for both @azure/msal-browser and @azure/msal-node (#1552)
397
- - Merged configuration for node and browser classes (#1575)
398
- - Fixed issue with caching for multiple resources (#1553)
399
- - Adding support for node classes
400
- - Refresh token client (#1496)
401
- - Device code client (#1550, #1434)
402
- - Authorization Code Client (#1434)
403
-
404
- # 1.0.0-beta.0
405
- - Fully functioning project completed
406
- - Build and test pipelines in place
407
- - Added bug fixes from unit testing
408
- - Added docs and samples
409
-
410
- # 0.0.1
30
+ ## 4.4.0
31
+
32
+ Mon, 28 Jun 2021 23:39:48 GMT
33
+
34
+ ### Minor changes
35
+
36
+ - Add CCS parameters to headers or form_data #3636 (prkanher@microsoft.com)
37
+ - Add correlationId to log messages #3601 (joarroyo@microsoft.com)
38
+
39
+ ### Patches
40
+
41
+ - Export ServerAuthorizationTokenResponse type #3657 (thomas.norling@microsoft.com)
42
+ - Discard tokens cached after current time #3786 (thomas.norling@microsoft.com)
43
+ - Remove input params from Empty Scopes error constructors #3654 (thomas.norling@microsoft.com)
44
+ - feat: modify the access token filter #3375 (samuelkamau@microsoft.com)
45
+ - fix: fix device code polling bug (samuelkamau@microsoft.com)
46
+
47
+ ## 4.3.0
48
+
49
+ Wed, 12 May 2021 18:35:03 GMT
50
+
51
+ ### Minor changes
52
+
53
+ - add support for regional authorities (samuelkamau@microsoft.com)
54
+
55
+ ### Patches
56
+
57
+ - Fix double query string when authority endpoints contain query strings #3620 (thomas.norling@microsoft.com)
58
+ - change msal-browser/msal-common to preserveModules to enable treeshaking #3300 (oo.thomas96@gmail.com)
59
+ - Revert expiresOn type to make it nullable #3557 (hemoral@microsoft.com)
60
+ - Add logLevel Trace to Logger #3589 (joarroyo@microsoft.com)
61
+ - Throw untrustedAuthority error if discovery endpoint returns error in response body #3572 (thomas.norling@microsoft.com)
62
+ - Add claims comparison to accountInfoIsEqual function #3527 (thomas.norling@microsoft.com)
63
+ - Add check for empty object string in claims request parameter #3579 (prkanher@microsoft.com)
64
+
65
+ ## 4.2.1
66
+
67
+ Thu, 22 Apr 2021 23:26:08 GMT
68
+
69
+ ### Patches
70
+
71
+ - Fix typing for expiresOn field (#2994) (prkanher@microsoft.com)
72
+ - Move /token headers to POST body to avoid OPTIONS request (#3094) (thomas.norling@microsoft.com)
73
+ - Change "ts" type from string to number in SignedHttpRequest #3474 (prkanher@microsoft.com)
74
+ - Add .browserslistrc #3471 (thomas.norling@microsoft.com)
75
+
76
+ ## 4.2.0
77
+
78
+ Wed, 14 Apr 2021 18:39:53 GMT
79
+
80
+ ### Minor changes
81
+
82
+ - Adding the refresh_in feature for msal.js #3005 (prkanher@microsoft.com)
83
+ - Add support for AccessToken_With_AuthScheme credential type #3426 (hectormgdev@gmail.com)
84
+
85
+ ### Patches
86
+
87
+ - Make SHR parameters optional #3320 (hemoral@microsoft.com)
88
+
89
+ ## 4.1.1
90
+
91
+ Wed, 31 Mar 2021 22:25:57 GMT
92
+
93
+ ### Patches
94
+
95
+ - Update StringUtils.matchPattern to account for queries in string #3307 (joarroyo@microsoft.com)
96
+ - Adds tokenQueryParameters request param #3309 (thomas.norling@microsoft.com)
97
+ - Ignore account hints when prompt=select_account #3315 (thomas.norling@microsoft.com)
98
+
99
+ ## 4.1.0
100
+
101
+ Wed, 24 Mar 2021 22:55:46 GMT
102
+
103
+ ### Minor changes
104
+
105
+ - Add client claims support for SHRs (#3089) (hemoral@microsoft.com)
106
+
107
+ ### Patches
108
+
109
+ - Properly handle expiration timestamps when returned as strings (janutter@microsoft.com)
110
+ - Add null as possible type for account on EndSessionRequest #3044 (thomas.norling@microsoft.com)
111
+
112
+ ## 4.0.3
113
+
114
+ Mon, 15 Mar 2021 23:45:17 GMT
115
+
116
+ ### Patches
117
+
118
+ - Use sid from account when available #3147 (prkanher@microsoft.com)
119
+ - Add network error for failed requests (#3146) (thomas.norling@microsoft.com)
120
+
121
+ ## 4.0.2
122
+
123
+ Wed, 03 Mar 2021 21:47:05 GMT
124
+
125
+ ### Patches
126
+
127
+ - Fix OIDC Scopes Caching Issue (#3065) (prkanher@microsoft.com)
128
+
129
+ ## 4.0.1
130
+
131
+ Thu, 18 Feb 2021 00:34:32 GMT
132
+
133
+ ### Patches
134
+
135
+ - Clarify Device Code Timeout units (#3031) (hemoral@microsoft.com)
136
+
137
+ ## 4.0.0
138
+
139
+ Tue, 09 Feb 2021 01:48:22 GMT
140
+
141
+ ### Major changes
142
+
143
+ - Add API Extractor for msal-node (sameera.gajjarapu@microsoft.com)
144
+
145
+ ### Patches
146
+
147
+ - Fix version.json import errors (#2993) (thomas.norling@microsoft.com)
148
+ - Setting postLogoutRedirectUri as null will disable post logout redirect (janutter@microsoft.com)
149
+ - Ignore OIDC scopes during cache lookup or replacement (#2969) (prkanher@microsoft.com)
150
+
151
+ ## 3.1.0
152
+
153
+ Tue, 02 Feb 2021 01:56:47 GMT
154
+
155
+ ### Minor changes
156
+
157
+ - Add wrapper SKU and version to current telemetry header (#2845) (thomas.norling@microsoft.com)
158
+
159
+ ### Patches
160
+
161
+ - Fix token timestamp calculation (prkanher@microsoft.com)
162
+ - Fix B2C policy switching (#2949) (thomas.norling@microsoft.com)
163
+ - Get package version from version.json (#2915) (thomas.norling@microsoft.com)
164
+
165
+ ## 3.0.0
166
+
167
+ Thu, 21 Jan 2021 21:48:01 GMT
168
+
169
+ ### Major changes
170
+
171
+ - Authority metadata caching (#2758) (thomas.norling@microsoft.com)
172
+
173
+ ## 2.1.0
174
+
175
+ Tue, 12 Jan 2021 00:51:26 GMT
176
+
177
+ ### Minor changes
178
+
179
+ - Add interface stubs (#2792) (thomas.norling@microsoft.com)
180
+
181
+ ### Patches
182
+
183
+ - Adding account info equality check function (#2728) (prkanher@microsoft.com)
184
+ - Adding device code timeout to the device code request(#2656) (samuel.kamau@microsoft.com)
185
+
186
+ ## 2.0.0
187
+
188
+ Mon, 07 Dec 2020 22:19:03 GMT
189
+
190
+ ### Major changes
191
+
192
+ - Enable StrictNullChecks (#2602) (thomas.norling@microsoft.com)
193
+ - Rename request types and change required fields (#2512) (thomas.norling@microsoft.com)
194
+
195
+ ### Minor changes
196
+
197
+ - Add clone to Logger (#2670) (joarroyo@microsoft.com)
198
+ - Enable the instance_aware flow (#1804) (prkanher@microsoft.com)
199
+ - Support id_token_hint on logout request (#2587) (thomas.norling@microsoft.com)
200
+
201
+ ### Patches
202
+
203
+ - Fix login loop with empty query string (#2707) (thomas.norling@microsoft.com)
204
+ - Expose idTokenClaims on AccountInfo (#2554) (janutter@microsoft.com)
205
+ - Add matchPattern string util for wildcard matching for urls (#2678) (janutter@microsoft.com)
206
+ - fix: added missing async (AzureAD/microsoft-authentication-library-for-js#2652) (patrick@ruhkopf.me)
207
+ - Log messages contain package name and version (#2589) (thomas.norling@microsoft.com)
208
+
209
+ ## 1.7.2
210
+
211
+ Wed, 11 Nov 2020 23:33:20 GMT
212
+
213
+ ### Patches
214
+
215
+ - Add getAbsolutePath helper function to UrlString class (#2560) (thomas.norling@microsoft.com)
216
+
217
+ ## 1.7.1
218
+
219
+ Tue, 10 Nov 2020 01:48:44 GMT
220
+
221
+ ### Patches
222
+
223
+ - Enhance lookup for IdTokens/AppMetadata (#2530) (sameera.gajjarapu@microsoft.com)
224
+ - Add LocalAccountId for ADFS usecases (#2573) (sameera.gajjarapu@microsoft.com)
225
+
226
+ ## 1.7.0
227
+
228
+ Sat, 07 Nov 2020 01:50:14 GMT
229
+
230
+ ### Minor changes
231
+
232
+ - Implement Password Grant Flow (#2204) (sameera.gajjarapu@microsoft.com)
233
+ - Fixing a bug and adding `localAccountId` in AccountInfo interface (#2516) (sameera.gajjarapu@microsoft.com)
234
+
235
+ ### Patches
236
+
237
+ - Mandate localAccount in AccountInfo (sameera.gajjarapu@microsoft.com)
238
+ - Filtered lookup of IdTokens, AppMetadata; Error handling in Node Storage (#2530) (sameera.gajjarapu@microsoft.com)
239
+
240
+ ## 1.6.3
241
+
242
+ Mon, 26 Oct 2020 21:00:29 GMT
243
+
244
+ ### Patches
245
+
246
+ - Fix ServerTelemetry maxErrorToSend bug (#2491) (thomas.norling@microsoft.com)
247
+ - Add missing default headers to device code (sameera.gajjarapu@microsoft.com)
248
+ - msal-browser and msal-node cache Interfaces to msal-common updated (#2415) (sameera.gajjarapu@microsoft.com)
249
+
250
+ ## 1.6.2
251
+
252
+ Tue, 20 Oct 2020 23:47:28 GMT
253
+
254
+ ### Patches
255
+
256
+ - Adds support for any OIDC-compliant authority (#2389). (jamckenn@microsoft.com)
257
+
258
+ ## 1.6.1
259
+
260
+ Thu, 15 Oct 2020 00:49:18 GMT
261
+
262
+ ### Patches
263
+
264
+ - Removing unused errors in msal-common and fixing possible build errors in @azure/msal-common@1.6.0 (#2432) (sameera.gajjarapu@microsoft.com)
265
+
266
+ ## 1.6.0
267
+
268
+ Wed, 14 Oct 2020 23:45:07 GMT
269
+
270
+ ### Minor changes
271
+
272
+ - Add support for persistence cache plugin (#2348) (sameera.gajjarapu@microsoft.com)
273
+
274
+ ### Patches
275
+
276
+ - Add Telemetry header size limit (#2223) (thomas.norling@microsoft.com)
277
+
278
+ ## 1.5.0
279
+
280
+ Fri, 02 Oct 2020 17:42:35 GMT
281
+
282
+ ### Minor changes
283
+
284
+ - Implementation of Access Token Proof-of-Possession Flow (#2151, #2153, #2154, #2209, #2289) (prkanher@microsoft.com)
285
+
286
+ ## 1.4.0
287
+
288
+ Wed, 23 Sep 2020 21:13:48 GMT
289
+
290
+ ### Minor changes
291
+
292
+ - FOCI - Family of Client IDs feature (#2201) (sameera.gajjarapu@microsoft.com)
293
+
294
+ ### Patches
295
+
296
+ - Remove null in function return types to be compatible with ICacheManager.ts (#2335) (sameera.gajjarapu@microsoft.com)
297
+ - Scopes stored case sensitive, compared case insensitive (#2302) (sameera.gajjarapu@microsoft.com)
298
+
299
+ ## 1.3.0
300
+
301
+ Thu, 17 Sep 2020 23:16:22 GMT
302
+
303
+ ### Minor changes
304
+
305
+ - Add support for On-behalf-of flow (#2157) (sagonzal@microsoft.com)
306
+ - ValidCacheType adds ServerTelemetryEntity (sameera.gajjarapu@microsoft.com)
307
+ - Added client-side throttling to enhance server stability (#1907) (jamckenn@microsoft.com)
308
+
309
+ ### Patches
310
+
311
+ - Add name field to AccountInfo (#2288) (jamckenn@microsoft.com)
312
+ - Realm should fallback to an empty string for non AAD scenarios (sameera.gajjarapu@microsoft.com)
313
+ - Add default scopes in all requests and ignore in cache lookups (#2267) (thomas.norling@microsoft.com)
314
+ - Move refreshToken API to RefreshTokenClient (#2264) (thomas.norling@microsoft.com)
315
+ - Track Suberrors in Telemetry (#1921) (thomas.norling@microsoft.com)
316
+ - Separate cache lookup from token refresh (#2189) (thomas.norling@microsoft.com)
317
+
318
+ ## 1.2.0
319
+
320
+ Tue, 25 Aug 2020 00:40:45 GMT
321
+
322
+ ### Minor changes
323
+
324
+ - Client Capabilities Support (#2169) (thomas.norling@microsoft.com)
325
+ - Add support for acquiring tokens with client credentials grant (sagonzal@microsoft.com)
326
+
327
+ ### Patches
328
+
329
+ - ignore offline_access in scopes lookup (sameera.gajjarapu@microsoft.com)
330
+ - Adds checks for cache entities (sameera.gajjarapu@microsoft.com)
331
+ - Add claims request to /token calls (#2138) (thomas.norling@microsoft.com)
332
+ - Fix Telemetry cacheHit Bug (#2170) (thomas.norling@microsoft.com)
333
+ - Get username from emails claim in B2C scenarios (#2114) (thomas.norling@microsoft.com)
334
+ - Update POST header to type Record (#2128) (thomas.norling@microsoft.com)
335
+
336
+ ## 1.1.1
337
+
338
+ Thu, 13 Aug 2020 02:20:48 GMT
339
+
340
+ ### Patches
341
+
342
+ - knownAuthorities enhancements (#2106) (thomas.l.norling@gmail.com)
343
+ - Update typing of IdTokenClaims (#2105) (hemoral@microsoft.com)
344
+ - Fix hash parsing issue from #2118 and back button cache clearing (#2129) (prkanher@microsoft.com)
345
+
346
+ # 1.1.0
347
+ ## Breaking Changes
348
+ - None
349
+
350
+ ## Features and Fixes
351
+ - Decode state from URI Encoding before comparing (#2049)
352
+ - getAllAccounts() returns empty array instead of `null` (#2059)
353
+ - Updated the `UrlString.canonicalizeUri()` API to be static (#2078)
354
+ - Add sid to `AuthorizationUrlRequest` and as part of request parameters sent to server (#2030)
355
+ - Enable server telemetry headers to be formatted and sent in every request (#1917)
356
+ - Enable platform level state information to be sent and read through the request state (#2045)
357
+ - Add the confidential client flow (#2023)
358
+
359
+ # 1.0.0
360
+ ## Breaking Changes
361
+ - None
362
+
363
+ ## Features and Fixes
364
+ - Fixed an issue where scopes were being made lower case before being sent to the service (#1961)
365
+ - Fix an issue where token values were replaced with undefined if not sent by server (#1946)
366
+ - Fix an issue where cache lookup for accounts was not working correctly (#1919)
367
+ - Removed TelemetryOptions from msal-common since they were unused (#1983)
368
+ - Add a response handler for the device code flow (#1947)
369
+
370
+ # 1.0.0-beta.4
371
+ ## Breaking Changes
372
+ - None
373
+
374
+ ## Features and Fixes
375
+ - Fix an issue where state may be encoded twice on the server-side (#1852)
376
+ - Fix an issue where extraScopesToConsent was not appending scopes correctly (#1854)
377
+ - Fix an issue where the expiration was not being calculated correctly (#1860)
378
+ - Add correlationId to all requests (#1868)
379
+
380
+ # 1.0.0-beta.3
381
+ ## Breaking Changes
382
+ - `Request` update in msal-common (#1682, #1771)
383
+ - AccountInfo interface (#1789)
384
+ - Removal of SPA Client (#1793)
385
+ - Unified Cache support (#1444, #1471, #1519, #1520, #1522, #1609, #1622, #1624, #1655, #1680, #1762)
386
+
387
+ ## Features and Fixes
388
+ - Initialization of B2cTrustedHostList (#1646)
389
+ - SilentFlow support (#1711)
390
+ - Utilize `Scopeset` across all libraries (#1770)
391
+ - `state` support in msal-common (#1790)
392
+ - EndSessionRequest (#1802)
393
+
394
+ # 1.0.0-beta.2
395
+ - Fixed an issue where types were not being exported from the correct location (#1613)
396
+ - Fixed an issue where system configuration values were being overwritten with `undefined` (#1631)
397
+ - Added support for sub-error codes from the eSTS service (#1533)
398
+
399
+ # 1.0.0-beta.1
400
+ - Fixed an issue where types are not exported correctly (#1517)
401
+ - Logger class is now exported (#1486)
402
+ - Added knownAuthorities to support B2C authorities (#1416)
403
+ - Refactored authority classes for B2C use cases (#1424)
404
+ - Synced all classes and objects to work for both @azure/msal-browser and @azure/msal-node (#1552)
405
+ - Merged configuration for node and browser classes (#1575)
406
+ - Fixed issue with caching for multiple resources (#1553)
407
+ - Adding support for node classes
408
+ - Refresh token client (#1496)
409
+ - Device code client (#1550, #1434)
410
+ - Authorization Code Client (#1434)
411
+
412
+ # 1.0.0-beta.0
413
+ - Fully functioning project completed
414
+ - Build and test pipelines in place
415
+ - Added bug fixes from unit testing
416
+ - Added docs and samples
417
+
418
+ # 0.0.1
411
419
  - Created library with initial files for repo structure, build and package dependencies