@azure/msal-common 4.2.1 → 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 (190) hide show
  1. package/CHANGELOG.json +212 -1
  2. package/LICENSE +21 -21
  3. package/README.md +61 -58
  4. package/changelog.md +402 -344
  5. package/dist/_virtual/_tslib.js +90 -0
  6. package/dist/_virtual/_tslib.js.map +1 -0
  7. package/dist/account/AuthToken.js +43 -0
  8. package/dist/account/AuthToken.js.map +1 -0
  9. package/dist/account/CcsCredential.d.ts +9 -0
  10. package/dist/account/CcsCredential.d.ts.map +1 -0
  11. package/dist/account/CcsCredential.js +14 -0
  12. package/dist/account/CcsCredential.js.map +1 -0
  13. package/dist/account/ClientInfo.d.ts +6 -1
  14. package/dist/account/ClientInfo.d.ts.map +1 -1
  15. package/dist/account/ClientInfo.js +44 -0
  16. package/dist/account/ClientInfo.js.map +1 -0
  17. package/dist/account/TokenClaims.d.ts +1 -0
  18. package/dist/account/TokenClaims.d.ts.map +1 -1
  19. package/dist/authority/Authority.d.ts +25 -0
  20. package/dist/authority/Authority.d.ts.map +1 -1
  21. package/dist/authority/Authority.js +574 -0
  22. package/dist/authority/Authority.js.map +1 -0
  23. package/dist/authority/AuthorityFactory.js +69 -0
  24. package/dist/authority/AuthorityFactory.js.map +1 -0
  25. package/dist/authority/AuthorityOptions.d.ts +2 -0
  26. package/dist/authority/AuthorityOptions.d.ts.map +1 -1
  27. package/dist/authority/AuthorityType.js +17 -0
  28. package/dist/authority/AuthorityType.js.map +1 -0
  29. package/dist/authority/AzureRegion.d.ts +2 -0
  30. package/dist/authority/AzureRegion.d.ts.map +1 -0
  31. package/dist/authority/AzureRegionConfiguration.d.ts +6 -0
  32. package/dist/authority/AzureRegionConfiguration.d.ts.map +1 -0
  33. package/dist/authority/CloudInstanceDiscoveryResponse.js +13 -0
  34. package/dist/authority/CloudInstanceDiscoveryResponse.js.map +1 -0
  35. package/dist/authority/OpenIdConfigResponse.js +15 -0
  36. package/dist/authority/OpenIdConfigResponse.js.map +1 -0
  37. package/dist/authority/ProtocolMode.js +17 -0
  38. package/dist/authority/ProtocolMode.js.map +1 -0
  39. package/dist/authority/RegionDiscovery.d.ts +31 -0
  40. package/dist/authority/RegionDiscovery.d.ts.map +1 -0
  41. package/dist/authority/RegionDiscovery.js +119 -0
  42. package/dist/authority/RegionDiscovery.js.map +1 -0
  43. package/dist/authority/RegionDiscoveryMetadata.d.ts +7 -0
  44. package/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
  45. package/dist/cache/CacheManager.js +713 -0
  46. package/dist/cache/CacheManager.js.map +1 -0
  47. package/dist/cache/entities/AccessTokenEntity.js +111 -0
  48. package/dist/cache/entities/AccessTokenEntity.js.map +1 -0
  49. package/dist/cache/entities/AccountEntity.d.ts +5 -5
  50. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  51. package/dist/cache/entities/AccountEntity.js +242 -0
  52. package/dist/cache/entities/AccountEntity.js.map +1 -0
  53. package/dist/cache/entities/AppMetadataEntity.js +74 -0
  54. package/dist/cache/entities/AppMetadataEntity.js.map +1 -0
  55. package/dist/cache/entities/AuthorityMetadataEntity.js +81 -0
  56. package/dist/cache/entities/AuthorityMetadataEntity.js.map +1 -0
  57. package/dist/cache/entities/CacheRecord.js +19 -0
  58. package/dist/cache/entities/CacheRecord.js.map +1 -0
  59. package/dist/cache/entities/CredentialEntity.js +142 -0
  60. package/dist/cache/entities/CredentialEntity.js.map +1 -0
  61. package/dist/cache/entities/IdTokenEntity.js +71 -0
  62. package/dist/cache/entities/IdTokenEntity.js.map +1 -0
  63. package/dist/cache/entities/RefreshTokenEntity.js +73 -0
  64. package/dist/cache/entities/RefreshTokenEntity.js.map +1 -0
  65. package/dist/cache/entities/ServerTelemetryEntity.js +35 -0
  66. package/dist/cache/entities/ServerTelemetryEntity.js.map +1 -0
  67. package/dist/cache/entities/ThrottlingEntity.js +32 -0
  68. package/dist/cache/entities/ThrottlingEntity.js.map +1 -0
  69. package/dist/cache/persistence/TokenCacheContext.js +39 -0
  70. package/dist/cache/persistence/TokenCacheContext.js.map +1 -0
  71. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  72. package/dist/client/AuthorizationCodeClient.js +388 -0
  73. package/dist/client/AuthorizationCodeClient.js.map +1 -0
  74. package/dist/client/BaseClient.d.ts +2 -1
  75. package/dist/client/BaseClient.d.ts.map +1 -1
  76. package/dist/client/BaseClient.js +101 -0
  77. package/dist/client/BaseClient.js.map +1 -0
  78. package/dist/client/ClientCredentialClient.d.ts.map +1 -1
  79. package/dist/client/ClientCredentialClient.js +169 -0
  80. package/dist/client/ClientCredentialClient.js.map +1 -0
  81. package/dist/client/DeviceCodeClient.d.ts +6 -0
  82. package/dist/client/DeviceCodeClient.d.ts.map +1 -1
  83. package/dist/client/DeviceCodeClient.js +212 -0
  84. package/dist/client/DeviceCodeClient.js.map +1 -0
  85. package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
  86. package/dist/client/OnBehalfOfClient.js +209 -0
  87. package/dist/client/OnBehalfOfClient.js.map +1 -0
  88. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  89. package/dist/client/RefreshTokenClient.js +212 -0
  90. package/dist/client/RefreshTokenClient.js.map +1 -0
  91. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  92. package/dist/client/SilentFlowClient.js +132 -0
  93. package/dist/client/SilentFlowClient.js.map +1 -0
  94. package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
  95. package/dist/client/UsernamePasswordClient.js +112 -0
  96. package/dist/client/UsernamePasswordClient.js.map +1 -0
  97. package/dist/config/ClientConfiguration.d.ts +3 -0
  98. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  99. package/dist/config/ClientConfiguration.js +91 -0
  100. package/dist/config/ClientConfiguration.js.map +1 -0
  101. package/dist/crypto/ICrypto.js +53 -0
  102. package/dist/crypto/ICrypto.js.map +1 -0
  103. package/dist/crypto/PopTokenGenerator.js +72 -0
  104. package/dist/crypto/PopTokenGenerator.js.map +1 -0
  105. package/dist/error/AuthError.js +46 -0
  106. package/dist/error/AuthError.js.map +1 -0
  107. package/dist/error/ClientAuthError.d.ts +13 -6
  108. package/dist/error/ClientAuthError.d.ts.map +1 -1
  109. package/dist/error/ClientAuthError.js +456 -0
  110. package/dist/error/ClientAuthError.js.map +1 -0
  111. package/dist/error/ClientConfigurationError.d.ts +1 -6
  112. package/dist/error/ClientConfigurationError.d.ts.map +1 -1
  113. package/dist/error/ClientConfigurationError.js +210 -0
  114. package/dist/error/ClientConfigurationError.js.map +1 -0
  115. package/dist/error/InteractionRequiredAuthError.js +48 -0
  116. package/dist/error/InteractionRequiredAuthError.js.map +1 -0
  117. package/dist/error/ServerError.js +25 -0
  118. package/dist/error/ServerError.js.map +1 -0
  119. package/dist/index.cjs.js +7045 -0
  120. package/dist/index.cjs.js.map +1 -0
  121. package/dist/index.d.ts +4 -0
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js +43 -6479
  124. package/dist/index.js.map +1 -0
  125. package/dist/logger/Logger.d.ts +12 -3
  126. package/dist/logger/Logger.d.ts.map +1 -1
  127. package/dist/logger/Logger.js +183 -0
  128. package/dist/logger/Logger.js.map +1 -0
  129. package/dist/network/INetworkModule.d.ts +1 -1
  130. package/dist/network/INetworkModule.d.ts.map +1 -1
  131. package/dist/network/INetworkModule.js +21 -0
  132. package/dist/network/INetworkModule.js.map +1 -0
  133. package/dist/network/NetworkManager.js +56 -0
  134. package/dist/network/NetworkManager.js.map +1 -0
  135. package/dist/network/ThrottlingUtils.d.ts.map +1 -1
  136. package/dist/network/ThrottlingUtils.js +95 -0
  137. package/dist/network/ThrottlingUtils.js.map +1 -0
  138. package/dist/packageMetadata.d.ts +1 -1
  139. package/dist/packageMetadata.js +8 -0
  140. package/dist/packageMetadata.js.map +1 -0
  141. package/dist/request/CommonAuthorizationCodeRequest.d.ts +3 -0
  142. package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
  143. package/dist/request/CommonAuthorizationUrlRequest.d.ts +1 -0
  144. package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
  145. package/dist/request/CommonClientCredentialRequest.d.ts +7 -4
  146. package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
  147. package/dist/request/CommonRefreshTokenRequest.d.ts +2 -0
  148. package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
  149. package/dist/request/RequestParameterBuilder.d.ts +11 -0
  150. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  151. package/dist/request/RequestParameterBuilder.js +340 -0
  152. package/dist/request/RequestParameterBuilder.js.map +1 -0
  153. package/dist/request/RequestValidator.d.ts.map +1 -1
  154. package/dist/request/RequestValidator.js +92 -0
  155. package/dist/request/RequestValidator.js.map +1 -0
  156. package/dist/request/ScopeSet.js +192 -0
  157. package/dist/request/ScopeSet.js.map +1 -0
  158. package/dist/response/AuthenticationResult.d.ts +1 -1
  159. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  160. package/dist/response/AuthorizationCodePayload.d.ts +1 -0
  161. package/dist/response/AuthorizationCodePayload.d.ts.map +1 -1
  162. package/dist/response/IMDSBadResponse.d.ts +5 -0
  163. package/dist/response/IMDSBadResponse.d.ts.map +1 -0
  164. package/dist/response/ResponseHandler.d.ts.map +1 -1
  165. package/dist/response/ResponseHandler.js +281 -0
  166. package/dist/response/ResponseHandler.js.map +1 -0
  167. package/dist/telemetry/server/ServerTelemetryManager.d.ts +23 -1
  168. package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  169. package/dist/telemetry/server/ServerTelemetryManager.js +168 -0
  170. package/dist/telemetry/server/ServerTelemetryManager.js.map +1 -0
  171. package/dist/url/UrlString.d.ts +10 -0
  172. package/dist/url/UrlString.d.ts.map +1 -1
  173. package/dist/url/UrlString.js +223 -0
  174. package/dist/url/UrlString.js.map +1 -0
  175. package/dist/utils/Constants.d.ts +47 -4
  176. package/dist/utils/Constants.d.ts.map +1 -1
  177. package/dist/utils/Constants.js +362 -0
  178. package/dist/utils/Constants.js.map +1 -0
  179. package/dist/utils/ProtocolUtils.js +77 -0
  180. package/dist/utils/ProtocolUtils.js.map +1 -0
  181. package/dist/utils/StringUtils.d.ts +5 -0
  182. package/dist/utils/StringUtils.d.ts.map +1 -1
  183. package/dist/utils/StringUtils.js +128 -0
  184. package/dist/utils/StringUtils.js.map +1 -0
  185. package/dist/utils/TimeUtils.d.ts +13 -0
  186. package/dist/utils/TimeUtils.d.ts.map +1 -1
  187. package/dist/utils/TimeUtils.js +53 -0
  188. package/dist/utils/TimeUtils.js.map +1 -0
  189. package/package.json +10 -19
  190. package/dist/index.es.js +0 -6472
package/CHANGELOG.json CHANGED
@@ -1,6 +1,217 @@
1
1
  {
2
2
  "name": "@azure/msal-common",
3
3
  "entries": [
4
+ {
5
+ "date": "Mon, 02 Aug 2021 23:19:21 GMT",
6
+ "tag": "@azure/msal-common_v4.5.1",
7
+ "version": "4.5.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Fix double encoding state #3903",
12
+ "author": "bmahal@microsoft.com",
13
+ "commit": "6a650097f99a395c7d7723ac2184a71e759d9b74",
14
+ "package": "@azure/msal-common"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Thu, 22 Jul 2021 22:50:22 GMT",
21
+ "tag": "@azure/msal-common_v4.5.0",
22
+ "version": "4.5.0",
23
+ "comments": {
24
+ "minor": [
25
+ {
26
+ "comment": "Adding ROPC for confidential client apps (#3838)",
27
+ "author": "sameera.gajjarapu@microsoft.com",
28
+ "commit": "c467d18adff33f98071837ee0fd51d4259236b9f",
29
+ "package": "@azure/msal-common"
30
+ },
31
+ {
32
+ "comment": "feat: add regional authority telemetry #3662",
33
+ "author": "samuelkamau@microsoft.com",
34
+ "commit": "aeeeac862e2fcd5d441bc196545f7a8a70f0a0e2",
35
+ "package": "@azure/msal-common"
36
+ },
37
+ {
38
+ "comment": "Add support for prompt=create #3773",
39
+ "author": "joarroyo@microsoft.com",
40
+ "commit": "c9314cedfe08b643e43e358243dc7f49253f77ef",
41
+ "package": "@azure/msal-common"
42
+ }
43
+ ],
44
+ "patch": [
45
+ {
46
+ "comment": "Add constant for active account cache key #3755",
47
+ "author": "thomas.norling@microsoft.com",
48
+ "commit": "f30e039bb2559a3a2ce79a22cede11dcf892a4fa",
49
+ "package": "@azure/msal-common"
50
+ },
51
+ {
52
+ "comment": "Fix double query string for logout endpoint #3814",
53
+ "author": "thomas.norling@microsoft.com",
54
+ "commit": "c74a548e4fda00217c7da6918e9b559392f89b5f",
55
+ "package": "@azure/msal-common"
56
+ }
57
+ ]
58
+ }
59
+ },
60
+ {
61
+ "date": "Mon, 28 Jun 2021 23:39:48 GMT",
62
+ "tag": "@azure/msal-common_v4.4.0",
63
+ "version": "4.4.0",
64
+ "comments": {
65
+ "minor": [
66
+ {
67
+ "comment": "Add CCS parameters to headers or form_data #3636",
68
+ "author": "prkanher@microsoft.com",
69
+ "commit": "2956380aecde38382a28c7ed15164b8dfd65cfca",
70
+ "package": "@azure/msal-common"
71
+ },
72
+ {
73
+ "comment": "Add correlationId to log messages #3601",
74
+ "author": "joarroyo@microsoft.com",
75
+ "commit": "8d58f91c9dd9d65df4a016c7bcdbbd03e9bf573e",
76
+ "package": "@azure/msal-common"
77
+ }
78
+ ],
79
+ "patch": [
80
+ {
81
+ "comment": "Export ServerAuthorizationTokenResponse type #3657",
82
+ "author": "thomas.norling@microsoft.com",
83
+ "commit": "f6f7a7c738706668c869fcc84338d8c212a5ab4f",
84
+ "package": "@azure/msal-common"
85
+ },
86
+ {
87
+ "comment": "Discard tokens cached after current time #3786",
88
+ "author": "thomas.norling@microsoft.com",
89
+ "commit": "99f70d893b77ff1aaa3a81ad85135abbaf21b0c4",
90
+ "package": "@azure/msal-common"
91
+ },
92
+ {
93
+ "comment": "Remove input params from Empty Scopes error constructors #3654",
94
+ "author": "thomas.norling@microsoft.com",
95
+ "commit": "8c2b7f5c3c859bb4936f8409212f84a825c560be",
96
+ "package": "@azure/msal-common"
97
+ },
98
+ {
99
+ "comment": "feat: modify the access token filter #3375",
100
+ "author": "samuelkamau@microsoft.com",
101
+ "commit": "b8d7b2e7224bef7bebeb7e1f93b4358b77266804",
102
+ "package": "@azure/msal-common"
103
+ },
104
+ {
105
+ "comment": "fix: fix device code polling bug",
106
+ "author": "samuelkamau@microsoft.com",
107
+ "commit": "97f32a03df3835bf4f1be60ab7179c10196459a4",
108
+ "package": "@azure/msal-common"
109
+ }
110
+ ],
111
+ "none": [
112
+ {
113
+ "comment": "fix: update package lock files",
114
+ "author": "samuelkamau@microsoft.com",
115
+ "commit": "0199e41269b79de70f7d0da0fb12448db534f784",
116
+ "package": "@azure/msal-common"
117
+ },
118
+ {
119
+ "comment": "Upgrade Jest to v27 #3719",
120
+ "author": "thomas.norling@microsoft.com",
121
+ "commit": "6c34aa5be3ee9536bd2febd2b7781fcdf0d28786",
122
+ "package": "@azure/msal-common"
123
+ },
124
+ {
125
+ "comment": "Component governance dependency updates #3655",
126
+ "author": "joarroyo@microsoft.com",
127
+ "commit": "3f74f3bffd88fc0b39a854da090f01aa9c072618",
128
+ "package": "@azure/msal-common"
129
+ }
130
+ ]
131
+ }
132
+ },
133
+ {
134
+ "date": "Thu, 13 May 2021 18:34:08 GMT",
135
+ "tag": "@azure/msal-common_v4.3.0",
136
+ "version": "4.3.0",
137
+ "comments": {
138
+ "none": [
139
+ {
140
+ "comment": "Enable no-param-reassign lint rule",
141
+ "author": "janutter@microsoft.com",
142
+ "commit": "e24f5cff944c05ccaecb180fa68814bc89512095",
143
+ "package": "@azure/msal-common"
144
+ }
145
+ ]
146
+ }
147
+ },
148
+ {
149
+ "date": "Wed, 12 May 2021 18:35:03 GMT",
150
+ "tag": "@azure/msal-common_v4.3.0",
151
+ "version": "4.3.0",
152
+ "comments": {
153
+ "patch": [
154
+ {
155
+ "comment": "Fix double query string when authority endpoints contain query strings #3620",
156
+ "author": "thomas.norling@microsoft.com",
157
+ "commit": "32aa15fd13d1c1d9219dc7c486427a2c2bb686cc",
158
+ "package": "@azure/msal-common"
159
+ },
160
+ {
161
+ "comment": "change msal-browser/msal-common to preserveModules to enable treeshaking #3300",
162
+ "author": "oo.thomas96@gmail.com",
163
+ "commit": "065f107fff0e2dd37d9c8cee2fd6808988bb4038",
164
+ "package": "@azure/msal-common"
165
+ },
166
+ {
167
+ "comment": "Revert expiresOn type to make it nullable #3557",
168
+ "author": "hemoral@microsoft.com",
169
+ "commit": "971e30f44c76b6c29546e80e69b3f881624808d8",
170
+ "package": "@azure/msal-common"
171
+ },
172
+ {
173
+ "comment": "Add logLevel Trace to Logger #3589",
174
+ "author": "joarroyo@microsoft.com",
175
+ "commit": "a214d520cc07c0113f3dfacb2344448d37458f42",
176
+ "package": "@azure/msal-common"
177
+ },
178
+ {
179
+ "comment": "Throw untrustedAuthority error if discovery endpoint returns error in response body #3572",
180
+ "author": "thomas.norling@microsoft.com",
181
+ "commit": "1ddbb1bec251759959be5d5962e44d9c6537ce7c",
182
+ "package": "@azure/msal-common"
183
+ },
184
+ {
185
+ "comment": "Add claims comparison to accountInfoIsEqual function #3527",
186
+ "author": "thomas.norling@microsoft.com",
187
+ "commit": "878253750fecf12b4a865a5821df20d333ff0134",
188
+ "package": "@azure/msal-common"
189
+ },
190
+ {
191
+ "comment": "Add check for empty object string in claims request parameter #3579",
192
+ "author": "prkanher@microsoft.com",
193
+ "commit": "eeddb7ad13387c77973d8d728e1b87fd2e9feca4",
194
+ "package": "@azure/msal-common"
195
+ }
196
+ ],
197
+ "none": [
198
+ {
199
+ "comment": "Regenerate package-lock #3510",
200
+ "author": "joarroyo@microsoft.com",
201
+ "commit": "ba0092a452f71a7bc58aaf7acdf94536d66f7493",
202
+ "package": "@azure/msal-common"
203
+ }
204
+ ],
205
+ "minor": [
206
+ {
207
+ "comment": "add support for regional authorities",
208
+ "author": "samuelkamau@microsoft.com",
209
+ "commit": "8baa387b34162b1bc96e341d7ad7158debd4b99d",
210
+ "package": "@azure/msal-common"
211
+ }
212
+ ]
213
+ }
214
+ },
4
215
  {
5
216
  "date": "Thu, 22 Apr 2021 23:26:08 GMT",
6
217
  "tag": "@azure/msal-common_v4.2.1",
@@ -20,7 +231,7 @@
20
231
  "package": "@azure/msal-common"
21
232
  },
22
233
  {
23
- "comment": "Change \"ts\" type from string to number in SignedHttpRequest #3474",
234
+ "comment": "Change ts type from string to number in SignedHttpRequest #3474",
24
235
  "author": "prkanher@microsoft.com",
25
236
  "commit": "8f39845452845b47a0bdce41a92c3185d352c7c7",
26
237
  "package": "@azure/msal-common"
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
package/README.md CHANGED
@@ -1,58 +1,61 @@
1
- # Microsoft Authentication Library for JavaScript (MSAL.js) Common Protocols Package
2
- [![npm version](https://img.shields.io/npm/v/@azure/msal-common.svg?style=flat)](https://www.npmjs.com/package/@azure/msal-common/)[![npm version](https://img.shields.io/npm/dm/@azure/msal-common.svg)](https://nodei.co/npm/@azure/msal-common/)[![Coverage Status](https://coveralls.io/repos/github/AzureAD/microsoft-authentication-library-for-js/badge.svg?branch=dev)](https://coveralls.io/github/AzureAD/microsoft-authentication-library-for-js?branch=dev)
3
-
4
- | <a href="https://docs.microsoft.com/azure/active-directory/develop/guidedsetups/active-directory-javascriptspa" target="_blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html" target="_blank">Library Reference</a> |
5
- | --- | --- | --- |
6
-
7
- 1. [About](#about)
8
- 2. [FAQ](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/FAQ.md)
9
- 3. [Releases](#releases)
10
- 4. [Prerequisites and Usage](#prerequisites-and-usage)
11
- 5. [Installation](#installation)
12
- 6. [Security Reporting](#security-reporting)
13
- 7. [License](#license)
14
- 8. [Code of Conduct](#we-value-and-adhere-to-the-microsoft-open-source-code-of-conduct)
15
-
16
- ## About
17
-
18
- The MSAL library for JavaScript enables client-side JavaScript applications to authenticate users using [Azure AD](https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-overview) work and school accounts (AAD), Microsoft personal accounts (MSA) and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc. through [Azure AD B2C](https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-overview#identity-providers) service. It also enables your app to get tokens to access [Microsoft Cloud](https://www.microsoft.com/enterprise) services such as [Microsoft Graph](https://graph.microsoft.io).
19
-
20
- The `@azure/msal-common` package described by the code in this folder serves as a common package dependency for the `@azure/msal-browser` package (and in the future, the msal-node package). Be aware that this is an internal library, and is subject to frequent change. **It is not meant for production consumption by itself.**
21
-
22
- ## FAQ
23
-
24
- See [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/FAQ.md).
25
-
26
- ## Releases
27
-
28
- *Expect us to detail our major and minor releases moving forward, while leaving out our patch releases. Patch release notes can be found in our change log.*
29
-
30
- | Date | Release | Announcement | Main features |
31
- | ------| ------- | ---------| --------- |
32
- | August 4, 2020 | @azure/msal-common v1.1.0 | [Release Notes](https://https://github.com/AzureAD/microsoft-authentication-library-for-js/releases/tag/msal-common-v1.1.0)
33
- | July 20, 2020 | @azure/msal-common v1.0.0 | [Release Notes](https://github.com/AzureAD/microsoft-authentication-library-for-js/releases/tag/msal-common-v1.0.0) | Full release version of the `@azure/msal-common` |
34
- | May 11, 2020 | @azure/msal-common v1.0.0-beta | Beta version of the `@azure/msal-common` package |
35
- | January 17, 2020 | @azure/msal-common v1.0.0-alpha | No release notes yet | Alpha version of the `@azure/msal-common` package with authorization code flow for SPAs working in dev. |
36
-
37
- ## Prerequisites and Usage
38
- This library is not meant for production use. Please use one of these packages specific to the platform you are developing for:
39
-
40
- - [MSAL for Single Page Applications (SPAs)](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser)
41
- - [MSAL for Node.js](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-node)
42
-
43
- ## Installation
44
- ### Via NPM:
45
-
46
- npm install @azure/msal-common
47
-
48
- ## Security Reporting
49
-
50
- If you find a security issue with our libraries or services please report it to [secure@microsoft.com](mailto:secure@microsoft.com) with as much detail as possible. Your submission may be eligible for a bounty through the [Microsoft Bounty](http://aka.ms/bugbounty) program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting [this page](https://technet.microsoft.com/en-us/security/dd252948) and subscribing to Security Advisory Alerts.
51
-
52
- ## License
53
-
54
- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License (the "License");
55
-
56
- ## We Value and Adhere to the Microsoft Open Source Code of Conduct
57
-
58
- This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
1
+ # Microsoft Authentication Library for JavaScript (MSAL.js) Common Protocols Package
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@azure/msal-common.svg?style=flat)](https://www.npmjs.com/package/@azure/msal-common/)
4
+ [![npm version](https://img.shields.io/npm/dm/@azure/msal-common.svg)](https://nodei.co/npm/@azure/msal-common/)
5
+ [![codecov](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js/branch/dev/graph/badge.svg?flag=msal-common)](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js)
6
+
7
+ | <a href="https://docs.microsoft.com/azure/active-directory/develop/guidedsetups/active-directory-javascriptspa" target="_blank">Getting Started</a> | <a href="https://aka.ms/aaddevv2" target="_blank">AAD Docs</a> | <a href="https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html" target="_blank">Library Reference</a> |
8
+ | --- | --- | --- |
9
+
10
+ 1. [About](#about)
11
+ 2. [FAQ](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/FAQ.md)
12
+ 3. [Releases](#releases)
13
+ 4. [Prerequisites and Usage](#prerequisites-and-usage)
14
+ 5. [Installation](#installation)
15
+ 6. [Security Reporting](#security-reporting)
16
+ 7. [License](#license)
17
+ 8. [Code of Conduct](#we-value-and-adhere-to-the-microsoft-open-source-code-of-conduct)
18
+
19
+ ## About
20
+
21
+ The MSAL library for JavaScript enables client-side JavaScript applications to authenticate users using [Azure AD](https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-overview) work and school accounts (AAD), Microsoft personal accounts (MSA) and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc. through [Azure AD B2C](https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-overview#identity-providers) service. It also enables your app to get tokens to access [Microsoft Cloud](https://www.microsoft.com/enterprise) services such as [Microsoft Graph](https://graph.microsoft.io).
22
+
23
+ The `@azure/msal-common` package described by the code in this folder serves as a common package dependency for the `@azure/msal-browser` package (and in the future, the msal-node package). Be aware that this is an internal library, and is subject to frequent change. **It is not meant for production consumption by itself.**
24
+
25
+ ## FAQ
26
+
27
+ See [here](https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-common/FAQ.md).
28
+
29
+ ## Releases
30
+
31
+ *Expect us to detail our major and minor releases moving forward, while leaving out our patch releases. Patch release notes can be found in our change log.*
32
+
33
+ | Date | Release | Announcement | Main features |
34
+ | ------| ------- | ---------| --------- |
35
+ | August 4, 2020 | @azure/msal-common v1.1.0 | [Release Notes](https://https://github.com/AzureAD/microsoft-authentication-library-for-js/releases/tag/msal-common-v1.1.0)
36
+ | July 20, 2020 | @azure/msal-common v1.0.0 | [Release Notes](https://github.com/AzureAD/microsoft-authentication-library-for-js/releases/tag/msal-common-v1.0.0) | Full release version of the `@azure/msal-common` |
37
+ | May 11, 2020 | @azure/msal-common v1.0.0-beta | Beta version of the `@azure/msal-common` package |
38
+ | January 17, 2020 | @azure/msal-common v1.0.0-alpha | No release notes yet | Alpha version of the `@azure/msal-common` package with authorization code flow for SPAs working in dev. |
39
+
40
+ ## Prerequisites and Usage
41
+ This library is not meant for production use. Please use one of these packages specific to the platform you are developing for:
42
+
43
+ - [MSAL for Single Page Applications (SPAs)](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-browser)
44
+ - [MSAL for Node.js](https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-node)
45
+
46
+ ## Installation
47
+ ### Via NPM:
48
+
49
+ npm install @azure/msal-common
50
+
51
+ ## Security Reporting
52
+
53
+ If you find a security issue with our libraries or services please report it to [secure@microsoft.com](mailto:secure@microsoft.com) with as much detail as possible. Your submission may be eligible for a bounty through the [Microsoft Bounty](http://aka.ms/bugbounty) program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting [this page](https://technet.microsoft.com/en-us/security/dd252948) and subscribing to Security Advisory Alerts.
54
+
55
+ ## License
56
+
57
+ Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License (the "License");
58
+
59
+ ## We Value and Adhere to the Microsoft Open Source Code of Conduct
60
+
61
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.