@azure/msal-common 15.12.0 → 16.0.0-alpha.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 (419) hide show
  1. package/dist/account/AccountInfo.d.ts +0 -1
  2. package/dist/account/AccountInfo.d.ts.map +1 -1
  3. package/dist/account/AccountInfo.mjs +1 -1
  4. package/dist/account/AccountInfo.mjs.map +1 -1
  5. package/dist/account/AuthToken.mjs +1 -1
  6. package/dist/account/AuthToken.mjs.map +1 -1
  7. package/dist/account/CcsCredential.mjs +1 -1
  8. package/dist/account/CcsCredential.mjs.map +1 -1
  9. package/dist/account/ClientInfo.d.ts.map +1 -1
  10. package/dist/account/ClientInfo.mjs +4 -6
  11. package/dist/account/ClientInfo.mjs.map +1 -1
  12. package/dist/account/TokenClaims.mjs +1 -1
  13. package/dist/account/TokenClaims.mjs.map +1 -1
  14. package/dist/authority/Authority.d.ts +2 -2
  15. package/dist/authority/Authority.d.ts.map +1 -1
  16. package/dist/authority/Authority.mjs +89 -105
  17. package/dist/authority/Authority.mjs.map +1 -1
  18. package/dist/authority/AuthorityFactory.d.ts +6 -2
  19. package/dist/authority/AuthorityFactory.d.ts.map +1 -1
  20. package/dist/authority/AuthorityFactory.mjs +8 -5
  21. package/dist/authority/AuthorityFactory.mjs.map +1 -1
  22. package/dist/authority/AuthorityMetadata.d.ts +2 -2
  23. package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
  24. package/dist/authority/AuthorityMetadata.mjs +8 -8
  25. package/dist/authority/AuthorityMetadata.mjs.map +1 -1
  26. package/dist/authority/AuthorityOptions.d.ts +0 -1
  27. package/dist/authority/AuthorityOptions.d.ts.map +1 -1
  28. package/dist/authority/AuthorityOptions.mjs +1 -1
  29. package/dist/authority/AuthorityOptions.mjs.map +1 -1
  30. package/dist/authority/AuthorityType.mjs +1 -1
  31. package/dist/authority/AuthorityType.mjs.map +1 -1
  32. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  33. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  34. package/dist/authority/OIDCOptions.d.ts +2 -2
  35. package/dist/authority/OIDCOptions.d.ts.map +1 -1
  36. package/dist/authority/OpenIdConfigResponse.mjs +1 -1
  37. package/dist/authority/ProtocolMode.mjs +1 -1
  38. package/dist/authority/ProtocolMode.mjs.map +1 -1
  39. package/dist/authority/RegionDiscovery.d.ts +3 -3
  40. package/dist/authority/RegionDiscovery.d.ts.map +1 -1
  41. package/dist/authority/RegionDiscovery.mjs +14 -15
  42. package/dist/authority/RegionDiscovery.mjs.map +1 -1
  43. package/dist/cache/CacheManager.d.ts +25 -17
  44. package/dist/cache/CacheManager.d.ts.map +1 -1
  45. package/dist/cache/CacheManager.mjs +69 -80
  46. package/dist/cache/CacheManager.mjs.map +1 -1
  47. package/dist/cache/entities/AccessTokenEntity.d.ts +0 -4
  48. package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  49. package/dist/cache/entities/AccountEntity.d.ts +4 -56
  50. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  51. package/dist/cache/entities/CredentialEntity.d.ts +0 -2
  52. package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
  53. package/dist/cache/interface/ICacheManager.d.ts +41 -12
  54. package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
  55. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  56. package/dist/cache/persistence/TokenCacheContext.mjs.map +1 -1
  57. package/dist/cache/utils/AccountEntityUtils.d.ts +60 -0
  58. package/dist/cache/utils/AccountEntityUtils.d.ts.map +1 -0
  59. package/dist/cache/utils/AccountEntityUtils.mjs +212 -0
  60. package/dist/cache/utils/AccountEntityUtils.mjs.map +1 -0
  61. package/dist/cache/utils/CacheHelpers.d.ts +2 -2
  62. package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
  63. package/dist/cache/utils/CacheHelpers.mjs +10 -13
  64. package/dist/cache/utils/CacheHelpers.mjs.map +1 -1
  65. package/dist/cache/utils/CacheTypes.d.ts +0 -1
  66. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  67. package/dist/client/AuthorizationCodeClient.d.ts +1 -1
  68. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  69. package/dist/client/AuthorizationCodeClient.mjs +16 -20
  70. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  71. package/dist/client/BaseClient.d.ts +3 -3
  72. package/dist/client/BaseClient.d.ts.map +1 -1
  73. package/dist/client/BaseClient.mjs +7 -12
  74. package/dist/client/BaseClient.mjs.map +1 -1
  75. package/dist/client/RefreshTokenClient.d.ts +1 -1
  76. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  77. package/dist/client/RefreshTokenClient.mjs +22 -27
  78. package/dist/client/RefreshTokenClient.mjs.map +1 -1
  79. package/dist/client/SilentFlowClient.d.ts +1 -1
  80. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  81. package/dist/client/SilentFlowClient.mjs +8 -12
  82. package/dist/client/SilentFlowClient.mjs.map +1 -1
  83. package/dist/config/ClientConfiguration.d.ts +2 -22
  84. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  85. package/dist/config/ClientConfiguration.mjs +9 -15
  86. package/dist/config/ClientConfiguration.mjs.map +1 -1
  87. package/dist/constants/AADServerParamKeys.mjs +1 -1
  88. package/dist/crypto/ICrypto.d.ts +5 -3
  89. package/dist/crypto/ICrypto.d.ts.map +1 -1
  90. package/dist/crypto/ICrypto.mjs +1 -1
  91. package/dist/crypto/ICrypto.mjs.map +1 -1
  92. package/dist/crypto/JoseHeader.mjs +1 -1
  93. package/dist/crypto/JoseHeader.mjs.map +1 -1
  94. package/dist/crypto/PopTokenGenerator.d.ts +2 -2
  95. package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
  96. package/dist/crypto/PopTokenGenerator.mjs +3 -5
  97. package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
  98. package/dist/error/AuthError.d.ts +1 -18
  99. package/dist/error/AuthError.d.ts.map +1 -1
  100. package/dist/error/AuthError.mjs +12 -34
  101. package/dist/error/AuthError.mjs.map +1 -1
  102. package/dist/error/AuthErrorCodes.mjs +1 -1
  103. package/dist/error/CacheError.d.ts +1 -6
  104. package/dist/error/CacheError.d.ts.map +1 -1
  105. package/dist/error/CacheError.mjs +6 -13
  106. package/dist/error/CacheError.mjs.map +1 -1
  107. package/dist/error/CacheErrorCodes.mjs +1 -1
  108. package/dist/error/ClientAuthError.d.ts +0 -224
  109. package/dist/error/ClientAuthError.d.ts.map +1 -1
  110. package/dist/error/ClientAuthError.mjs +3 -235
  111. package/dist/error/ClientAuthError.mjs.map +1 -1
  112. package/dist/error/ClientAuthErrorCodes.d.ts +0 -8
  113. package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -1
  114. package/dist/error/ClientAuthErrorCodes.mjs +2 -10
  115. package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
  116. package/dist/error/ClientConfigurationError.d.ts +0 -123
  117. package/dist/error/ClientConfigurationError.d.ts.map +1 -1
  118. package/dist/error/ClientConfigurationError.mjs +3 -129
  119. package/dist/error/ClientConfigurationError.mjs.map +1 -1
  120. package/dist/error/ClientConfigurationErrorCodes.d.ts +0 -2
  121. package/dist/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
  122. package/dist/error/ClientConfigurationErrorCodes.mjs +3 -5
  123. package/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
  124. package/dist/error/InteractionRequiredAuthError.d.ts +1 -19
  125. package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
  126. package/dist/error/InteractionRequiredAuthError.mjs +10 -35
  127. package/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
  128. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  129. package/dist/error/JoseHeaderError.d.ts +0 -4
  130. package/dist/error/JoseHeaderError.d.ts.map +1 -1
  131. package/dist/error/JoseHeaderError.mjs +3 -8
  132. package/dist/error/JoseHeaderError.mjs.map +1 -1
  133. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  134. package/dist/error/NetworkError.mjs +1 -1
  135. package/dist/error/NetworkError.mjs.map +1 -1
  136. package/dist/error/ServerError.mjs +1 -1
  137. package/dist/error/ServerError.mjs.map +1 -1
  138. package/dist/exports-browser-only.d.ts +4 -3
  139. package/dist/exports-browser-only.d.ts.map +1 -1
  140. package/dist/exports-common.d.ts +8 -6
  141. package/dist/exports-common.d.ts.map +1 -1
  142. package/dist/exports-node-only.d.ts +1 -4
  143. package/dist/exports-node-only.d.ts.map +1 -1
  144. package/dist/index-browser.mjs +12 -8
  145. package/dist/index-browser.mjs.map +1 -1
  146. package/dist/index-node.mjs +10 -7
  147. package/dist/index-node.mjs.map +1 -1
  148. package/dist/index.mjs +12 -8
  149. package/dist/index.mjs.map +1 -1
  150. package/dist/logger/Logger.d.ts +12 -13
  151. package/dist/logger/Logger.d.ts.map +1 -1
  152. package/dist/logger/Logger.mjs +16 -21
  153. package/dist/logger/Logger.mjs.map +1 -1
  154. package/dist/network/INetworkModule.mjs +1 -1
  155. package/dist/network/INetworkModule.mjs.map +1 -1
  156. package/dist/network/RequestThumbprint.mjs +1 -1
  157. package/dist/network/ThrottlingUtils.d.ts.map +1 -1
  158. package/dist/network/ThrottlingUtils.mjs +6 -7
  159. package/dist/network/ThrottlingUtils.mjs.map +1 -1
  160. package/dist/packageMetadata.d.ts +1 -1
  161. package/dist/packageMetadata.d.ts.map +1 -1
  162. package/dist/packageMetadata.mjs +2 -2
  163. package/dist/protocol/Authorize.d.ts +1 -2
  164. package/dist/protocol/Authorize.d.ts.map +1 -1
  165. package/dist/protocol/Authorize.mjs +14 -14
  166. package/dist/protocol/Authorize.mjs.map +1 -1
  167. package/dist/request/AuthenticationHeaderParser.d.ts.map +1 -1
  168. package/dist/request/AuthenticationHeaderParser.mjs +3 -3
  169. package/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
  170. package/dist/request/BaseAuthRequest.d.ts +1 -7
  171. package/dist/request/BaseAuthRequest.d.ts.map +1 -1
  172. package/dist/request/RequestParameterBuilder.d.ts +3 -9
  173. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  174. package/dist/request/RequestParameterBuilder.mjs +7 -20
  175. package/dist/request/RequestParameterBuilder.mjs.map +1 -1
  176. package/dist/request/ScopeSet.mjs +5 -5
  177. package/dist/request/ScopeSet.mjs.map +1 -1
  178. package/dist/response/AuthenticationResult.d.ts +1 -1
  179. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  180. package/dist/response/ResponseHandler.d.ts +6 -5
  181. package/dist/response/ResponseHandler.d.ts.map +1 -1
  182. package/dist/response/ResponseHandler.mjs +39 -41
  183. package/dist/response/ResponseHandler.mjs.map +1 -1
  184. package/dist/telemetry/performance/IPerformanceClient.d.ts +0 -29
  185. package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  186. package/dist/telemetry/performance/PerformanceClient.d.ts +5 -81
  187. package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  188. package/dist/telemetry/performance/PerformanceClient.mjs +24 -166
  189. package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
  190. package/dist/telemetry/performance/PerformanceEvent.d.ts +0 -280
  191. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  192. package/dist/telemetry/performance/PerformanceEvent.mjs +2 -483
  193. package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
  194. package/dist/telemetry/performance/PerformanceEvents.d.ts +65 -0
  195. package/dist/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
  196. package/dist/telemetry/performance/PerformanceEvents.mjs +73 -0
  197. package/dist/telemetry/performance/PerformanceEvents.mjs.map +1 -0
  198. package/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -4
  199. package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  200. package/dist/telemetry/performance/StubPerformanceClient.mjs +2 -26
  201. package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
  202. package/dist/telemetry/server/ServerTelemetryManager.d.ts +2 -2
  203. package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  204. package/dist/telemetry/server/ServerTelemetryManager.mjs +28 -30
  205. package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
  206. package/dist/url/UrlString.d.ts +0 -5
  207. package/dist/url/UrlString.d.ts.map +1 -1
  208. package/dist/url/UrlString.mjs +5 -13
  209. package/dist/url/UrlString.mjs.map +1 -1
  210. package/dist/utils/ClientAssertionUtils.mjs +1 -1
  211. package/dist/utils/ClientAssertionUtils.mjs.map +1 -1
  212. package/dist/utils/Constants.d.ts +81 -117
  213. package/dist/utils/Constants.d.ts.map +1 -1
  214. package/dist/utils/Constants.mjs +100 -131
  215. package/dist/utils/Constants.mjs.map +1 -1
  216. package/dist/utils/FunctionWrappers.d.ts +2 -2
  217. package/dist/utils/FunctionWrappers.d.ts.map +1 -1
  218. package/dist/utils/FunctionWrappers.mjs +19 -20
  219. package/dist/utils/FunctionWrappers.mjs.map +1 -1
  220. package/dist/utils/ProtocolUtils.mjs +7 -7
  221. package/dist/utils/ProtocolUtils.mjs.map +1 -1
  222. package/dist/utils/StringUtils.mjs +1 -1
  223. package/dist/utils/StringUtils.mjs.map +1 -1
  224. package/dist/utils/TimeUtils.mjs +1 -1
  225. package/dist/utils/TimeUtils.mjs.map +1 -1
  226. package/dist/utils/UrlUtils.d.ts +1 -2
  227. package/dist/utils/UrlUtils.d.ts.map +1 -1
  228. package/dist/utils/UrlUtils.mjs +3 -10
  229. package/dist/utils/UrlUtils.mjs.map +1 -1
  230. package/lib/index-browser.cjs +26 -201
  231. package/lib/index-browser.cjs.map +1 -1
  232. package/lib/{index-node-C8h2xZEM.js → index-node-FrCFfFuh.js} +1606 -2487
  233. package/lib/index-node-FrCFfFuh.js.map +1 -0
  234. package/lib/index-node.cjs +4 -33
  235. package/lib/index-node.cjs.map +1 -1
  236. package/lib/index.cjs +3 -33
  237. package/lib/index.cjs.map +1 -1
  238. package/lib/types/account/AccountInfo.d.ts +0 -1
  239. package/lib/types/account/AccountInfo.d.ts.map +1 -1
  240. package/lib/types/account/ClientInfo.d.ts.map +1 -1
  241. package/lib/types/authority/Authority.d.ts +2 -2
  242. package/lib/types/authority/Authority.d.ts.map +1 -1
  243. package/lib/types/authority/AuthorityFactory.d.ts +6 -2
  244. package/lib/types/authority/AuthorityFactory.d.ts.map +1 -1
  245. package/lib/types/authority/AuthorityMetadata.d.ts +2 -2
  246. package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -1
  247. package/lib/types/authority/AuthorityOptions.d.ts +0 -1
  248. package/lib/types/authority/AuthorityOptions.d.ts.map +1 -1
  249. package/lib/types/authority/OIDCOptions.d.ts +2 -2
  250. package/lib/types/authority/OIDCOptions.d.ts.map +1 -1
  251. package/lib/types/authority/RegionDiscovery.d.ts +3 -3
  252. package/lib/types/authority/RegionDiscovery.d.ts.map +1 -1
  253. package/lib/types/cache/CacheManager.d.ts +25 -17
  254. package/lib/types/cache/CacheManager.d.ts.map +1 -1
  255. package/lib/types/cache/entities/AccessTokenEntity.d.ts +0 -4
  256. package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  257. package/lib/types/cache/entities/AccountEntity.d.ts +4 -56
  258. package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -1
  259. package/lib/types/cache/entities/CredentialEntity.d.ts +0 -2
  260. package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -1
  261. package/lib/types/cache/interface/ICacheManager.d.ts +41 -12
  262. package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -1
  263. package/lib/types/cache/utils/AccountEntityUtils.d.ts +60 -0
  264. package/lib/types/cache/utils/AccountEntityUtils.d.ts.map +1 -0
  265. package/lib/types/cache/utils/CacheHelpers.d.ts +2 -2
  266. package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -1
  267. package/lib/types/cache/utils/CacheTypes.d.ts +0 -1
  268. package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -1
  269. package/lib/types/client/AuthorizationCodeClient.d.ts +1 -1
  270. package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
  271. package/lib/types/client/BaseClient.d.ts +3 -3
  272. package/lib/types/client/BaseClient.d.ts.map +1 -1
  273. package/lib/types/client/RefreshTokenClient.d.ts +1 -1
  274. package/lib/types/client/RefreshTokenClient.d.ts.map +1 -1
  275. package/lib/types/client/SilentFlowClient.d.ts +1 -1
  276. package/lib/types/client/SilentFlowClient.d.ts.map +1 -1
  277. package/lib/types/config/ClientConfiguration.d.ts +2 -22
  278. package/lib/types/config/ClientConfiguration.d.ts.map +1 -1
  279. package/lib/types/crypto/ICrypto.d.ts +5 -3
  280. package/lib/types/crypto/ICrypto.d.ts.map +1 -1
  281. package/lib/types/crypto/PopTokenGenerator.d.ts +2 -2
  282. package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -1
  283. package/lib/types/error/AuthError.d.ts +1 -18
  284. package/lib/types/error/AuthError.d.ts.map +1 -1
  285. package/lib/types/error/CacheError.d.ts +1 -6
  286. package/lib/types/error/CacheError.d.ts.map +1 -1
  287. package/lib/types/error/ClientAuthError.d.ts +0 -224
  288. package/lib/types/error/ClientAuthError.d.ts.map +1 -1
  289. package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
  290. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -1
  291. package/lib/types/error/ClientConfigurationError.d.ts +0 -123
  292. package/lib/types/error/ClientConfigurationError.d.ts.map +1 -1
  293. package/lib/types/error/ClientConfigurationErrorCodes.d.ts +0 -2
  294. package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
  295. package/lib/types/error/InteractionRequiredAuthError.d.ts +1 -19
  296. package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -1
  297. package/lib/types/error/JoseHeaderError.d.ts +0 -4
  298. package/lib/types/error/JoseHeaderError.d.ts.map +1 -1
  299. package/lib/types/exports-browser-only.d.ts +4 -3
  300. package/lib/types/exports-browser-only.d.ts.map +1 -1
  301. package/lib/types/exports-common.d.ts +8 -6
  302. package/lib/types/exports-common.d.ts.map +1 -1
  303. package/lib/types/exports-node-only.d.ts +1 -4
  304. package/lib/types/exports-node-only.d.ts.map +1 -1
  305. package/lib/types/logger/Logger.d.ts +12 -13
  306. package/lib/types/logger/Logger.d.ts.map +1 -1
  307. package/lib/types/network/ThrottlingUtils.d.ts.map +1 -1
  308. package/lib/types/packageMetadata.d.ts +1 -1
  309. package/lib/types/packageMetadata.d.ts.map +1 -1
  310. package/lib/types/protocol/Authorize.d.ts +1 -2
  311. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  312. package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -1
  313. package/lib/types/request/BaseAuthRequest.d.ts +1 -7
  314. package/lib/types/request/BaseAuthRequest.d.ts.map +1 -1
  315. package/lib/types/request/RequestParameterBuilder.d.ts +3 -9
  316. package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -1
  317. package/lib/types/response/AuthenticationResult.d.ts +1 -1
  318. package/lib/types/response/AuthenticationResult.d.ts.map +1 -1
  319. package/lib/types/response/ResponseHandler.d.ts +6 -5
  320. package/lib/types/response/ResponseHandler.d.ts.map +1 -1
  321. package/lib/types/telemetry/performance/IPerformanceClient.d.ts +0 -29
  322. package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  323. package/lib/types/telemetry/performance/PerformanceClient.d.ts +5 -81
  324. package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  325. package/lib/types/telemetry/performance/PerformanceEvent.d.ts +0 -280
  326. package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  327. package/lib/types/telemetry/performance/PerformanceEvents.d.ts +65 -0
  328. package/lib/types/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
  329. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +0 -4
  330. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  331. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +2 -2
  332. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  333. package/lib/types/url/UrlString.d.ts +0 -5
  334. package/lib/types/url/UrlString.d.ts.map +1 -1
  335. package/lib/types/utils/Constants.d.ts +81 -117
  336. package/lib/types/utils/Constants.d.ts.map +1 -1
  337. package/lib/types/utils/FunctionWrappers.d.ts +2 -2
  338. package/lib/types/utils/FunctionWrappers.d.ts.map +1 -1
  339. package/lib/types/utils/UrlUtils.d.ts +1 -2
  340. package/lib/types/utils/UrlUtils.d.ts.map +1 -1
  341. package/package.json +120 -122
  342. package/src/account/AccountInfo.ts +0 -1
  343. package/src/account/ClientInfo.ts +3 -6
  344. package/src/authority/Authority.ts +145 -146
  345. package/src/authority/AuthorityFactory.ts +7 -7
  346. package/src/authority/AuthorityMetadata.ts +21 -12
  347. package/src/authority/AuthorityOptions.ts +0 -1
  348. package/src/authority/OIDCOptions.ts +2 -2
  349. package/src/authority/RegionDiscovery.ts +20 -33
  350. package/src/cache/CacheManager.ts +176 -126
  351. package/src/cache/entities/AccessTokenEntity.ts +0 -4
  352. package/src/cache/entities/AccountEntity.ts +4 -285
  353. package/src/cache/entities/CredentialEntity.ts +0 -2
  354. package/src/cache/interface/ICacheManager.ts +61 -15
  355. package/src/cache/utils/AccountEntityUtils.ts +287 -0
  356. package/src/cache/utils/CacheHelpers.ts +23 -37
  357. package/src/cache/utils/CacheTypes.ts +0 -1
  358. package/src/client/AuthorizationCodeClient.ts +28 -49
  359. package/src/client/BaseClient.ts +8 -20
  360. package/src/client/RefreshTokenClient.ts +29 -61
  361. package/src/client/SilentFlowClient.ts +11 -20
  362. package/src/config/ClientConfiguration.ts +9 -37
  363. package/src/crypto/ICrypto.ts +5 -3
  364. package/src/crypto/PopTokenGenerator.ts +3 -13
  365. package/src/error/AuthError.ts +11 -30
  366. package/src/error/CacheError.ts +4 -15
  367. package/src/error/ClientAuthError.ts +1 -311
  368. package/src/error/ClientAuthErrorCodes.ts +0 -8
  369. package/src/error/ClientConfigurationError.ts +1 -194
  370. package/src/error/ClientConfigurationErrorCodes.ts +0 -3
  371. package/src/error/InteractionRequiredAuthError.ts +8 -48
  372. package/src/error/JoseHeaderError.ts +1 -8
  373. package/src/exports-browser-only.ts +2 -6
  374. package/src/exports-common.ts +4 -34
  375. package/src/exports-node-only.ts +1 -4
  376. package/src/logger/Logger.ts +26 -39
  377. package/src/network/ThrottlingUtils.ts +12 -15
  378. package/src/packageMetadata.ts +1 -1
  379. package/src/protocol/Authorize.ts +24 -20
  380. package/src/request/AuthenticationHeaderParser.ts +2 -4
  381. package/src/request/BaseAuthRequest.ts +1 -7
  382. package/src/request/RequestParameterBuilder.ts +30 -45
  383. package/src/request/ScopeSet.ts +4 -4
  384. package/src/response/AuthenticationResult.ts +1 -1
  385. package/src/response/ResponseHandler.ts +53 -58
  386. package/src/telemetry/performance/IPerformanceClient.ts +0 -40
  387. package/src/telemetry/performance/PerformanceClient.ts +29 -266
  388. package/src/telemetry/performance/PerformanceEvent.ts +0 -582
  389. package/src/telemetry/performance/PerformanceEvents.ts +97 -0
  390. package/src/telemetry/performance/StubPerformanceClient.ts +0 -16
  391. package/src/telemetry/server/ServerTelemetryManager.ts +33 -44
  392. package/src/url/UrlString.ts +3 -12
  393. package/src/utils/Constants.ts +103 -146
  394. package/src/utils/FunctionWrappers.ts +28 -29
  395. package/src/utils/ProtocolUtils.ts +6 -6
  396. package/src/utils/UrlUtils.ts +2 -15
  397. package/dist/cache/entities/AccountEntity.mjs +0 -226
  398. package/dist/cache/entities/AccountEntity.mjs.map +0 -1
  399. package/dist/request/CommonClientCredentialRequest.d.ts +0 -18
  400. package/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
  401. package/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
  402. package/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  403. package/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
  404. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  405. package/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
  406. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  407. package/lib/index-node-C8h2xZEM.js.map +0 -1
  408. package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -18
  409. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
  410. package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -22
  411. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  412. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -14
  413. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  414. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -18
  415. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  416. package/src/request/CommonClientCredentialRequest.ts +0 -23
  417. package/src/request/CommonDeviceCodeRequest.ts +0 -31
  418. package/src/request/CommonOnBehalfOfRequest.ts +0 -19
  419. package/src/request/CommonUsernamePasswordRequest.ts +0 -23
@@ -1,68 +1,52 @@
1
- export declare const Constants: {
2
- LIBRARY_NAME: string;
3
- SKU: string;
4
- DEFAULT_AUTHORITY: string;
5
- DEFAULT_AUTHORITY_HOST: string;
6
- DEFAULT_COMMON_TENANT: string;
7
- ADFS: string;
8
- DSTS: string;
9
- AAD_INSTANCE_DISCOVERY_ENDPT: string;
10
- CIAM_AUTH_URL: string;
11
- AAD_TENANT_DOMAIN_SUFFIX: string;
12
- RESOURCE_DELIM: string;
13
- NO_ACCOUNT: string;
14
- CLAIMS: string;
15
- CONSUMER_UTID: string;
16
- OPENID_SCOPE: string;
17
- PROFILE_SCOPE: string;
18
- OFFLINE_ACCESS_SCOPE: string;
19
- EMAIL_SCOPE: string;
20
- CODE_GRANT_TYPE: string;
21
- RT_GRANT_TYPE: string;
22
- S256_CODE_CHALLENGE_METHOD: string;
23
- URL_FORM_CONTENT_TYPE: string;
24
- AUTHORIZATION_PENDING: string;
25
- NOT_DEFINED: string;
26
- EMPTY_STRING: string;
27
- NOT_APPLICABLE: string;
28
- NOT_AVAILABLE: string;
29
- FORWARD_SLASH: string;
30
- IMDS_ENDPOINT: string;
31
- IMDS_VERSION: string;
32
- IMDS_TIMEOUT: number;
33
- AZURE_REGION_AUTO_DISCOVER_FLAG: string;
34
- REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX: string;
35
- KNOWN_PUBLIC_CLOUDS: string[];
36
- SHR_NONCE_VALIDITY: number;
37
- INVALID_INSTANCE: string;
38
- };
39
- export declare const HttpStatus: {
40
- readonly SUCCESS: 200;
41
- readonly SUCCESS_RANGE_START: 200;
42
- readonly SUCCESS_RANGE_END: 299;
43
- readonly REDIRECT: 302;
44
- readonly CLIENT_ERROR: 400;
45
- readonly CLIENT_ERROR_RANGE_START: 400;
46
- readonly BAD_REQUEST: 400;
47
- readonly UNAUTHORIZED: 401;
48
- readonly NOT_FOUND: 404;
49
- readonly REQUEST_TIMEOUT: 408;
50
- readonly GONE: 410;
51
- readonly TOO_MANY_REQUESTS: 429;
52
- readonly CLIENT_ERROR_RANGE_END: 499;
53
- readonly SERVER_ERROR: 500;
54
- readonly SERVER_ERROR_RANGE_START: 500;
55
- readonly SERVICE_UNAVAILABLE: 503;
56
- readonly GATEWAY_TIMEOUT: 504;
57
- readonly SERVER_ERROR_RANGE_END: 599;
58
- readonly MULTI_SIDED_ERROR: 600;
59
- };
60
- export type HttpStatus = (typeof HttpStatus)[keyof typeof HttpStatus];
61
- export declare const HttpMethod: {
62
- readonly GET: "GET";
63
- readonly POST: "POST";
64
- };
65
- export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
1
+ export declare const SKU = "msal.js.common";
2
+ export declare const DEFAULT_AUTHORITY = "https://login.microsoftonline.com/common/";
3
+ export declare const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com";
4
+ export declare const DEFAULT_COMMON_TENANT = "common";
5
+ export declare const ADFS = "adfs";
6
+ export declare const DSTS = "dstsv2";
7
+ export declare const AAD_INSTANCE_DISCOVERY_ENDPT: string;
8
+ export declare const CIAM_AUTH_URL = ".ciamlogin.com";
9
+ export declare const AAD_TENANT_DOMAIN_SUFFIX = ".onmicrosoft.com";
10
+ export declare const RESOURCE_DELIM = "|";
11
+ export declare const CONSUMER_UTID = "9188040d-6c67-4c5b-b112-36a304b66dad";
12
+ export declare const OPENID_SCOPE = "openid";
13
+ export declare const PROFILE_SCOPE = "profile";
14
+ export declare const OFFLINE_ACCESS_SCOPE = "offline_access";
15
+ export declare const EMAIL_SCOPE = "email";
16
+ export declare const CODE_GRANT_TYPE = "authorization_code";
17
+ export declare const S256_CODE_CHALLENGE_METHOD = "S256";
18
+ export declare const URL_FORM_CONTENT_TYPE = "application/x-www-form-urlencoded;charset=utf-8";
19
+ export declare const AUTHORIZATION_PENDING = "authorization_pending";
20
+ export declare const NOT_APPLICABLE = "N/A";
21
+ export declare const NOT_AVAILABLE = "Not Available";
22
+ export declare const FORWARD_SLASH = "/";
23
+ export declare const IMDS_ENDPOINT = "http://169.254.169.254/metadata/instance/compute/location";
24
+ export declare const IMDS_VERSION = "2020-06-01";
25
+ export declare const IMDS_TIMEOUT = 2000;
26
+ export declare const AZURE_REGION_AUTO_DISCOVER_FLAG = "TryAutoDetect";
27
+ export declare const REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX = "login.microsoft.com";
28
+ export declare const KNOWN_PUBLIC_CLOUDS: string[];
29
+ export declare const SHR_NONCE_VALIDITY = 240;
30
+ export declare const INVALID_INSTANCE = "invalid_instance";
31
+ export declare const HTTP_SUCCESS: number;
32
+ export declare const HTTP_SUCCESS_RANGE_START: number;
33
+ export declare const HTTP_SUCCESS_RANGE_END: number;
34
+ export declare const HTTP_REDIRECT: number;
35
+ export declare const HTTP_CLIENT_ERROR: number;
36
+ export declare const HTTP_CLIENT_ERROR_RANGE_START: number;
37
+ export declare const HTTP_BAD_REQUEST: number;
38
+ export declare const HTTP_UNAUTHORIZED: number;
39
+ export declare const HTTP_NOT_FOUND: number;
40
+ export declare const HTTP_REQUEST_TIMEOUT: number;
41
+ export declare const HTTP_GONE: number;
42
+ export declare const HTTP_TOO_MANY_REQUESTS: number;
43
+ export declare const HTTP_CLIENT_ERROR_RANGE_END: number;
44
+ export declare const HTTP_SERVER_ERROR: number;
45
+ export declare const HTTP_SERVER_ERROR_RANGE_START: number;
46
+ export declare const HTTP_SERVICE_UNAVAILABLE: number;
47
+ export declare const HTTP_GATEWAY_TIMEOUT: number;
48
+ export declare const HTTP_SERVER_ERROR_RANGE_END: number;
49
+ export declare const HTTP_MULTI_SIDED_ERROR: number;
66
50
  export declare const OIDC_DEFAULT_SCOPES: string[];
67
51
  export declare const OIDC_SCOPES: string[];
68
52
  /**
@@ -89,12 +73,12 @@ export type PersistentCacheKeys = (typeof PersistentCacheKeys)[keyof typeof Pers
89
73
  /**
90
74
  * String constants related to AAD Authority
91
75
  */
92
- export declare const AADAuthorityConstants: {
76
+ export declare const AADAuthority: {
93
77
  readonly COMMON: "common";
94
78
  readonly ORGANIZATIONS: "organizations";
95
79
  readonly CONSUMERS: "consumers";
96
80
  };
97
- export type AADAuthorityConstants = (typeof AADAuthorityConstants)[keyof typeof AADAuthorityConstants];
81
+ export type AADAuthority = (typeof AADAuthority)[keyof typeof AADAuthority];
98
82
  /**
99
83
  * Claims request keys
100
84
  */
@@ -132,15 +116,6 @@ export declare const OAuthResponseType: {
132
116
  readonly IDTOKEN_TOKEN_REFRESHTOKEN: "id_token token refresh_token";
133
117
  };
134
118
  export type OAuthResponseType = (typeof OAuthResponseType)[keyof typeof OAuthResponseType];
135
- /**
136
- * allowed values for server response type
137
- * @deprecated Use ResponseMode instead
138
- */
139
- export declare const ServerResponseType: {
140
- readonly QUERY: "query";
141
- readonly FRAGMENT: "fragment";
142
- };
143
- export type ServerResponseType = (typeof ServerResponseType)[keyof typeof ServerResponseType];
144
119
  /**
145
120
  * allowed values for response_mode
146
121
  */
@@ -166,21 +141,15 @@ export type GrantType = (typeof GrantType)[keyof typeof GrantType];
166
141
  /**
167
142
  * Account types in Cache
168
143
  */
169
- export declare const CacheAccountType: {
170
- readonly MSSTS_ACCOUNT_TYPE: "MSSTS";
171
- readonly ADFS_ACCOUNT_TYPE: "ADFS";
172
- readonly MSAV1_ACCOUNT_TYPE: "MSA";
173
- readonly GENERIC_ACCOUNT_TYPE: "Generic";
174
- };
175
- export type CacheAccountType = (typeof CacheAccountType)[keyof typeof CacheAccountType];
144
+ export declare const CACHE_ACCOUNT_TYPE_MSSTS: string;
145
+ export declare const CACHE_ACCOUNT_TYPE_ADFS: string;
146
+ export declare const CACHE_ACCOUNT_TYPE_MSAV1: string;
147
+ export declare const CACHE_ACCOUNT_TYPE_GENERIC: string;
176
148
  /**
177
149
  * Separators used in cache
178
150
  */
179
- export declare const Separators: {
180
- readonly CACHE_KEY_SEPARATOR: "-";
181
- readonly CLIENT_INFO_SEPARATOR: ".";
182
- };
183
- export type Separators = (typeof Separators)[keyof typeof Separators];
151
+ export declare const CACHE_KEY_SEPARATOR: string;
152
+ export declare const CLIENT_INFO_SEPARATOR: string;
184
153
  /**
185
154
  * Credential Type stored in the cache
186
155
  */
@@ -209,13 +178,11 @@ export type CacheType = (typeof CacheType)[keyof typeof CacheType];
209
178
  /**
210
179
  * More Cache related constants
211
180
  */
212
- export declare const APP_METADATA = "appmetadata";
213
- export declare const CLIENT_INFO = "client_info";
214
- export declare const THE_FAMILY_ID = "1";
215
- export declare const AUTHORITY_METADATA_CONSTANTS: {
216
- CACHE_KEY: string;
217
- REFRESH_TIME_SECONDS: number;
218
- };
181
+ export declare const APP_METADATA: string;
182
+ export declare const CLIENT_INFO: string;
183
+ export declare const THE_FAMILY_ID: string;
184
+ export declare const AUTHORITY_METADATA_CACHE_KEY: string;
185
+ export declare const AUTHORITY_METADATA_REFRESH_TIME_SECONDS: number;
219
186
  export declare const AuthorityMetadataSource: {
220
187
  readonly CONFIG: "config";
221
188
  readonly CACHE: "cache";
@@ -223,18 +190,16 @@ export declare const AuthorityMetadataSource: {
223
190
  readonly HARDCODED_VALUES: "hardcoded_values";
224
191
  };
225
192
  export type AuthorityMetadataSource = (typeof AuthorityMetadataSource)[keyof typeof AuthorityMetadataSource];
226
- export declare const SERVER_TELEM_CONSTANTS: {
227
- SCHEMA_VERSION: number;
228
- MAX_CUR_HEADER_BYTES: number;
229
- MAX_LAST_HEADER_BYTES: number;
230
- MAX_CACHED_ERRORS: number;
231
- CACHE_KEY: string;
232
- CATEGORY_SEPARATOR: string;
233
- VALUE_SEPARATOR: string;
234
- OVERFLOW_TRUE: string;
235
- OVERFLOW_FALSE: string;
236
- UNKNOWN_ERROR: string;
237
- };
193
+ export declare const SERVER_TELEM_SCHEMA_VERSION: number;
194
+ export declare const SERVER_TELEM_MAX_CUR_HEADER_BYTES: number;
195
+ export declare const SERVER_TELEM_MAX_LAST_HEADER_BYTES: number;
196
+ export declare const SERVER_TELEM_MAX_CACHED_ERRORS: number;
197
+ export declare const SERVER_TELEM_CACHE_KEY: string;
198
+ export declare const SERVER_TELEM_CATEGORY_SEPARATOR: string;
199
+ export declare const SERVER_TELEM_VALUE_SEPARATOR: string;
200
+ export declare const SERVER_TELEM_OVERFLOW_TRUE: string;
201
+ export declare const SERVER_TELEM_OVERFLOW_FALSE: string;
202
+ export declare const SERVER_TELEM_UNKNOWN_ERROR: string;
238
203
  /**
239
204
  * Type of the authentication request
240
205
  */
@@ -247,16 +212,15 @@ export type AuthenticationScheme = (typeof AuthenticationScheme)[keyof typeof Au
247
212
  /**
248
213
  * Constants related to throttling
249
214
  */
250
- export declare const ThrottlingConstants: {
251
- DEFAULT_THROTTLE_TIME_SECONDS: number;
252
- DEFAULT_MAX_THROTTLE_TIME_SECONDS: number;
253
- THROTTLING_PREFIX: string;
254
- X_MS_LIB_CAPABILITY_VALUE: string;
255
- };
256
- export declare const Errors: {
257
- INVALID_GRANT_ERROR: string;
258
- CLIENT_MISMATCH_ERROR: string;
259
- };
215
+ export declare const DEFAULT_THROTTLE_TIME_SECONDS: number;
216
+ export declare const DEFAULT_MAX_THROTTLE_TIME_SECONDS: number;
217
+ export declare const THROTTLING_PREFIX: string;
218
+ export declare const X_MS_LIB_CAPABILITY_VALUE: string;
219
+ /**
220
+ * Errors
221
+ */
222
+ export declare const INVALID_GRANT_ERROR: string;
223
+ export declare const CLIENT_MISMATCH_ERROR: string;
260
224
  /**
261
225
  * Password grant parameters
262
226
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/utils/Constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;CAoBb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE,eAAO,MAAM,UAAU;;;CAGb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE,eAAO,MAAM,mBAAmB,UAI/B,CAAC;AAEF,eAAO,MAAM,WAAW,UAAkD,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;CASd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;CAEtB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAC3B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAC7B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEvE;;GA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,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;CAWf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GACzB,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE/D,eAAO,MAAM,aAAa,WAAW,CAAC;AAGtC,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAEpD,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
@@ -11,7 +11,7 @@ import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.
11
11
  * @returns
12
12
  * @internal
13
13
  */
14
- export declare const invoke: <T extends any[], U>(callback: (...args: T) => U, eventName: string, logger: Logger, telemetryClient?: IPerformanceClient, correlationId?: string) => (...args: T) => U;
14
+ export declare const invoke: <T extends any[], U>(callback: (...args: T) => U, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => U;
15
15
  /**
16
16
  * Wraps an async function with a performance measurement.
17
17
  * Usage: invokeAsync(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction)
@@ -24,5 +24,5 @@ export declare const invoke: <T extends any[], U>(callback: (...args: T) => U, e
24
24
  * @internal
25
25
  *
26
26
  */
27
- export declare const invokeAsync: <T extends any[], U>(callback: (...args: T) => Promise<U>, eventName: string, logger: Logger, telemetryClient?: IPerformanceClient, correlationId?: string) => (...args: T) => Promise<U>;
27
+ export declare const invokeAsync: <T extends any[], U>(callback: (...args: T) => Promise<U>, eventName: string, logger: Logger, telemetryClient: IPerformanceClient, correlationId: string) => (...args: T) => Promise<U>;
28
28
  //# sourceMappingURL=FunctionWrappers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FunctionWrappers.d.ts","sourceRoot":"","sources":["../../../src/utils/FunctionWrappers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,+DAEJ,MAAM,UACT,MAAM,oBACI,kBAAkB,kBACpB,MAAM,sBAuCzB,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,WAAW,wEAET,MAAM,UACT,MAAM,oBACI,kBAAkB,kBACpB,MAAM,+BAyCzB,CAAC"}
1
+ {"version":3,"file":"FunctionWrappers.d.ts","sourceRoot":"","sources":["../../../src/utils/FunctionWrappers.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,+DAEJ,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,sBAoCxB,CAAC;AAEF;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,WAAW,wEAET,MAAM,UACT,MAAM,mBACG,kBAAkB,iBACpB,MAAM,+BA2CxB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { AuthorizeResponse } from "../response/AuthorizeResponse.js";
2
- import { StringDict } from "./MsalTypes.js";
3
2
  /**
4
3
  * Parses hash string from given string. Returns empty string if no hash symbol is found.
5
4
  * @param hashString
@@ -12,7 +11,7 @@ export declare function getDeserializedResponse(responseString: string): Authori
12
11
  /**
13
12
  * Utility to create a URL from the params map
14
13
  */
15
- export declare function mapToQueryString(parameters: Map<string, string>, encodeExtraParams?: boolean, extraQueryParameters?: StringDict): string;
14
+ export declare function mapToQueryString(parameters: Map<string, string>): string;
16
15
  /**
17
16
  * Normalizes URLs for comparison by removing hash, canonicalizing,
18
17
  * and ensuring consistent URL encoding in query parameters.
@@ -1 +1 @@
1
- {"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/UrlUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAKrE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AA6B5C;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,MAAM,GACvB,iBAAiB,GAAG,IAAI,CA4B1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC5B,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,iBAAiB,GAAE,OAAc,EACjC,oBAAoB,CAAC,EAAE,UAAU,GAClC,MAAM,CAgBR;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAwB7D"}
1
+ {"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/UrlUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAiCrE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAWtE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACnC,cAAc,EAAE,MAAM,GACvB,iBAAiB,GAAG,IAAI,CA4B1B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAQxE;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAwB7D"}
package/package.json CHANGED
@@ -1,127 +1,125 @@
1
1
  {
2
- "name": "@azure/msal-common",
3
- "author": {
4
- "name": "Microsoft",
5
- "email": "nugetaad@microsoft.com",
6
- "url": "https://www.microsoft.com"
7
- },
8
- "license": "MIT",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
12
- },
13
- "version": "15.12.0",
14
- "description": "Microsoft Authentication Library for js",
15
- "keywords": [
16
- "implicit",
17
- "authorization code",
18
- "PKCE",
19
- "js",
20
- "AAD",
21
- "msal",
22
- "oauth"
23
- ],
24
- "sideEffects": false,
25
- "type": "module",
26
- "main": "./lib/index.cjs",
27
- "module": "./dist/index.mjs",
28
- "types": "./dist/index.d.ts",
29
- "exports": {
30
- "./browser": {
31
- "import": {
32
- "types": "./dist/index-browser.d.ts",
33
- "default": "./dist/index-browser.mjs"
34
- },
35
- "require": {
36
- "types": "./lib/types/index-browser.d.ts",
37
- "default": "./lib/index-browser.cjs"
38
- }
2
+ "name": "@azure/msal-common",
3
+ "author": {
4
+ "name": "Microsoft",
5
+ "email": "nugetaad@microsoft.com",
6
+ "url": "https://www.microsoft.com"
39
7
  },
40
- "./node": {
41
- "import": {
42
- "types": "./dist/index-node.d.ts",
43
- "default": "./dist/index-node.mjs"
44
- },
45
- "require": {
46
- "types": "./lib/types/index-node.d.ts",
47
- "default": "./lib/index-node.cjs"
48
- }
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
49
12
  },
50
- ".": {
51
- "import": {
52
- "types": "./dist/index.d.ts",
53
- "default": "./dist/index.mjs"
54
- },
55
- "require": {
56
- "types": "./lib/types/index.d.ts",
57
- "default": "./lib/index.cjs"
58
- }
13
+ "version": "16.0.0-alpha.0",
14
+ "description": "Microsoft Authentication Library for js",
15
+ "keywords": [
16
+ "implicit",
17
+ "authorization code",
18
+ "PKCE",
19
+ "js",
20
+ "AAD",
21
+ "msal",
22
+ "oauth"
23
+ ],
24
+ "sideEffects": false,
25
+ "type": "module",
26
+ "main": "./lib/index.cjs",
27
+ "module": "./dist/index.mjs",
28
+ "types": "./dist/index.d.ts",
29
+ "exports": {
30
+ "./browser": {
31
+ "import": {
32
+ "types": "./dist/index-browser.d.ts",
33
+ "default": "./dist/index-browser.mjs"
34
+ },
35
+ "require": {
36
+ "types": "./lib/types/index-browser.d.ts",
37
+ "default": "./lib/index-browser.cjs"
38
+ }
39
+ },
40
+ "./node": {
41
+ "import": {
42
+ "types": "./dist/index-node.d.ts",
43
+ "default": "./dist/index-node.mjs"
44
+ },
45
+ "require": {
46
+ "types": "./lib/types/index-node.d.ts",
47
+ "default": "./lib/index-node.cjs"
48
+ }
49
+ },
50
+ ".": {
51
+ "import": {
52
+ "types": "./dist/index.d.ts",
53
+ "default": "./dist/index.mjs"
54
+ },
55
+ "require": {
56
+ "types": "./lib/types/index.d.ts",
57
+ "default": "./lib/index.cjs"
58
+ }
59
+ },
60
+ "./package.json": "./package.json"
59
61
  },
60
- "./package.json": "./package.json"
61
- },
62
- "engines": {
63
- "node": ">=0.8.0"
64
- },
65
- "directories": {
66
- "test": "test"
67
- },
68
- "files": [
69
- "dist",
70
- "lib",
71
- "src",
72
- "node",
73
- "browser"
74
- ],
75
- "scripts": {
76
- "clean": "shx rm -rf dist lib",
77
- "clean:coverage": "rimraf ../../.nyc_output/*",
78
- "lint": "eslint src --ext .ts",
79
- "lint:fix": "npm run lint -- --fix",
80
- "test": "jest",
81
- "test:coverage": "jest --coverage",
82
- "test:coverage:only": "npm run clean:coverage && npm run test:coverage",
83
- "build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs",
84
- "build:modules:watch": "rollup -cw --bundleConfigAsCjs",
85
- "build": "npm run clean && npm run build:modules",
86
- "build:all": "npm run build",
87
- "prepack": "npm run build",
88
- "metadata:check": "ts-node scripts/metadata.ts",
89
- "format:check": "prettier --ignore-path .gitignore --check src test",
90
- "format:fix": "prettier --ignore-path .gitignore --write src test",
91
- "apiExtractor": "api-extractor run"
92
- },
93
- "beachball": {
94
- "disallowedChangeTypes": [
95
- "major"
96
- ]
97
- },
98
- "devDependencies": {
99
- "@babel/core": "^7.7.2",
100
- "@babel/plugin-proposal-class-properties": "^7.7.0",
101
- "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
102
- "@babel/preset-env": "^7.7.1",
103
- "@babel/preset-typescript": "^7.7.2",
104
- "@microsoft/api-extractor": "^7.43.4",
105
- "@rollup/plugin-typescript": "^11.0.0",
106
- "@types/debug": "^4.1.5",
107
- "@types/jest": "^29.5.0",
108
- "@types/lodash": "^4.14.182",
109
- "@types/node": "^20.3.1",
110
- "eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
111
- "jest": "^29.5.0",
112
- "jest-junit": "^16.0.0",
113
- "lodash": "^4.17.21",
114
- "msal-test-utils": "file:../../shared-test-utils",
115
- "prettier": "2.8.7",
116
- "rimraf": "^3.0.2",
117
- "rollup": "^4.22.4",
118
- "rollup-msal": "file:../../shared-configs/rollup-msal",
119
- "shx": "^0.3.2",
120
- "ts-jest": "^29.1.0",
121
- "ts-jest-resolver": "^2.0.1",
122
- "ts-node": "^10.9.1",
123
- "tslib": "^1.10.0",
124
- "typescript": "^4.9.5",
125
- "yargs": "^17.5.1"
126
- }
62
+ "engines": {
63
+ "node": ">=0.8.0"
64
+ },
65
+ "directories": {
66
+ "test": "test"
67
+ },
68
+ "files": [
69
+ "dist",
70
+ "lib",
71
+ "src",
72
+ "node",
73
+ "browser"
74
+ ],
75
+ "scripts": {
76
+ "clean": "shx rm -rf dist lib",
77
+ "clean:coverage": "rimraf ../../.nyc_output/*",
78
+ "lint": "eslint src --ext .ts",
79
+ "lint:fix": "npm run lint -- --fix",
80
+ "test": "jest",
81
+ "test:coverage": "jest --coverage",
82
+ "test:coverage:only": "npm run clean:coverage && npm run test:coverage",
83
+ "build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs",
84
+ "build:modules:watch": "rollup -cw --bundleConfigAsCjs",
85
+ "build": "npm run clean && npm run build:modules",
86
+ "build:all": "npm run build",
87
+ "prepack": "npm run build",
88
+ "metadata:check": "ts-node scripts/metadata.ts",
89
+ "format:check": "prettier --ignore-path .gitignore --check src test",
90
+ "format:fix": "prettier --ignore-path .gitignore --write src test",
91
+ "apiExtractor": "api-extractor run"
92
+ },
93
+ "beachball": {
94
+ "disallowedChangeTypes": []
95
+ },
96
+ "devDependencies": {
97
+ "@babel/core": "^7.7.2",
98
+ "@babel/plugin-proposal-class-properties": "^7.7.0",
99
+ "@babel/plugin-proposal-object-rest-spread": "^7.6.2",
100
+ "@babel/preset-env": "^7.7.1",
101
+ "@babel/preset-typescript": "^7.7.2",
102
+ "@microsoft/api-extractor": "^7.43.4",
103
+ "@rollup/plugin-typescript": "^11.0.0",
104
+ "@types/debug": "^4.1.5",
105
+ "@types/jest": "^29.5.0",
106
+ "@types/lodash": "^4.14.182",
107
+ "@types/node": "^20.3.1",
108
+ "eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
109
+ "jest": "^29.5.0",
110
+ "jest-junit": "^16.0.0",
111
+ "lodash": "^4.17.21",
112
+ "msal-test-utils": "file:../../shared-test-utils",
113
+ "prettier": "2.8.7",
114
+ "rimraf": "^3.0.2",
115
+ "rollup": "^4.22.4",
116
+ "rollup-msal": "file:../../shared-configs/rollup-msal",
117
+ "shx": "^0.3.2",
118
+ "ts-jest": "^29.1.0",
119
+ "ts-jest-resolver": "^2.0.1",
120
+ "ts-node": "^10.9.1",
121
+ "tslib": "^1.10.0",
122
+ "typescript": "^4.9.5",
123
+ "yargs": "^17.5.1"
124
+ }
127
125
  }
@@ -57,7 +57,6 @@ export type ActiveAccountFilters = {
57
57
  homeAccountId: string;
58
58
  localAccountId: string;
59
59
  tenantId?: string;
60
- lastUpdatedAt?: string;
61
60
  };
62
61
 
63
62
  /**
@@ -7,7 +7,7 @@ import {
7
7
  createClientAuthError,
8
8
  ClientAuthErrorCodes,
9
9
  } from "../error/ClientAuthError.js";
10
- import { Separators, Constants } from "../utils/Constants.js";
10
+ import * as Constants from "../utils/Constants.js";
11
11
 
12
12
  /**
13
13
  * Client info object which consists of two IDs. Need to add more info here.
@@ -53,14 +53,11 @@ export function buildClientInfoFromHomeAccountId(
53
53
  );
54
54
  }
55
55
  const clientInfoParts: string[] = homeAccountId.split(
56
- Separators.CLIENT_INFO_SEPARATOR,
56
+ Constants.CLIENT_INFO_SEPARATOR,
57
57
  2
58
58
  );
59
59
  return {
60
60
  uid: clientInfoParts[0],
61
- utid:
62
- clientInfoParts.length < 2
63
- ? Constants.EMPTY_STRING
64
- : clientInfoParts[1],
61
+ utid: clientInfoParts.length < 2 ? "" : clientInfoParts[1],
65
62
  };
66
63
  }