@azure/msal-browser 2.17.0 → 2.21.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 (168) hide show
  1. package/CHANGELOG.json +203 -0
  2. package/{changelog.md → CHANGELOG.md} +506 -445
  3. package/LICENSE +21 -21
  4. package/README.md +14 -6
  5. package/dist/_virtual/_tslib.js +1 -1
  6. package/dist/app/ClientApplication.d.ts +31 -0
  7. package/dist/app/ClientApplication.d.ts.map +1 -1
  8. package/dist/app/ClientApplication.js +96 -3
  9. package/dist/app/ClientApplication.js.map +1 -1
  10. package/dist/app/IPublicClientApplication.d.ts +6 -0
  11. package/dist/app/IPublicClientApplication.d.ts.map +1 -1
  12. package/dist/app/IPublicClientApplication.js +13 -1
  13. package/dist/app/IPublicClientApplication.js.map +1 -1
  14. package/dist/app/PublicClientApplication.d.ts.map +1 -1
  15. package/dist/app/PublicClientApplication.js +31 -24
  16. package/dist/app/PublicClientApplication.js.map +1 -1
  17. package/dist/cache/AsyncMemoryStorage.d.ts +46 -0
  18. package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -0
  19. package/dist/cache/AsyncMemoryStorage.js +195 -0
  20. package/dist/cache/AsyncMemoryStorage.js.map +1 -0
  21. package/dist/cache/BrowserCacheManager.d.ts +9 -1
  22. package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
  23. package/dist/cache/BrowserCacheManager.js +55 -2
  24. package/dist/cache/BrowserCacheManager.js.map +1 -1
  25. package/dist/cache/BrowserStorage.d.ts +1 -1
  26. package/dist/cache/BrowserStorage.d.ts.map +1 -1
  27. package/dist/cache/BrowserStorage.js +1 -1
  28. package/dist/cache/BrowserStorage.js.map +1 -1
  29. package/dist/cache/DatabaseStorage.d.ts +25 -6
  30. package/dist/cache/DatabaseStorage.d.ts.map +1 -1
  31. package/dist/cache/DatabaseStorage.js +127 -81
  32. package/dist/cache/DatabaseStorage.js.map +1 -1
  33. package/dist/cache/IAsyncMemoryStorage.d.ts +28 -0
  34. package/dist/cache/IAsyncMemoryStorage.d.ts.map +1 -0
  35. package/dist/cache/IWindowStorage.d.ts +3 -3
  36. package/dist/cache/IWindowStorage.d.ts.map +1 -1
  37. package/dist/cache/MemoryStorage.d.ts +3 -3
  38. package/dist/cache/MemoryStorage.d.ts.map +1 -1
  39. package/dist/cache/MemoryStorage.js +1 -1
  40. package/dist/cache/MemoryStorage.js.map +1 -1
  41. package/dist/cache/TokenCache.js +1 -1
  42. package/dist/cache/TokenCache.js.map +1 -1
  43. package/dist/config/Configuration.js +1 -1
  44. package/dist/config/Configuration.js.map +1 -1
  45. package/dist/crypto/BrowserCrypto.d.ts +3 -1
  46. package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
  47. package/dist/crypto/BrowserCrypto.js +3 -2
  48. package/dist/crypto/BrowserCrypto.js.map +1 -1
  49. package/dist/crypto/CryptoOps.d.ts +16 -5
  50. package/dist/crypto/CryptoOps.d.ts.map +1 -1
  51. package/dist/crypto/CryptoOps.js +58 -17
  52. package/dist/crypto/CryptoOps.js.map +1 -1
  53. package/dist/crypto/GuidGenerator.js +1 -1
  54. package/dist/crypto/GuidGenerator.js.map +1 -1
  55. package/dist/crypto/PkceGenerator.js +1 -1
  56. package/dist/crypto/PkceGenerator.js.map +1 -1
  57. package/dist/crypto/SignedHttpRequest.d.ts +6 -2
  58. package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
  59. package/dist/crypto/SignedHttpRequest.js +11 -5
  60. package/dist/crypto/SignedHttpRequest.js.map +1 -1
  61. package/dist/encode/Base64Decode.js +1 -1
  62. package/dist/encode/Base64Decode.js.map +1 -1
  63. package/dist/encode/Base64Encode.js +1 -1
  64. package/dist/encode/Base64Encode.js.map +1 -1
  65. package/dist/error/BrowserAuthError.d.ts +16 -8
  66. package/dist/error/BrowserAuthError.d.ts.map +1 -1
  67. package/dist/error/BrowserAuthError.js +22 -12
  68. package/dist/error/BrowserAuthError.js.map +1 -1
  69. package/dist/error/BrowserConfigurationAuthError.js +1 -1
  70. package/dist/error/BrowserConfigurationAuthError.js.map +1 -1
  71. package/dist/event/EventHandler.d.ts +13 -0
  72. package/dist/event/EventHandler.d.ts.map +1 -1
  73. package/dist/event/EventHandler.js +66 -1
  74. package/dist/event/EventHandler.js.map +1 -1
  75. package/dist/event/EventMessage.d.ts +2 -2
  76. package/dist/event/EventMessage.d.ts.map +1 -1
  77. package/dist/event/EventMessage.js +1 -1
  78. package/dist/event/EventMessage.js.map +1 -1
  79. package/dist/event/EventType.d.ts +5 -0
  80. package/dist/event/EventType.d.ts.map +1 -1
  81. package/dist/event/EventType.js +6 -1
  82. package/dist/event/EventType.js.map +1 -1
  83. package/dist/index.cjs.js +1465 -520
  84. package/dist/index.cjs.js.map +1 -1
  85. package/dist/index.d.ts +5 -3
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js +3 -2
  88. package/dist/index.js.map +1 -1
  89. package/dist/interaction_client/BaseInteractionClient.d.ts +21 -1
  90. package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  91. package/dist/interaction_client/BaseInteractionClient.js +77 -3
  92. package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
  93. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts +5 -0
  94. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -0
  95. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +21 -0
  96. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -0
  97. package/dist/interaction_client/PopupClient.d.ts.map +1 -1
  98. package/dist/interaction_client/PopupClient.js +47 -37
  99. package/dist/interaction_client/PopupClient.js.map +1 -1
  100. package/dist/interaction_client/RedirectClient.js +16 -15
  101. package/dist/interaction_client/RedirectClient.js.map +1 -1
  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 +82 -0
  105. package/dist/interaction_client/SilentAuthCodeClient.js.map +1 -0
  106. package/dist/interaction_client/SilentCacheClient.d.ts +1 -1
  107. package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
  108. package/dist/interaction_client/SilentCacheClient.js +12 -2
  109. package/dist/interaction_client/SilentCacheClient.js.map +1 -1
  110. package/dist/interaction_client/SilentIframeClient.js +15 -13
  111. package/dist/interaction_client/SilentIframeClient.js.map +1 -1
  112. package/dist/interaction_client/SilentRefreshClient.js +10 -7
  113. package/dist/interaction_client/SilentRefreshClient.js.map +1 -1
  114. package/dist/interaction_client/StandardInteractionClient.d.ts +3 -23
  115. package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  116. package/dist/interaction_client/StandardInteractionClient.js +51 -105
  117. package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
  118. package/dist/interaction_handler/InteractionHandler.d.ts +11 -2
  119. package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
  120. package/dist/interaction_handler/InteractionHandler.js +36 -10
  121. package/dist/interaction_handler/InteractionHandler.js.map +1 -1
  122. package/dist/interaction_handler/PopupHandler.js +1 -1
  123. package/dist/interaction_handler/PopupHandler.js.map +1 -1
  124. package/dist/interaction_handler/RedirectHandler.d.ts +1 -1
  125. package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
  126. package/dist/interaction_handler/RedirectHandler.js +2 -2
  127. package/dist/interaction_handler/RedirectHandler.js.map +1 -1
  128. package/dist/interaction_handler/SilentHandler.js +1 -1
  129. package/dist/interaction_handler/SilentHandler.js.map +1 -1
  130. package/dist/navigation/NavigationClient.js +1 -1
  131. package/dist/navigation/NavigationClient.js.map +1 -1
  132. package/dist/network/FetchClient.js +1 -1
  133. package/dist/network/FetchClient.js.map +1 -1
  134. package/dist/network/XhrClient.js +1 -1
  135. package/dist/network/XhrClient.js.map +1 -1
  136. package/dist/packageMetadata.d.ts +1 -1
  137. package/dist/packageMetadata.js +2 -2
  138. package/dist/packageMetadata.js.map +1 -1
  139. package/dist/request/AuthorizationCodeRequest.d.ts +8 -0
  140. package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -0
  141. package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
  142. package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
  143. package/dist/request/PopupRequest.d.ts +1 -1
  144. package/dist/request/PopupRequest.d.ts.map +1 -1
  145. package/dist/request/RedirectRequest.d.ts +1 -1
  146. package/dist/request/RedirectRequest.d.ts.map +1 -1
  147. package/dist/request/SilentRequest.d.ts +1 -1
  148. package/dist/request/SilentRequest.d.ts.map +1 -1
  149. package/dist/request/SsoSilentRequest.d.ts +1 -1
  150. package/dist/request/SsoSilentRequest.d.ts.map +1 -1
  151. package/dist/utils/BrowserConstants.d.ts +4 -0
  152. package/dist/utils/BrowserConstants.d.ts.map +1 -1
  153. package/dist/utils/BrowserConstants.js +8 -3
  154. package/dist/utils/BrowserConstants.js.map +1 -1
  155. package/dist/utils/BrowserProtocolUtils.js +1 -1
  156. package/dist/utils/BrowserProtocolUtils.js.map +1 -1
  157. package/dist/utils/BrowserStringUtils.js +1 -1
  158. package/dist/utils/BrowserStringUtils.js.map +1 -1
  159. package/dist/utils/BrowserUtils.js +1 -1
  160. package/dist/utils/BrowserUtils.js.map +1 -1
  161. package/dist/utils/MathUtils.js +1 -1
  162. package/dist/utils/MathUtils.js.map +1 -1
  163. package/dist/utils/PopupUtils.js +1 -1
  164. package/dist/utils/PopupUtils.js.map +1 -1
  165. package/lib/msal-browser.js +1465 -520
  166. package/lib/msal-browser.js.map +1 -1
  167. package/lib/msal-browser.min.js +30 -30
  168. package/package.json +9 -2
package/CHANGELOG.json CHANGED
@@ -1,6 +1,209 @@
1
1
  {
2
2
  "name": "@azure/msal-browser",
3
3
  "entries": [
4
+ {
5
+ "date": "Tue, 04 Jan 2022 00:20:29 GMT",
6
+ "tag": "@azure/msal-browser_v2.21.0",
7
+ "version": "2.21.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "hemoral@microsoft.com",
12
+ "package": "@azure/msal-browser",
13
+ "commit": "60e2cfc0e9daa3c24e994617b4ac42aef6880b74",
14
+ "comment": "Add support for requested claims in silent token acquisition #4296"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@azure/msal-browser",
19
+ "comment": "Bump @azure/msal-common to v6.0.0",
20
+ "commit": "bd9b1af91c278926ab2e6943cf90817a7ac4957b"
21
+ }
22
+ ],
23
+ "patch": [
24
+ {
25
+ "author": "janutter@microsoft.com",
26
+ "package": "@azure/msal-browser",
27
+ "commit": "e3c66105f3bf617dc4fd06905e04b37e865c303c",
28
+ "comment": "Clear interaction status even if there is no ongoing request #4314"
29
+ }
30
+ ]
31
+ }
32
+ },
33
+ {
34
+ "date": "Tue, 07 Dec 2021 00:17:01 GMT",
35
+ "tag": "@azure/msal-browser_v2.20.0",
36
+ "version": "2.20.0",
37
+ "comments": {
38
+ "none": [
39
+ {
40
+ "author": "kamausamuel11@gmail.com",
41
+ "package": "@azure/msal-browser",
42
+ "commit": "8259de7520d2940d290332cd03c5b8babeb0966e",
43
+ "comment": "deps: run an audit fix on msal-browser"
44
+ },
45
+ {
46
+ "author": "thomas.norling@microsoft.com",
47
+ "package": "@azure/msal-browser",
48
+ "commit": "02dbd9172368bfc69e4a47f01a3ada0b96345c81",
49
+ "comment": "Package.json updates"
50
+ }
51
+ ],
52
+ "minor": [
53
+ {
54
+ "author": "janutter@microsoft.com",
55
+ "package": "@azure/msal-browser",
56
+ "commit": "4741b6c3a6a3dd58feefde93c095c05e1eca5e03",
57
+ "comment": "Add acquireTokenByCode API for hybrid spa flow #3978"
58
+ },
59
+ {
60
+ "author": "beachball",
61
+ "package": "@azure/msal-browser",
62
+ "comment": "Bump @azure/msal-common to v5.2.0",
63
+ "commit": "d7c209f7aa3ae4380a77a31ff1319fbf7201ae45"
64
+ }
65
+ ],
66
+ "patch": [
67
+ {
68
+ "author": "hemoral@microsoft.com",
69
+ "package": "@azure/msal-browser",
70
+ "commit": "e983e25ba899bb437a135ec50ad6c77023c72e5b",
71
+ "comment": "Fix circular dependencies in AuthenticationHeaderParser and AsyncMemoryStorage #4235"
72
+ }
73
+ ]
74
+ }
75
+ },
76
+ {
77
+ "date": "Mon, 01 Nov 2021 23:53:21 GMT",
78
+ "tag": "@azure/msal-browser_v2.19.0",
79
+ "version": "2.19.0",
80
+ "comments": {
81
+ "minor": [
82
+ {
83
+ "author": "hemoral@microsoft.com",
84
+ "package": "@azure/msal-browser",
85
+ "commit": "51669adf5e2fe446bf94925fe77762b64e9513fc",
86
+ "comment": "Add support for in-memory storage of token binding keys #4183"
87
+ },
88
+ {
89
+ "author": "hemoral@microsoft.com",
90
+ "package": "@azure/msal-browser",
91
+ "commit": "a81fcef3d82523e03828d91bb0ee8d2ab2cc20d8",
92
+ "comment": "Add support for ephemeral SSH certificate acquisition #4178"
93
+ },
94
+ {
95
+ "author": "hemoral@microsoft.com",
96
+ "package": "@azure/msal-browser",
97
+ "commit": "51669adf5e2fe446bf94925fe77762b64e9513fc",
98
+ "comment": "Add support for in-memory storage of token binding keys #4183"
99
+ },
100
+ {
101
+ "author": "hemoral@microsoft.com",
102
+ "package": "@azure/msal-browser",
103
+ "commit": "5b350a5f97b43e1a5a87153bb4a13632f7c615b9",
104
+ "comment": "Add support for SHR nonce #3999"
105
+ },
106
+ {
107
+ "author": "beachball",
108
+ "package": "@azure/msal-browser",
109
+ "comment": "Bump @azure/msal-common to v5.1.0",
110
+ "commit": "6ac29855822ce1ba9531a68bcaa6f37443ef16c0"
111
+ }
112
+ ],
113
+ "patch": [
114
+ {
115
+ "author": "hemoral@microsoft.com",
116
+ "package": "@azure/msal-browser",
117
+ "commit": "9099d711c0e52e13937bcfda7ddf34bac48f9ecd",
118
+ "comment": "Add support for different key types in IndexedDB storage #4052"
119
+ },
120
+ {
121
+ "author": "janutter@microsoft.com",
122
+ "package": "@azure/msal-browser",
123
+ "commit": "b1f5bd520f8abb972725c1a863f37b7fb5ebd756",
124
+ "comment": "Ensure correlation is passed to all interaction clients in acquireTokenSilent #4186"
125
+ },
126
+ {
127
+ "author": "Michael.Currie@rjwgroup.com",
128
+ "package": "@azure/msal-browser",
129
+ "commit": "3f3f5a8880a7e46445d71b8920a6ccc70d453f30",
130
+ "comment": "Fix typo in noTokenRequestCacheError (#4136)"
131
+ },
132
+ {
133
+ "author": "thomas.norling@microsoft.com",
134
+ "package": "@azure/msal-browser",
135
+ "commit": "dc80d3177eef0b3c7499cbf3ebb2fea8e2c408c9",
136
+ "comment": "Fix redirect processing when allowRedirectInIframe: true #4142"
137
+ }
138
+ ]
139
+ }
140
+ },
141
+ {
142
+ "date": "Mon, 04 Oct 2021 23:12:35 GMT",
143
+ "tag": "@azure/msal-browser_v2.18.0",
144
+ "version": "2.18.0",
145
+ "comments": {
146
+ "patch": [
147
+ {
148
+ "author": "jagore@microsoft.com",
149
+ "package": "@azure/msal-browser",
150
+ "comment": "Consistently export error types and messages for errors thrown by MSAL #4117",
151
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
152
+ },
153
+ {
154
+ "author": "thomas.norling@microsoft.com",
155
+ "package": "@azure/msal-browser",
156
+ "comment": "Move helper functions up to BaseInteractionClient #4049",
157
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
158
+ },
159
+ {
160
+ "author": "thomas.norling@microsoft.com",
161
+ "package": "@azure/msal-browser",
162
+ "comment": "Export library version #4124",
163
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
164
+ }
165
+ ],
166
+ "none": [
167
+ {
168
+ "author": "thomas.norling@microsoft.com",
169
+ "package": "@azure/msal-browser",
170
+ "comment": "Disallow major bumps",
171
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
172
+ },
173
+ {
174
+ "author": "thomas.norling@microsoft.com",
175
+ "package": "@azure/msal-browser",
176
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
177
+ },
178
+ {
179
+ "author": "kamausamuel11@gmail.com",
180
+ "package": "@azure/msal-browser",
181
+ "comment": "fix: add forked bindings library to node-extensions",
182
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
183
+ }
184
+ ],
185
+ "minor": [
186
+ {
187
+ "author": "thomas.norling@microsoft.com",
188
+ "package": "@azure/msal-browser",
189
+ "comment": "Emit event when user logs in or out from a different tab or window #3981",
190
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
191
+ },
192
+ {
193
+ "author": "prkanher@microsoft.com",
194
+ "package": "@azure/msal-browser",
195
+ "comment": "Remove requirement of user hint on ssoSilent API #4123",
196
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
197
+ },
198
+ {
199
+ "author": "beachball",
200
+ "package": "@azure/msal-browser",
201
+ "comment": "Bump @azure/msal-common to v5.0.1",
202
+ "commit": "d03c16f09026bac36048241da4635e73d32a6eed"
203
+ }
204
+ ]
205
+ }
206
+ },
4
207
  {
5
208
  "date": "Tue, 07 Sep 2021 23:22:24 GMT",
6
209
  "tag": "@azure/msal-browser_v2.17.0",