@azure/msal-browser 2.16.1 → 2.20.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.
Files changed (163) hide show
  1. package/CHANGELOG.json +283 -0
  2. package/{changelog.md → CHANGELOG.md} +73 -1
  3. package/README.md +12 -4
  4. package/dist/_virtual/_tslib.js +1 -1
  5. package/dist/app/ClientApplication.d.ts +35 -137
  6. package/dist/app/ClientApplication.d.ts.map +1 -1
  7. package/dist/app/ClientApplication.js +178 -883
  8. package/dist/app/ClientApplication.js.map +1 -1
  9. package/dist/app/IPublicClientApplication.d.ts +8 -0
  10. package/dist/app/IPublicClientApplication.d.ts.map +1 -1
  11. package/dist/app/IPublicClientApplication.js +16 -1
  12. package/dist/app/IPublicClientApplication.js.map +1 -1
  13. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  14. package/dist/app/PublicClientApplication.js +35 -41
  15. package/dist/app/PublicClientApplication.js.map +1 -1
  16. package/dist/cache/AsyncMemoryStorage.d.ts +46 -0
  17. package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -0
  18. package/dist/cache/AsyncMemoryStorage.js +195 -0
  19. package/dist/cache/AsyncMemoryStorage.js.map +1 -0
  20. package/dist/cache/BrowserCacheManager.d.ts +19 -2
  21. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  22. package/dist/cache/BrowserCacheManager.js +104 -15
  23. package/dist/cache/BrowserCacheManager.js.map +1 -1
  24. package/dist/cache/BrowserStorage.d.ts +1 -1
  25. package/dist/cache/BrowserStorage.d.ts.map +1 -1
  26. package/dist/cache/BrowserStorage.js +1 -1
  27. package/dist/cache/BrowserStorage.js.map +1 -1
  28. package/dist/cache/DatabaseStorage.d.ts +29 -4
  29. package/dist/cache/DatabaseStorage.d.ts.map +1 -1
  30. package/dist/cache/DatabaseStorage.js +151 -45
  31. package/dist/cache/DatabaseStorage.js.map +1 -1
  32. package/dist/cache/IAsyncMemoryStorage.d.ts +28 -0
  33. package/dist/cache/IAsyncMemoryStorage.d.ts.map +1 -0
  34. package/dist/cache/ITokenCache.d.ts +8 -0
  35. package/dist/cache/ITokenCache.d.ts.map +1 -0
  36. package/dist/cache/IWindowStorage.d.ts +3 -3
  37. package/dist/cache/IWindowStorage.d.ts.map +1 -1
  38. package/dist/cache/MemoryStorage.d.ts +3 -3
  39. package/dist/cache/MemoryStorage.d.ts.map +1 -1
  40. package/dist/cache/MemoryStorage.js +1 -1
  41. package/dist/cache/MemoryStorage.js.map +1 -1
  42. package/dist/cache/TokenCache.d.ts +48 -0
  43. package/dist/cache/TokenCache.d.ts.map +1 -0
  44. package/dist/cache/TokenCache.js +124 -0
  45. package/dist/cache/TokenCache.js.map +1 -0
  46. package/dist/config/Configuration.js +1 -1
  47. package/dist/crypto/BrowserCrypto.d.ts +3 -1
  48. package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
  49. package/dist/crypto/BrowserCrypto.js +3 -2
  50. package/dist/crypto/BrowserCrypto.js.map +1 -1
  51. package/dist/crypto/CryptoOps.d.ts +21 -6
  52. package/dist/crypto/CryptoOps.d.ts.map +1 -1
  53. package/dist/crypto/CryptoOps.js +67 -15
  54. package/dist/crypto/CryptoOps.js.map +1 -1
  55. package/dist/crypto/GuidGenerator.js +1 -1
  56. package/dist/crypto/PkceGenerator.js +1 -1
  57. package/dist/crypto/SignedHttpRequest.d.ts +31 -0
  58. package/dist/crypto/SignedHttpRequest.d.ts.map +1 -0
  59. package/dist/crypto/SignedHttpRequest.js +70 -0
  60. package/dist/crypto/SignedHttpRequest.js.map +1 -0
  61. package/dist/encode/Base64Decode.js +1 -1
  62. package/dist/encode/Base64Encode.js +1 -1
  63. package/dist/error/BrowserAuthError.d.ts +36 -4
  64. package/dist/error/BrowserAuthError.d.ts.map +1 -1
  65. package/dist/error/BrowserAuthError.js +51 -11
  66. package/dist/error/BrowserAuthError.js.map +1 -1
  67. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  68. package/dist/event/EventHandler.d.ts +13 -0
  69. package/dist/event/EventHandler.d.ts.map +1 -1
  70. package/dist/event/EventHandler.js +66 -1
  71. package/dist/event/EventHandler.js.map +1 -1
  72. package/dist/event/EventMessage.d.ts +4 -3
  73. package/dist/event/EventMessage.d.ts.map +1 -1
  74. package/dist/event/EventMessage.js +24 -5
  75. package/dist/event/EventMessage.js.map +1 -1
  76. package/dist/event/EventType.d.ts +5 -0
  77. package/dist/event/EventType.d.ts.map +1 -1
  78. package/dist/event/EventType.js +6 -1
  79. package/dist/event/EventType.js.map +1 -1
  80. package/dist/index.cjs.js +4678 -2996
  81. package/dist/index.cjs.js.map +1 -1
  82. package/dist/index.d.ts +6 -2
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +4 -2
  85. package/dist/index.js.map +1 -1
  86. package/dist/interaction_client/BaseInteractionClient.d.ts +42 -0
  87. package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -0
  88. package/dist/interaction_client/BaseInteractionClient.js +131 -0
  89. package/dist/interaction_client/BaseInteractionClient.js.map +1 -0
  90. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +5 -0
  91. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -0
  92. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +21 -0
  93. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -0
  94. package/dist/interaction_client/PopupClient.d.ts +37 -0
  95. package/dist/interaction_client/PopupClient.d.ts.map +1 -0
  96. package/dist/interaction_client/PopupClient.js +234 -0
  97. package/dist/interaction_client/PopupClient.js.map +1 -0
  98. package/dist/interaction_client/RedirectClient.d.ts +42 -0
  99. package/dist/interaction_client/RedirectClient.d.ts.map +1 -0
  100. package/dist/interaction_client/RedirectClient.js +301 -0
  101. package/dist/interaction_client/RedirectClient.js.map +1 -0
  102. package/dist/interaction_client/SilentAuthCodeClient.d.ts +22 -0
  103. package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -0
  104. package/dist/interaction_client/SilentAuthCodeClient.js +80 -0
  105. package/dist/interaction_client/SilentAuthCodeClient.js.map +1 -0
  106. package/dist/interaction_client/SilentCacheClient.d.ts +22 -0
  107. package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -0
  108. package/dist/interaction_client/SilentCacheClient.js +85 -0
  109. package/dist/interaction_client/SilentCacheClient.js.map +1 -0
  110. package/dist/interaction_client/SilentIframeClient.d.ts +29 -0
  111. package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -0
  112. package/dist/interaction_client/SilentIframeClient.js +107 -0
  113. package/dist/interaction_client/SilentIframeClient.js.map +1 -0
  114. package/dist/interaction_client/SilentRefreshClient.d.ts +20 -0
  115. package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -0
  116. package/dist/interaction_client/SilentRefreshClient.js +76 -0
  117. package/dist/interaction_client/SilentRefreshClient.js.map +1 -0
  118. package/dist/interaction_client/StandardInteractionClient.d.ts +66 -0
  119. package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -0
  120. package/dist/interaction_client/StandardInteractionClient.js +249 -0
  121. package/dist/interaction_client/StandardInteractionClient.js.map +1 -0
  122. package/dist/interaction_handler/InteractionHandler.d.ts +11 -2
  123. package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
  124. package/dist/interaction_handler/InteractionHandler.js +36 -10
  125. package/dist/interaction_handler/InteractionHandler.js.map +1 -1
  126. package/dist/interaction_handler/PopupHandler.d.ts +2 -0
  127. package/dist/interaction_handler/PopupHandler.d.ts.map +1 -1
  128. package/dist/interaction_handler/PopupHandler.js +3 -4
  129. package/dist/interaction_handler/PopupHandler.js.map +1 -1
  130. package/dist/interaction_handler/RedirectHandler.d.ts +1 -1
  131. package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
  132. package/dist/interaction_handler/RedirectHandler.js +7 -6
  133. package/dist/interaction_handler/RedirectHandler.js.map +1 -1
  134. package/dist/interaction_handler/SilentHandler.js +1 -1
  135. package/dist/navigation/NavigationClient.js +1 -1
  136. package/dist/network/FetchClient.js +1 -1
  137. package/dist/network/XhrClient.js +1 -1
  138. package/dist/packageMetadata.d.ts +1 -1
  139. package/dist/packageMetadata.js +2 -2
  140. package/dist/packageMetadata.js.map +1 -1
  141. package/dist/request/AuthorizationCodeRequest.d.ts +8 -0
  142. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -0
  143. package/dist/request/EndSessionPopupRequest.d.ts +3 -0
  144. package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
  145. package/dist/request/PopupRequest.d.ts +3 -0
  146. package/dist/request/PopupRequest.d.ts.map +1 -1
  147. package/dist/request/RedirectRequest.d.ts.map +1 -1
  148. package/dist/utils/BrowserConstants.d.ts +13 -1
  149. package/dist/utils/BrowserConstants.d.ts.map +1 -1
  150. package/dist/utils/BrowserConstants.js +17 -3
  151. package/dist/utils/BrowserConstants.js.map +1 -1
  152. package/dist/utils/BrowserProtocolUtils.js +1 -1
  153. package/dist/utils/BrowserStringUtils.js +1 -1
  154. package/dist/utils/BrowserUtils.js +1 -1
  155. package/dist/utils/MathUtils.js +1 -1
  156. package/dist/utils/PopupUtils.d.ts +26 -2
  157. package/dist/utils/PopupUtils.d.ts.map +1 -1
  158. package/dist/utils/PopupUtils.js +42 -15
  159. package/dist/utils/PopupUtils.js.map +1 -1
  160. package/lib/msal-browser.js +4678 -2996
  161. package/lib/msal-browser.js.map +1 -1
  162. package/lib/msal-browser.min.js +32 -32
  163. package/package.json +9 -2
package/CHANGELOG.json CHANGED
@@ -1,6 +1,289 @@
1
1
  {
2
2
  "name": "@azure/msal-browser",
3
3
  "entries": [
4
+ {
5
+ "date": "Tue, 07 Dec 2021 00:17:01 GMT",
6
+ "tag": "@azure/msal-browser_v2.20.0",
7
+ "version": "2.20.0",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "kamausamuel11@gmail.com",
12
+ "package": "@azure/msal-browser",
13
+ "commit": "8259de7520d2940d290332cd03c5b8babeb0966e",
14
+ "comment": "deps: run an audit fix on msal-browser"
15
+ },
16
+ {
17
+ "author": "thomas.norling@microsoft.com",
18
+ "package": "@azure/msal-browser",
19
+ "commit": "02dbd9172368bfc69e4a47f01a3ada0b96345c81",
20
+ "comment": "Package.json updates"
21
+ }
22
+ ],
23
+ "minor": [
24
+ {
25
+ "author": "janutter@microsoft.com",
26
+ "package": "@azure/msal-browser",
27
+ "commit": "4741b6c3a6a3dd58feefde93c095c05e1eca5e03",
28
+ "comment": "Add acquireTokenByCode API for hybrid spa flow #3978"
29
+ },
30
+ {
31
+ "author": "beachball",
32
+ "package": "@azure/msal-browser",
33
+ "comment": "Bump @azure/msal-common to v5.2.0",
34
+ "commit": "d7c209f7aa3ae4380a77a31ff1319fbf7201ae45"
35
+ }
36
+ ],
37
+ "patch": [
38
+ {
39
+ "author": "hemoral@microsoft.com",
40
+ "package": "@azure/msal-browser",
41
+ "commit": "e983e25ba899bb437a135ec50ad6c77023c72e5b",
42
+ "comment": "Fix circular dependencies in AuthenticationHeaderParser and AsyncMemoryStorage #4235"
43
+ }
44
+ ]
45
+ }
46
+ },
47
+ {
48
+ "date": "Mon, 01 Nov 2021 23:53:21 GMT",
49
+ "tag": "@azure/msal-browser_v2.19.0",
50
+ "version": "2.19.0",
51
+ "comments": {
52
+ "minor": [
53
+ {
54
+ "author": "hemoral@microsoft.com",
55
+ "package": "@azure/msal-browser",
56
+ "commit": "51669adf5e2fe446bf94925fe77762b64e9513fc",
57
+ "comment": "Add support for in-memory storage of token binding keys #4183"
58
+ },
59
+ {
60
+ "author": "hemoral@microsoft.com",
61
+ "package": "@azure/msal-browser",
62
+ "commit": "a81fcef3d82523e03828d91bb0ee8d2ab2cc20d8",
63
+ "comment": "Add support for ephemeral SSH certificate acquisition #4178"
64
+ },
65
+ {
66
+ "author": "hemoral@microsoft.com",
67
+ "package": "@azure/msal-browser",
68
+ "commit": "51669adf5e2fe446bf94925fe77762b64e9513fc",
69
+ "comment": "Add support for in-memory storage of token binding keys #4183"
70
+ },
71
+ {
72
+ "author": "hemoral@microsoft.com",
73
+ "package": "@azure/msal-browser",
74
+ "commit": "5b350a5f97b43e1a5a87153bb4a13632f7c615b9",
75
+ "comment": "Add support for SHR nonce #3999"
76
+ },
77
+ {
78
+ "author": "beachball",
79
+ "package": "@azure/msal-browser",
80
+ "comment": "Bump @azure/msal-common to v5.1.0",
81
+ "commit": "6ac29855822ce1ba9531a68bcaa6f37443ef16c0"
82
+ }
83
+ ],
84
+ "patch": [
85
+ {
86
+ "author": "hemoral@microsoft.com",
87
+ "package": "@azure/msal-browser",
88
+ "commit": "9099d711c0e52e13937bcfda7ddf34bac48f9ecd",
89
+ "comment": "Add support for different key types in IndexedDB storage #4052"
90
+ },
91
+ {
92
+ "author": "janutter@microsoft.com",
93
+ "package": "@azure/msal-browser",
94
+ "commit": "b1f5bd520f8abb972725c1a863f37b7fb5ebd756",
95
+ "comment": "Ensure correlation is passed to all interaction clients in acquireTokenSilent #4186"
96
+ },
97
+ {
98
+ "author": "Michael.Currie@rjwgroup.com",
99
+ "package": "@azure/msal-browser",
100
+ "commit": "3f3f5a8880a7e46445d71b8920a6ccc70d453f30",
101
+ "comment": "Fix typo in noTokenRequestCacheError (#4136)"
102
+ },
103
+ {
104
+ "author": "thomas.norling@microsoft.com",
105
+ "package": "@azure/msal-browser",
106
+ "commit": "dc80d3177eef0b3c7499cbf3ebb2fea8e2c408c9",
107
+ "comment": "Fix redirect processing when allowRedirectInIframe: true #4142"
108
+ }
109
+ ]
110
+ }
111
+ },
112
+ {
113
+ "date": "Mon, 04 Oct 2021 23:12:35 GMT",
114
+ "tag": "@azure/msal-browser_v2.18.0",
115
+ "version": "2.18.0",
116
+ "comments": {
117
+ "patch": [
118
+ {
119
+ "author": "jagore@microsoft.com",
120
+ "package": "@azure/msal-browser",
121
+ "comment": "Consistently export error types and messages for errors thrown by MSAL #4117",
122
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
123
+ },
124
+ {
125
+ "author": "thomas.norling@microsoft.com",
126
+ "package": "@azure/msal-browser",
127
+ "comment": "Move helper functions up to BaseInteractionClient #4049",
128
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
129
+ },
130
+ {
131
+ "author": "thomas.norling@microsoft.com",
132
+ "package": "@azure/msal-browser",
133
+ "comment": "Export library version #4124",
134
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
135
+ }
136
+ ],
137
+ "none": [
138
+ {
139
+ "author": "thomas.norling@microsoft.com",
140
+ "package": "@azure/msal-browser",
141
+ "comment": "Disallow major bumps",
142
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
143
+ },
144
+ {
145
+ "author": "thomas.norling@microsoft.com",
146
+ "package": "@azure/msal-browser",
147
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
148
+ },
149
+ {
150
+ "author": "kamausamuel11@gmail.com",
151
+ "package": "@azure/msal-browser",
152
+ "comment": "fix: add forked bindings library to node-extensions",
153
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
154
+ }
155
+ ],
156
+ "minor": [
157
+ {
158
+ "author": "thomas.norling@microsoft.com",
159
+ "package": "@azure/msal-browser",
160
+ "comment": "Emit event when user logs in or out from a different tab or window #3981",
161
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
162
+ },
163
+ {
164
+ "author": "prkanher@microsoft.com",
165
+ "package": "@azure/msal-browser",
166
+ "comment": "Remove requirement of user hint on ssoSilent API #4123",
167
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
168
+ },
169
+ {
170
+ "author": "beachball",
171
+ "package": "@azure/msal-browser",
172
+ "comment": "Bump @azure/msal-common to v5.0.1",
173
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
174
+ }
175
+ ]
176
+ }
177
+ },
178
+ {
179
+ "date": "Tue, 07 Sep 2021 23:22:24 GMT",
180
+ "tag": "@azure/msal-browser_v2.17.0",
181
+ "version": "2.17.0",
182
+ "comments": {
183
+ "minor": [
184
+ {
185
+ "comment": "Add configuration for popup window size and placement #3946",
186
+ "author": "joarroyo@microsoft.com",
187
+ "commit": "aefe791ee660bbb6bf7df789b5cfb77b46887e05",
188
+ "package": "@azure/msal-browser"
189
+ },
190
+ {
191
+ "comment": "Add API to sideload tokens to msal-browser #3895",
192
+ "author": "joarroyo@microsoft.com",
193
+ "commit": "cef2629499cf997f9167fe3ecc7628cf32513dfc",
194
+ "package": "@azure/msal-browser"
195
+ },
196
+ {
197
+ "comment": "Add SignedHttpRequest class #3058",
198
+ "author": "janutter@microsoft.com",
199
+ "commit": "19fe65ef6562deeae0778db5030f44fa6e24aa5d",
200
+ "package": "@azure/msal-browser"
201
+ },
202
+ {
203
+ "comment": "Refactor acquireToken logic into InteractionClients #3871",
204
+ "author": "thomas.norling@microsoft.com",
205
+ "commit": "8ac64949f23346cdbdac6f8a2f6c8293d016ee32",
206
+ "package": "@azure/msal-browser"
207
+ }
208
+ ],
209
+ "patch": [
210
+ {
211
+ "comment": "Clear cache before constructing logout url #3982",
212
+ "author": "thomas.norling@microsoft.com",
213
+ "commit": "9e4d8a161cd8eac51ea7ded5dadc2b6ff028f5d7",
214
+ "package": "@azure/msal-browser"
215
+ },
216
+ {
217
+ "comment": "Add pop params to request thumbprint #3973",
218
+ "author": "hemoral@microsoft.com",
219
+ "commit": "b3b18bc86a5949905be265c9b892e288551ac894",
220
+ "package": "@azure/msal-browser"
221
+ },
222
+ {
223
+ "comment": "Update ADAL to MSAL SSO logic to use preferred_username instead of upn by default #3945",
224
+ "author": "ellymakuba@microsoft.com",
225
+ "commit": "0eb77a9e467f0074bb9ee5bf52d7c2dfa6f7efad",
226
+ "package": "@azure/msal-browser"
227
+ },
228
+ {
229
+ "comment": "Populate msal v2 loginHint from cached msal v1 id token #4027",
230
+ "author": "janutter@microsoft.com",
231
+ "commit": "de24de1d3a135c106143a6cc9907cc1264f546e0",
232
+ "package": "@azure/msal-browser"
233
+ },
234
+ {
235
+ "comment": "Throw interaction in progress if any msal instance has interaction in progress #4014",
236
+ "author": "thomas.norling@microsoft.com",
237
+ "commit": "5188d7d9fb2aa7a9e9f2ffd12abd8d438c4c3876",
238
+ "package": "@azure/msal-browser"
239
+ },
240
+ {
241
+ "comment": "Only emit handleRedirect start event on first invocation of handleRedirectPromise #4013",
242
+ "author": "thomas.norling@microsoft.com",
243
+ "commit": "09f8cece289c07dd9c5681a31ec285e4111db4ae",
244
+ "package": "@azure/msal-browser"
245
+ },
246
+ {
247
+ "comment": "Add correlationId to AuthenticationResult type #3947",
248
+ "author": "thomas.norling@microsoft.com",
249
+ "commit": "931061695df57488a26397763bbdb3e466713df8",
250
+ "package": "@azure/msal-browser"
251
+ },
252
+ {
253
+ "comment": "Remove token binding key from key store when refreshing pop token #3500",
254
+ "author": "hemoral@microsoft.com",
255
+ "commit": "6592652877f31405c8ed73a66f03eada90a78c0a",
256
+ "package": "@azure/msal-browser"
257
+ },
258
+ {
259
+ "comment": "Fix clearing active account on logout #3948",
260
+ "author": "hemoral@microsoft.com",
261
+ "commit": "cd45c77348f6fc259f9378f69b25569146e1c58a",
262
+ "package": "@azure/msal-browser"
263
+ },
264
+ {
265
+ "comment": "Add correlationId to errors thrown #3930",
266
+ "author": "thomas.norling@microsoft.com",
267
+ "commit": "c2d19c27d11fdab54fb336b9a455b05c753ae750",
268
+ "package": "@azure/msal-browser"
269
+ }
270
+ ],
271
+ "none": [
272
+ {
273
+ "comment": "Fix accesstoken_with_authscheme implementation #3910",
274
+ "author": "hemoral@microsoft.com",
275
+ "commit": "9aceb4219ebad900277aa6a59ca1ff93c5a21e0a",
276
+ "package": "@azure/msal-browser"
277
+ },
278
+ {
279
+ "comment": "Update FAQ #3934",
280
+ "author": "joliuac@gmail.com",
281
+ "commit": "323d7eabbbd95c499d2c2a2446cdea4531af71c5",
282
+ "package": "@azure/msal-browser"
283
+ }
284
+ ]
285
+ }
286
+ },
4
287
  {
5
288
  "date": "Thu, 22 Jul 2021 22:50:22 GMT",
6
289
  "tag": "@azure/msal-browser_v2.16.0",
@@ -1,9 +1,81 @@
1
1
  # Change Log - @azure/msal-browser
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 Tue, 07 Dec 2021 00:17:01 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.20.0
8
+
9
+ Tue, 07 Dec 2021 00:17:01 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - Add acquireTokenByCode API for hybrid spa flow #3978 (janutter@microsoft.com)
14
+ - Bump @azure/msal-common to v5.2.0
15
+
16
+ ### Patches
17
+
18
+ - Fix circular dependencies in AuthenticationHeaderParser and AsyncMemoryStorage #4235 (hemoral@microsoft.com)
19
+
20
+ ## 2.19.0
21
+
22
+ Mon, 01 Nov 2021 23:53:21 GMT
23
+
24
+ ### Minor changes
25
+
26
+ - Add support for in-memory storage of token binding keys #4183 (hemoral@microsoft.com)
27
+ - Add support for ephemeral SSH certificate acquisition #4178 (hemoral@microsoft.com)
28
+ - Add support for in-memory storage of token binding keys #4183 (hemoral@microsoft.com)
29
+ - Add support for SHR nonce #3999 (hemoral@microsoft.com)
30
+ - Bump @azure/msal-common to v5.1.0
31
+
32
+ ### Patches
33
+
34
+ - Add support for different key types in IndexedDB storage #4052 (hemoral@microsoft.com)
35
+ - Ensure correlation is passed to all interaction clients in acquireTokenSilent #4186 (janutter@microsoft.com)
36
+ - Fix typo in noTokenRequestCacheError (#4136) (Michael.Currie@rjwgroup.com)
37
+ - Fix redirect processing when allowRedirectInIframe: true #4142 (thomas.norling@microsoft.com)
38
+
39
+ ## 2.18.0
40
+
41
+ Mon, 04 Oct 2021 23:12:35 GMT
42
+
43
+ ### Minor changes
44
+
45
+ - Emit event when user logs in or out from a different tab or window #3981 (thomas.norling@microsoft.com)
46
+ - Remove requirement of user hint on ssoSilent API #4123 (prkanher@microsoft.com)
47
+ - Bump @azure/msal-common to v5.0.1
48
+
49
+ ### Patches
50
+
51
+ - Consistently export error types and messages for errors thrown by MSAL #4117 (jagore@microsoft.com)
52
+ - Move helper functions up to BaseInteractionClient #4049 (thomas.norling@microsoft.com)
53
+ - Export library version #4124 (thomas.norling@microsoft.com)
54
+
55
+ ## 2.17.0
56
+
57
+ Tue, 07 Sep 2021 23:22:24 GMT
58
+
59
+ ### Minor changes
60
+
61
+ - Add configuration for popup window size and placement #3946 (joarroyo@microsoft.com)
62
+ - Add API to sideload tokens to msal-browser #3895 (joarroyo@microsoft.com)
63
+ - Add SignedHttpRequest class #3058 (janutter@microsoft.com)
64
+ - Refactor acquireToken logic into InteractionClients #3871 (thomas.norling@microsoft.com)
65
+
66
+ ### Patches
67
+
68
+ - Clear cache before constructing logout url #3982 (thomas.norling@microsoft.com)
69
+ - Add pop params to request thumbprint #3973 (hemoral@microsoft.com)
70
+ - Update ADAL to MSAL SSO logic to use preferred_username instead of upn by default #3945 (ellymakuba@microsoft.com)
71
+ - Populate msal v2 loginHint from cached msal v1 id token #4027 (janutter@microsoft.com)
72
+ - Throw interaction in progress if any msal instance has interaction in progress #4014 (thomas.norling@microsoft.com)
73
+ - Only emit handleRedirect start event on first invocation of handleRedirectPromise #4013 (thomas.norling@microsoft.com)
74
+ - Add correlationId to AuthenticationResult type #3947 (thomas.norling@microsoft.com)
75
+ - Remove token binding key from key store when refreshing pop token #3500 (hemoral@microsoft.com)
76
+ - Fix clearing active account on logout #3948 (hemoral@microsoft.com)
77
+ - Add correlationId to errors thrown #3930 (thomas.norling@microsoft.com)
78
+
7
79
  ## 2.16.0
8
80
 
9
81
  Thu, 22 Jul 2021 22:50:22 GMT
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  1. [About](#about)
11
11
  1. [FAQ](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/FAQ.md)
12
- 1. [Changelog](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/changelog.md)
12
+ 1. [Changelog](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/CHANGELOG.md)
13
13
  1. [Roadmap](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/roadmap.md)
14
14
  1. [Prerequisites](#prerequisites)
15
15
  1. [Installation](#installation)
@@ -59,7 +59,7 @@ npm install @azure/msal-browser
59
59
 
60
60
  <!-- CDN_LATEST -->
61
61
  ```html
62
- <script type="text/javascript" src="https://alcdn.msauth.net/browser/2.16.1/js/msal-browser.min.js"></script>
62
+ <script type="text/javascript" src="https://alcdn.msauth.net/browser/2.20.0/js/msal-browser.min.js"></script>
63
63
  ```
64
64
 
65
65
  See [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/cdn-usage.md) for more info on how to use this package from the Microsoft CDN.
@@ -109,6 +109,8 @@ Here is a complete list of samples for the MSAL.js 2.x library:
109
109
  | [ssoSilent() Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/VanillaJSTestApp2.0/app/ssoSilent) | A vanilla JS sample showing usage of the ssoSilent API, allowing you to sign in a user silently if a context exists on the authentication server. | `npm start -- -s ssoSilent` |
110
110
  | [Internet Explorer 11 Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/VanillaJSTestApp2.0/app/ie11-sample) | A vanilla JS sample showing usage of `@azure/msal-browser` in an application designed to run in Internet Explorer 11. | `npm start -- -s ie11-sample` |
111
111
  | [Angular 10 Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-angular-v2-samples/angular10-browser-sample) | An Angular 10 sample showing usage of MSAL 2.0 with the Microsoft Graph API. | `npm start` |
112
+ | [Hybrid Spa Sample (w/ MSAL Node)](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/HybridSample) | Sample demonstrating how to use `acquireTokenByCode` to perform SSO for applications that leverage server-side and client-side authentication using MSAL Browser and MSAL Node. | `npm start` |
113
+ | [Vue 3 Sample](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/vue3-sample-app) | A Vue 3 sample showing usage of MSAL 2.0 with the Microsoft Graph API. | `npm start` |
112
114
 
113
115
  More instructions to run the samples can be found in the [`README.md` file](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/samples/msal-browser-samples/VanillaJSTestApp2.0/Readme.md) of the VanillaJSTestApp2.0 folder.
114
116
 
@@ -119,6 +121,12 @@ More advanced samples backed with a tutorial can be found in the [Azure Samples]
119
121
  - [React & Redux SPA calling Microsoft Graph via ASP.NET Core web API using on-behalf-of flow](https://github.com/Azure-Samples/ms-identity-javascript-react-spa-dotnetcore-webapi-obo)
120
122
  - [Deployment tutorial for Azure App Service and Azure Storage](https://github.com/Azure-Samples/ms-identity-javascript-tutorial/tree/main/5-Deployment)
121
123
 
124
+ We also provide samples for addin/plugin scenarios:
125
+
126
+ - [Office Addin-in using MSAL.js](https://github.com/OfficeDev/PnP-OfficeAddins/blob/main/Samples/auth/Office-Add-in-Microsoft-Graph-React/)
127
+ - [Teams Tab using MSAL.js](https://github.com/pnp/teams-dev-samples/tree/main/samples/tab-sso/src/nodejs)
128
+ - [Chromium Extension using MSAL.js](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-browser-samples/ChromiumExtensionSample)
129
+
122
130
  ## Build and Test
123
131
 
124
132
  See the [`contributing.md`](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/contributing.md) file for more information.
@@ -179,8 +187,8 @@ npm run test:coverage:only
179
187
 
180
188
  If you are using a framework such as Angular or React you may be interested in using one of our wrapper libraries:
181
189
 
182
- - Angular: [@azure/msal-angular v2 (Beta)](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular)
183
- - React: [@azure/msal-react (Beta)](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-react)
190
+ - Angular: [@azure/msal-angular v2](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular)
191
+ - React: [@azure/msal-react](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-react)
184
192
 
185
193
  ## Implicit Flow vs Authorization Code Flow with PKCE
186
194
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v2.16.1 2021-08-02 */
1
+ /*! @azure/msal-browser v2.20.0 2021-12-07 */
2
2
  'use strict';
3
3
  /*! *****************************************************************************
4
4
  Copyright (c) Microsoft Corporation.