@azure/msal-common 15.13.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 (421) hide show
  1. package/dist/account/AccountInfo.d.ts +0 -4
  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 +1 -5
  10. package/dist/account/ClientInfo.d.ts.map +1 -1
  11. package/dist/account/ClientInfo.mjs +4 -6
  12. package/dist/account/ClientInfo.mjs.map +1 -1
  13. package/dist/account/TokenClaims.mjs +1 -1
  14. package/dist/account/TokenClaims.mjs.map +1 -1
  15. package/dist/authority/Authority.d.ts +2 -2
  16. package/dist/authority/Authority.d.ts.map +1 -1
  17. package/dist/authority/Authority.mjs +89 -105
  18. package/dist/authority/Authority.mjs.map +1 -1
  19. package/dist/authority/AuthorityFactory.d.ts +6 -2
  20. package/dist/authority/AuthorityFactory.d.ts.map +1 -1
  21. package/dist/authority/AuthorityFactory.mjs +8 -5
  22. package/dist/authority/AuthorityFactory.mjs.map +1 -1
  23. package/dist/authority/AuthorityMetadata.d.ts +2 -2
  24. package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
  25. package/dist/authority/AuthorityMetadata.mjs +8 -8
  26. package/dist/authority/AuthorityMetadata.mjs.map +1 -1
  27. package/dist/authority/AuthorityOptions.d.ts +0 -1
  28. package/dist/authority/AuthorityOptions.d.ts.map +1 -1
  29. package/dist/authority/AuthorityOptions.mjs +1 -1
  30. package/dist/authority/AuthorityOptions.mjs.map +1 -1
  31. package/dist/authority/AuthorityType.mjs +1 -1
  32. package/dist/authority/AuthorityType.mjs.map +1 -1
  33. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  34. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  35. package/dist/authority/OIDCOptions.d.ts +2 -2
  36. package/dist/authority/OIDCOptions.d.ts.map +1 -1
  37. package/dist/authority/OpenIdConfigResponse.mjs +1 -1
  38. package/dist/authority/ProtocolMode.mjs +1 -1
  39. package/dist/authority/ProtocolMode.mjs.map +1 -1
  40. package/dist/authority/RegionDiscovery.d.ts +3 -3
  41. package/dist/authority/RegionDiscovery.d.ts.map +1 -1
  42. package/dist/authority/RegionDiscovery.mjs +14 -15
  43. package/dist/authority/RegionDiscovery.mjs.map +1 -1
  44. package/dist/cache/CacheManager.d.ts +25 -17
  45. package/dist/cache/CacheManager.d.ts.map +1 -1
  46. package/dist/cache/CacheManager.mjs +69 -80
  47. package/dist/cache/CacheManager.mjs.map +1 -1
  48. package/dist/cache/entities/AccessTokenEntity.d.ts +0 -4
  49. package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  50. package/dist/cache/entities/AccountEntity.d.ts +4 -57
  51. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  52. package/dist/cache/entities/CredentialEntity.d.ts +0 -2
  53. package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
  54. package/dist/cache/interface/ICacheManager.d.ts +41 -12
  55. package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
  56. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  57. package/dist/cache/persistence/TokenCacheContext.mjs.map +1 -1
  58. package/dist/cache/utils/AccountEntityUtils.d.ts +60 -0
  59. package/dist/cache/utils/AccountEntityUtils.d.ts.map +1 -0
  60. package/dist/cache/utils/AccountEntityUtils.mjs +212 -0
  61. package/dist/cache/utils/AccountEntityUtils.mjs.map +1 -0
  62. package/dist/cache/utils/CacheHelpers.d.ts +2 -2
  63. package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
  64. package/dist/cache/utils/CacheHelpers.mjs +10 -13
  65. package/dist/cache/utils/CacheHelpers.mjs.map +1 -1
  66. package/dist/cache/utils/CacheTypes.d.ts +0 -1
  67. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  68. package/dist/client/AuthorizationCodeClient.d.ts +1 -1
  69. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  70. package/dist/client/AuthorizationCodeClient.mjs +16 -20
  71. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  72. package/dist/client/BaseClient.d.ts +3 -3
  73. package/dist/client/BaseClient.d.ts.map +1 -1
  74. package/dist/client/BaseClient.mjs +7 -12
  75. package/dist/client/BaseClient.mjs.map +1 -1
  76. package/dist/client/RefreshTokenClient.d.ts +1 -1
  77. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  78. package/dist/client/RefreshTokenClient.mjs +22 -27
  79. package/dist/client/RefreshTokenClient.mjs.map +1 -1
  80. package/dist/client/SilentFlowClient.d.ts +1 -1
  81. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  82. package/dist/client/SilentFlowClient.mjs +8 -12
  83. package/dist/client/SilentFlowClient.mjs.map +1 -1
  84. package/dist/config/ClientConfiguration.d.ts +2 -22
  85. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  86. package/dist/config/ClientConfiguration.mjs +9 -15
  87. package/dist/config/ClientConfiguration.mjs.map +1 -1
  88. package/dist/constants/AADServerParamKeys.mjs +1 -1
  89. package/dist/crypto/ICrypto.d.ts +5 -3
  90. package/dist/crypto/ICrypto.d.ts.map +1 -1
  91. package/dist/crypto/ICrypto.mjs +1 -1
  92. package/dist/crypto/ICrypto.mjs.map +1 -1
  93. package/dist/crypto/JoseHeader.mjs +1 -1
  94. package/dist/crypto/JoseHeader.mjs.map +1 -1
  95. package/dist/crypto/PopTokenGenerator.d.ts +2 -2
  96. package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
  97. package/dist/crypto/PopTokenGenerator.mjs +3 -5
  98. package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
  99. package/dist/error/AuthError.d.ts +1 -18
  100. package/dist/error/AuthError.d.ts.map +1 -1
  101. package/dist/error/AuthError.mjs +12 -34
  102. package/dist/error/AuthError.mjs.map +1 -1
  103. package/dist/error/AuthErrorCodes.mjs +1 -1
  104. package/dist/error/CacheError.d.ts +1 -6
  105. package/dist/error/CacheError.d.ts.map +1 -1
  106. package/dist/error/CacheError.mjs +6 -13
  107. package/dist/error/CacheError.mjs.map +1 -1
  108. package/dist/error/CacheErrorCodes.mjs +1 -1
  109. package/dist/error/ClientAuthError.d.ts +0 -224
  110. package/dist/error/ClientAuthError.d.ts.map +1 -1
  111. package/dist/error/ClientAuthError.mjs +3 -235
  112. package/dist/error/ClientAuthError.mjs.map +1 -1
  113. package/dist/error/ClientAuthErrorCodes.d.ts +0 -8
  114. package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -1
  115. package/dist/error/ClientAuthErrorCodes.mjs +2 -10
  116. package/dist/error/ClientAuthErrorCodes.mjs.map +1 -1
  117. package/dist/error/ClientConfigurationError.d.ts +0 -123
  118. package/dist/error/ClientConfigurationError.d.ts.map +1 -1
  119. package/dist/error/ClientConfigurationError.mjs +3 -129
  120. package/dist/error/ClientConfigurationError.mjs.map +1 -1
  121. package/dist/error/ClientConfigurationErrorCodes.d.ts +0 -2
  122. package/dist/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
  123. package/dist/error/ClientConfigurationErrorCodes.mjs +3 -5
  124. package/dist/error/ClientConfigurationErrorCodes.mjs.map +1 -1
  125. package/dist/error/InteractionRequiredAuthError.d.ts +1 -19
  126. package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
  127. package/dist/error/InteractionRequiredAuthError.mjs +10 -35
  128. package/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
  129. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  130. package/dist/error/JoseHeaderError.d.ts +0 -4
  131. package/dist/error/JoseHeaderError.d.ts.map +1 -1
  132. package/dist/error/JoseHeaderError.mjs +3 -8
  133. package/dist/error/JoseHeaderError.mjs.map +1 -1
  134. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  135. package/dist/error/NetworkError.mjs +1 -1
  136. package/dist/error/NetworkError.mjs.map +1 -1
  137. package/dist/error/ServerError.mjs +1 -1
  138. package/dist/error/ServerError.mjs.map +1 -1
  139. package/dist/exports-browser-only.d.ts +4 -3
  140. package/dist/exports-browser-only.d.ts.map +1 -1
  141. package/dist/exports-common.d.ts +8 -6
  142. package/dist/exports-common.d.ts.map +1 -1
  143. package/dist/exports-node-only.d.ts +1 -4
  144. package/dist/exports-node-only.d.ts.map +1 -1
  145. package/dist/index-browser.mjs +12 -8
  146. package/dist/index-browser.mjs.map +1 -1
  147. package/dist/index-node.mjs +10 -7
  148. package/dist/index-node.mjs.map +1 -1
  149. package/dist/index.mjs +12 -8
  150. package/dist/index.mjs.map +1 -1
  151. package/dist/logger/Logger.d.ts +12 -13
  152. package/dist/logger/Logger.d.ts.map +1 -1
  153. package/dist/logger/Logger.mjs +16 -21
  154. package/dist/logger/Logger.mjs.map +1 -1
  155. package/dist/network/INetworkModule.mjs +1 -1
  156. package/dist/network/INetworkModule.mjs.map +1 -1
  157. package/dist/network/RequestThumbprint.mjs +1 -1
  158. package/dist/network/ThrottlingUtils.d.ts.map +1 -1
  159. package/dist/network/ThrottlingUtils.mjs +6 -7
  160. package/dist/network/ThrottlingUtils.mjs.map +1 -1
  161. package/dist/packageMetadata.d.ts +1 -1
  162. package/dist/packageMetadata.d.ts.map +1 -1
  163. package/dist/packageMetadata.mjs +2 -2
  164. package/dist/protocol/Authorize.d.ts +1 -2
  165. package/dist/protocol/Authorize.d.ts.map +1 -1
  166. package/dist/protocol/Authorize.mjs +14 -14
  167. package/dist/protocol/Authorize.mjs.map +1 -1
  168. package/dist/request/AuthenticationHeaderParser.d.ts.map +1 -1
  169. package/dist/request/AuthenticationHeaderParser.mjs +3 -3
  170. package/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
  171. package/dist/request/BaseAuthRequest.d.ts +1 -7
  172. package/dist/request/BaseAuthRequest.d.ts.map +1 -1
  173. package/dist/request/RequestParameterBuilder.d.ts +3 -9
  174. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  175. package/dist/request/RequestParameterBuilder.mjs +7 -20
  176. package/dist/request/RequestParameterBuilder.mjs.map +1 -1
  177. package/dist/request/ScopeSet.mjs +5 -5
  178. package/dist/request/ScopeSet.mjs.map +1 -1
  179. package/dist/response/AuthenticationResult.d.ts +1 -1
  180. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  181. package/dist/response/ResponseHandler.d.ts +6 -5
  182. package/dist/response/ResponseHandler.d.ts.map +1 -1
  183. package/dist/response/ResponseHandler.mjs +39 -41
  184. package/dist/response/ResponseHandler.mjs.map +1 -1
  185. package/dist/telemetry/performance/IPerformanceClient.d.ts +1 -31
  186. package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  187. package/dist/telemetry/performance/PerformanceClient.d.ts +6 -85
  188. package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  189. package/dist/telemetry/performance/PerformanceClient.mjs +28 -188
  190. package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
  191. package/dist/telemetry/performance/PerformanceEvent.d.ts +0 -282
  192. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  193. package/dist/telemetry/performance/PerformanceEvent.mjs +2 -483
  194. package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
  195. package/dist/telemetry/performance/PerformanceEvents.d.ts +65 -0
  196. package/dist/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
  197. package/dist/telemetry/performance/PerformanceEvents.mjs +73 -0
  198. package/dist/telemetry/performance/PerformanceEvents.mjs.map +1 -0
  199. package/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -4
  200. package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  201. package/dist/telemetry/performance/StubPerformanceClient.mjs +2 -26
  202. package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
  203. package/dist/telemetry/server/ServerTelemetryManager.d.ts +2 -2
  204. package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  205. package/dist/telemetry/server/ServerTelemetryManager.mjs +28 -30
  206. package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
  207. package/dist/url/UrlString.d.ts +0 -5
  208. package/dist/url/UrlString.d.ts.map +1 -1
  209. package/dist/url/UrlString.mjs +5 -13
  210. package/dist/url/UrlString.mjs.map +1 -1
  211. package/dist/utils/ClientAssertionUtils.mjs +1 -1
  212. package/dist/utils/ClientAssertionUtils.mjs.map +1 -1
  213. package/dist/utils/Constants.d.ts +81 -117
  214. package/dist/utils/Constants.d.ts.map +1 -1
  215. package/dist/utils/Constants.mjs +100 -131
  216. package/dist/utils/Constants.mjs.map +1 -1
  217. package/dist/utils/FunctionWrappers.d.ts +2 -2
  218. package/dist/utils/FunctionWrappers.d.ts.map +1 -1
  219. package/dist/utils/FunctionWrappers.mjs +19 -20
  220. package/dist/utils/FunctionWrappers.mjs.map +1 -1
  221. package/dist/utils/ProtocolUtils.mjs +7 -7
  222. package/dist/utils/ProtocolUtils.mjs.map +1 -1
  223. package/dist/utils/StringUtils.mjs +1 -1
  224. package/dist/utils/StringUtils.mjs.map +1 -1
  225. package/dist/utils/TimeUtils.mjs +1 -1
  226. package/dist/utils/TimeUtils.mjs.map +1 -1
  227. package/dist/utils/UrlUtils.d.ts +1 -2
  228. package/dist/utils/UrlUtils.d.ts.map +1 -1
  229. package/dist/utils/UrlUtils.mjs +3 -10
  230. package/dist/utils/UrlUtils.mjs.map +1 -1
  231. package/lib/index-browser.cjs +29 -222
  232. package/lib/index-browser.cjs.map +1 -1
  233. package/lib/{index-node-D8Iaiqq3.js → index-node-FrCFfFuh.js} +1606 -2493
  234. package/lib/index-node-FrCFfFuh.js.map +1 -0
  235. package/lib/index-node.cjs +4 -33
  236. package/lib/index-node.cjs.map +1 -1
  237. package/lib/index.cjs +3 -33
  238. package/lib/index.cjs.map +1 -1
  239. package/lib/types/account/AccountInfo.d.ts +0 -4
  240. package/lib/types/account/AccountInfo.d.ts.map +1 -1
  241. package/lib/types/account/ClientInfo.d.ts +1 -5
  242. package/lib/types/account/ClientInfo.d.ts.map +1 -1
  243. package/lib/types/authority/Authority.d.ts +2 -2
  244. package/lib/types/authority/Authority.d.ts.map +1 -1
  245. package/lib/types/authority/AuthorityFactory.d.ts +6 -2
  246. package/lib/types/authority/AuthorityFactory.d.ts.map +1 -1
  247. package/lib/types/authority/AuthorityMetadata.d.ts +2 -2
  248. package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -1
  249. package/lib/types/authority/AuthorityOptions.d.ts +0 -1
  250. package/lib/types/authority/AuthorityOptions.d.ts.map +1 -1
  251. package/lib/types/authority/OIDCOptions.d.ts +2 -2
  252. package/lib/types/authority/OIDCOptions.d.ts.map +1 -1
  253. package/lib/types/authority/RegionDiscovery.d.ts +3 -3
  254. package/lib/types/authority/RegionDiscovery.d.ts.map +1 -1
  255. package/lib/types/cache/CacheManager.d.ts +25 -17
  256. package/lib/types/cache/CacheManager.d.ts.map +1 -1
  257. package/lib/types/cache/entities/AccessTokenEntity.d.ts +0 -4
  258. package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  259. package/lib/types/cache/entities/AccountEntity.d.ts +4 -57
  260. package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -1
  261. package/lib/types/cache/entities/CredentialEntity.d.ts +0 -2
  262. package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -1
  263. package/lib/types/cache/interface/ICacheManager.d.ts +41 -12
  264. package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -1
  265. package/lib/types/cache/utils/AccountEntityUtils.d.ts +60 -0
  266. package/lib/types/cache/utils/AccountEntityUtils.d.ts.map +1 -0
  267. package/lib/types/cache/utils/CacheHelpers.d.ts +2 -2
  268. package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -1
  269. package/lib/types/cache/utils/CacheTypes.d.ts +0 -1
  270. package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -1
  271. package/lib/types/client/AuthorizationCodeClient.d.ts +1 -1
  272. package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -1
  273. package/lib/types/client/BaseClient.d.ts +3 -3
  274. package/lib/types/client/BaseClient.d.ts.map +1 -1
  275. package/lib/types/client/RefreshTokenClient.d.ts +1 -1
  276. package/lib/types/client/RefreshTokenClient.d.ts.map +1 -1
  277. package/lib/types/client/SilentFlowClient.d.ts +1 -1
  278. package/lib/types/client/SilentFlowClient.d.ts.map +1 -1
  279. package/lib/types/config/ClientConfiguration.d.ts +2 -22
  280. package/lib/types/config/ClientConfiguration.d.ts.map +1 -1
  281. package/lib/types/crypto/ICrypto.d.ts +5 -3
  282. package/lib/types/crypto/ICrypto.d.ts.map +1 -1
  283. package/lib/types/crypto/PopTokenGenerator.d.ts +2 -2
  284. package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -1
  285. package/lib/types/error/AuthError.d.ts +1 -18
  286. package/lib/types/error/AuthError.d.ts.map +1 -1
  287. package/lib/types/error/CacheError.d.ts +1 -6
  288. package/lib/types/error/CacheError.d.ts.map +1 -1
  289. package/lib/types/error/ClientAuthError.d.ts +0 -224
  290. package/lib/types/error/ClientAuthError.d.ts.map +1 -1
  291. package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
  292. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -1
  293. package/lib/types/error/ClientConfigurationError.d.ts +0 -123
  294. package/lib/types/error/ClientConfigurationError.d.ts.map +1 -1
  295. package/lib/types/error/ClientConfigurationErrorCodes.d.ts +0 -2
  296. package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -1
  297. package/lib/types/error/InteractionRequiredAuthError.d.ts +1 -19
  298. package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -1
  299. package/lib/types/error/JoseHeaderError.d.ts +0 -4
  300. package/lib/types/error/JoseHeaderError.d.ts.map +1 -1
  301. package/lib/types/exports-browser-only.d.ts +4 -3
  302. package/lib/types/exports-browser-only.d.ts.map +1 -1
  303. package/lib/types/exports-common.d.ts +8 -6
  304. package/lib/types/exports-common.d.ts.map +1 -1
  305. package/lib/types/exports-node-only.d.ts +1 -4
  306. package/lib/types/exports-node-only.d.ts.map +1 -1
  307. package/lib/types/logger/Logger.d.ts +12 -13
  308. package/lib/types/logger/Logger.d.ts.map +1 -1
  309. package/lib/types/network/ThrottlingUtils.d.ts.map +1 -1
  310. package/lib/types/packageMetadata.d.ts +1 -1
  311. package/lib/types/packageMetadata.d.ts.map +1 -1
  312. package/lib/types/protocol/Authorize.d.ts +1 -2
  313. package/lib/types/protocol/Authorize.d.ts.map +1 -1
  314. package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -1
  315. package/lib/types/request/BaseAuthRequest.d.ts +1 -7
  316. package/lib/types/request/BaseAuthRequest.d.ts.map +1 -1
  317. package/lib/types/request/RequestParameterBuilder.d.ts +3 -9
  318. package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -1
  319. package/lib/types/response/AuthenticationResult.d.ts +1 -1
  320. package/lib/types/response/AuthenticationResult.d.ts.map +1 -1
  321. package/lib/types/response/ResponseHandler.d.ts +6 -5
  322. package/lib/types/response/ResponseHandler.d.ts.map +1 -1
  323. package/lib/types/telemetry/performance/IPerformanceClient.d.ts +1 -31
  324. package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  325. package/lib/types/telemetry/performance/PerformanceClient.d.ts +6 -85
  326. package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  327. package/lib/types/telemetry/performance/PerformanceEvent.d.ts +0 -282
  328. package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  329. package/lib/types/telemetry/performance/PerformanceEvents.d.ts +65 -0
  330. package/lib/types/telemetry/performance/PerformanceEvents.d.ts.map +1 -0
  331. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +0 -4
  332. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  333. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +2 -2
  334. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  335. package/lib/types/url/UrlString.d.ts +0 -5
  336. package/lib/types/url/UrlString.d.ts.map +1 -1
  337. package/lib/types/utils/Constants.d.ts +81 -117
  338. package/lib/types/utils/Constants.d.ts.map +1 -1
  339. package/lib/types/utils/FunctionWrappers.d.ts +2 -2
  340. package/lib/types/utils/FunctionWrappers.d.ts.map +1 -1
  341. package/lib/types/utils/UrlUtils.d.ts +1 -2
  342. package/lib/types/utils/UrlUtils.d.ts.map +1 -1
  343. package/package.json +120 -122
  344. package/src/account/AccountInfo.ts +0 -6
  345. package/src/account/ClientInfo.ts +4 -11
  346. package/src/authority/Authority.ts +145 -146
  347. package/src/authority/AuthorityFactory.ts +7 -7
  348. package/src/authority/AuthorityMetadata.ts +21 -12
  349. package/src/authority/AuthorityOptions.ts +0 -1
  350. package/src/authority/OIDCOptions.ts +2 -2
  351. package/src/authority/RegionDiscovery.ts +20 -33
  352. package/src/cache/CacheManager.ts +176 -126
  353. package/src/cache/entities/AccessTokenEntity.ts +0 -4
  354. package/src/cache/entities/AccountEntity.ts +4 -293
  355. package/src/cache/entities/CredentialEntity.ts +0 -2
  356. package/src/cache/interface/ICacheManager.ts +61 -15
  357. package/src/cache/utils/AccountEntityUtils.ts +287 -0
  358. package/src/cache/utils/CacheHelpers.ts +23 -37
  359. package/src/cache/utils/CacheTypes.ts +0 -1
  360. package/src/client/AuthorizationCodeClient.ts +28 -49
  361. package/src/client/BaseClient.ts +8 -20
  362. package/src/client/RefreshTokenClient.ts +29 -61
  363. package/src/client/SilentFlowClient.ts +11 -20
  364. package/src/config/ClientConfiguration.ts +9 -37
  365. package/src/crypto/ICrypto.ts +5 -3
  366. package/src/crypto/PopTokenGenerator.ts +3 -13
  367. package/src/error/AuthError.ts +11 -30
  368. package/src/error/CacheError.ts +4 -15
  369. package/src/error/ClientAuthError.ts +1 -311
  370. package/src/error/ClientAuthErrorCodes.ts +0 -8
  371. package/src/error/ClientConfigurationError.ts +1 -194
  372. package/src/error/ClientConfigurationErrorCodes.ts +0 -3
  373. package/src/error/InteractionRequiredAuthError.ts +8 -48
  374. package/src/error/JoseHeaderError.ts +1 -8
  375. package/src/exports-browser-only.ts +2 -6
  376. package/src/exports-common.ts +4 -34
  377. package/src/exports-node-only.ts +1 -4
  378. package/src/logger/Logger.ts +26 -39
  379. package/src/network/ThrottlingUtils.ts +12 -15
  380. package/src/packageMetadata.ts +1 -1
  381. package/src/protocol/Authorize.ts +24 -20
  382. package/src/request/AuthenticationHeaderParser.ts +2 -4
  383. package/src/request/BaseAuthRequest.ts +1 -7
  384. package/src/request/RequestParameterBuilder.ts +30 -45
  385. package/src/request/ScopeSet.ts +4 -4
  386. package/src/response/AuthenticationResult.ts +1 -1
  387. package/src/response/ResponseHandler.ts +53 -58
  388. package/src/telemetry/performance/IPerformanceClient.ts +1 -43
  389. package/src/telemetry/performance/PerformanceClient.ts +32 -295
  390. package/src/telemetry/performance/PerformanceEvent.ts +0 -586
  391. package/src/telemetry/performance/PerformanceEvents.ts +97 -0
  392. package/src/telemetry/performance/StubPerformanceClient.ts +0 -16
  393. package/src/telemetry/server/ServerTelemetryManager.ts +33 -44
  394. package/src/url/UrlString.ts +3 -12
  395. package/src/utils/Constants.ts +103 -146
  396. package/src/utils/FunctionWrappers.ts +28 -29
  397. package/src/utils/ProtocolUtils.ts +6 -6
  398. package/src/utils/UrlUtils.ts +2 -15
  399. package/dist/cache/entities/AccountEntity.mjs +0 -232
  400. package/dist/cache/entities/AccountEntity.mjs.map +0 -1
  401. package/dist/request/CommonClientCredentialRequest.d.ts +0 -18
  402. package/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
  403. package/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
  404. package/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  405. package/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
  406. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  407. package/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
  408. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  409. package/lib/index-node-D8Iaiqq3.js.map +0 -1
  410. package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -18
  411. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
  412. package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -22
  413. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  414. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -14
  415. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  416. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -18
  417. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  418. package/src/request/CommonClientCredentialRequest.ts +0 -23
  419. package/src/request/CommonDeviceCodeRequest.ts +0 -31
  420. package/src/request/CommonOnBehalfOfRequest.ts +0 -19
  421. package/src/request/CommonUsernamePasswordRequest.ts +0 -23
@@ -22,38 +22,35 @@ export const invoke = <T extends Array<any>, U>(
22
22
  callback: (...args: T) => U,
23
23
  eventName: string,
24
24
  logger: Logger,
25
- telemetryClient?: IPerformanceClient,
26
- correlationId?: string
25
+ telemetryClient: IPerformanceClient,
26
+ correlationId: string
27
27
  ) => {
28
28
  return (...args: T): U => {
29
- logger.trace(`Executing function ${eventName}`);
30
- const inProgressEvent = telemetryClient?.startMeasurement(
29
+ logger.trace(`Executing function '${eventName}'`, correlationId);
30
+ const inProgressEvent = telemetryClient.startMeasurement(
31
31
  eventName,
32
32
  correlationId
33
33
  );
34
34
  if (correlationId) {
35
35
  // Track number of times this API is called in a single request
36
36
  const eventCount = eventName + "CallCount";
37
- telemetryClient?.incrementFields(
38
- { [eventCount]: 1 },
39
- correlationId
40
- );
37
+ telemetryClient.incrementFields({ [eventCount]: 1 }, correlationId);
41
38
  }
42
39
  try {
43
40
  const result = callback(...args);
44
- inProgressEvent?.end({
41
+ inProgressEvent.end({
45
42
  success: true,
46
43
  });
47
- logger.trace(`Returning result from ${eventName}`);
44
+ logger.trace(`Returning result from '${eventName}'`, correlationId);
48
45
  return result;
49
46
  } catch (e) {
50
- logger.trace(`Error occurred in ${eventName}`);
47
+ logger.trace(`Error occurred in '${eventName}'`, correlationId);
51
48
  try {
52
- logger.trace(JSON.stringify(e));
49
+ logger.trace(JSON.stringify(e), correlationId);
53
50
  } catch (e) {
54
- logger.trace("Unable to print error message.");
51
+ logger.trace("Unable to print error message.", correlationId);
55
52
  }
56
- inProgressEvent?.end(
53
+ inProgressEvent.end(
57
54
  {
58
55
  success: false,
59
56
  },
@@ -81,40 +78,42 @@ export const invokeAsync = <T extends Array<any>, U>(
81
78
  callback: (...args: T) => Promise<U>,
82
79
  eventName: string,
83
80
  logger: Logger,
84
- telemetryClient?: IPerformanceClient,
85
- correlationId?: string
81
+ telemetryClient: IPerformanceClient,
82
+ correlationId: string
86
83
  ) => {
87
84
  return (...args: T): Promise<U> => {
88
- logger.trace(`Executing function ${eventName}`);
89
- const inProgressEvent = telemetryClient?.startMeasurement(
85
+ logger.trace(`Executing function '${eventName}'`, correlationId);
86
+ const inProgressEvent = telemetryClient.startMeasurement(
90
87
  eventName,
91
88
  correlationId
92
89
  );
93
90
  if (correlationId) {
94
91
  // Track number of times this API is called in a single request
95
92
  const eventCount = eventName + "CallCount";
96
- telemetryClient?.incrementFields(
97
- { [eventCount]: 1 },
98
- correlationId
99
- );
93
+ telemetryClient.incrementFields({ [eventCount]: 1 }, correlationId);
100
94
  }
101
- telemetryClient?.setPreQueueTime(eventName, correlationId);
102
95
  return callback(...args)
103
96
  .then((response) => {
104
- logger.trace(`Returning result from ${eventName}`);
105
- inProgressEvent?.end({
97
+ logger.trace(
98
+ `Returning result from '${eventName}'`,
99
+ correlationId
100
+ );
101
+ inProgressEvent.end({
106
102
  success: true,
107
103
  });
108
104
  return response;
109
105
  })
110
106
  .catch((e) => {
111
- logger.trace(`Error occurred in ${eventName}`);
107
+ logger.trace(`Error occurred in '${eventName}'`, correlationId);
112
108
  try {
113
- logger.trace(JSON.stringify(e));
109
+ logger.trace(JSON.stringify(e), correlationId);
114
110
  } catch (e) {
115
- logger.trace("Unable to print error message.");
111
+ logger.trace(
112
+ "Unable to print error message.",
113
+ correlationId
114
+ );
116
115
  }
117
- inProgressEvent?.end(
116
+ inProgressEvent.end(
118
117
  {
119
118
  success: false,
120
119
  },
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { Constants } from "./Constants.js";
6
+ import { RESOURCE_DELIM } from "./Constants.js";
7
7
  import { ICrypto } from "../crypto/ICrypto.js";
8
8
  import {
9
9
  ClientAuthErrorCodes,
@@ -49,7 +49,7 @@ export class ProtocolUtils {
49
49
  meta
50
50
  );
51
51
  return userState
52
- ? `${libraryState}${Constants.RESOURCE_DELIM}${userState}`
52
+ ? `${libraryState}${RESOURCE_DELIM}${userState}`
53
53
  : libraryState;
54
54
  }
55
55
 
@@ -99,18 +99,18 @@ export class ProtocolUtils {
99
99
 
100
100
  try {
101
101
  // Split the state between library state and user passed state and decode them separately
102
- const splitState = state.split(Constants.RESOURCE_DELIM);
102
+ const splitState = state.split(RESOURCE_DELIM);
103
103
  const libraryState = splitState[0];
104
104
  const userState =
105
105
  splitState.length > 1
106
- ? splitState.slice(1).join(Constants.RESOURCE_DELIM)
107
- : Constants.EMPTY_STRING;
106
+ ? splitState.slice(1).join(RESOURCE_DELIM)
107
+ : "";
108
108
  const libraryStateString = cryptoObj.base64Decode(libraryState);
109
109
  const libraryStateObj = JSON.parse(
110
110
  libraryStateString
111
111
  ) as LibraryStateObject;
112
112
  return {
113
- userRequestState: userState || Constants.EMPTY_STRING,
113
+ userRequestState: userState || "",
114
114
  libraryState: libraryStateObj,
115
115
  };
116
116
  } catch (e) {
@@ -8,7 +8,6 @@ import {
8
8
  ClientAuthErrorCodes,
9
9
  createClientAuthError,
10
10
  } from "../error/ClientAuthError.js";
11
- import { StringDict } from "./MsalTypes.js";
12
11
  import { StringUtils } from "./StringUtils.js";
13
12
 
14
13
  /**
@@ -92,23 +91,11 @@ export function getDeserializedResponse(
92
91
  /**
93
92
  * Utility to create a URL from the params map
94
93
  */
95
- export function mapToQueryString(
96
- parameters: Map<string, string>,
97
- encodeExtraParams: boolean = true,
98
- extraQueryParameters?: StringDict
99
- ): string {
94
+ export function mapToQueryString(parameters: Map<string, string>): string {
100
95
  const queryParameterArray: Array<string> = new Array<string>();
101
96
 
102
97
  parameters.forEach((value, key) => {
103
- if (
104
- !encodeExtraParams &&
105
- extraQueryParameters &&
106
- key in extraQueryParameters
107
- ) {
108
- queryParameterArray.push(`${key}=${value}`);
109
- } else {
110
- queryParameterArray.push(`${key}=${encodeURIComponent(value)}`);
111
- }
98
+ queryParameterArray.push(`${key}=${encodeURIComponent(value)}`);
112
99
  });
113
100
 
114
101
  return queryParameterArray.join("&");
@@ -1,232 +0,0 @@
1
- /*! @azure/msal-common v15.13.0 2025-09-24 */
2
- 'use strict';
3
- import { CacheAccountType } from '../../utils/Constants.mjs';
4
- import { buildClientInfo } from '../../account/ClientInfo.mjs';
5
- import { buildTenantProfile } from '../../account/AccountInfo.mjs';
6
- import { createClientAuthError } from '../../error/ClientAuthError.mjs';
7
- import { AuthorityType } from '../../authority/AuthorityType.mjs';
8
- import { getTenantIdFromIdTokenClaims } from '../../account/TokenClaims.mjs';
9
- import { ProtocolMode } from '../../authority/ProtocolMode.mjs';
10
- import { invalidCacheEnvironment } from '../../error/ClientAuthErrorCodes.mjs';
11
-
12
- /*
13
- * Copyright (c) Microsoft Corporation. All rights reserved.
14
- * Licensed under the MIT License.
15
- */
16
- /**
17
- * Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs).
18
- *
19
- * Key : Value Schema
20
- *
21
- * Key: <home_account_id>-<environment>-<realm*>
22
- *
23
- * Value Schema:
24
- * {
25
- * homeAccountId: home account identifier for the auth scheme,
26
- * environment: entity that issued the token, represented as a full host
27
- * realm: Full tenant or organizational identifier that the account belongs to
28
- * localAccountId: Original tenant-specific accountID, usually used for legacy cases
29
- * username: primary username that represents the user, usually corresponds to preferred_username in the v2 endpt
30
- * authorityType: Accounts authority type as a string
31
- * name: Full name for the account, including given name and family name,
32
- * lastModificationTime: last time this entity was modified in the cache
33
- * lastModificationApp:
34
- * nativeAccountId: Account identifier on the native device
35
- * tenantProfiles: Array of tenant profile objects for each tenant that the account has authenticated with in the browser
36
- * }
37
- * @internal
38
- */
39
- class AccountEntity {
40
- /**
41
- * Returns the AccountInfo interface for this account.
42
- */
43
- getAccountInfo() {
44
- return {
45
- homeAccountId: this.homeAccountId,
46
- environment: this.environment,
47
- tenantId: this.realm,
48
- username: this.username,
49
- localAccountId: this.localAccountId,
50
- loginHint: this.loginHint,
51
- name: this.name,
52
- nativeAccountId: this.nativeAccountId,
53
- authorityType: this.authorityType,
54
- // Deserialize tenant profiles array into a Map
55
- tenantProfiles: new Map((this.tenantProfiles || []).map((tenantProfile) => {
56
- return [tenantProfile.tenantId, tenantProfile];
57
- })),
58
- dataBoundary: this.dataBoundary,
59
- };
60
- }
61
- /**
62
- * Returns true if the account entity is in single tenant format (outdated), false otherwise
63
- */
64
- isSingleTenant() {
65
- return !this.tenantProfiles;
66
- }
67
- /**
68
- * Build Account cache from IdToken, clientInfo and authority/policy. Associated with AAD.
69
- * @param accountDetails
70
- */
71
- static createAccount(accountDetails, authority, base64Decode) {
72
- const account = new AccountEntity();
73
- if (authority.authorityType === AuthorityType.Adfs) {
74
- account.authorityType = CacheAccountType.ADFS_ACCOUNT_TYPE;
75
- }
76
- else if (authority.protocolMode === ProtocolMode.OIDC) {
77
- account.authorityType = CacheAccountType.GENERIC_ACCOUNT_TYPE;
78
- }
79
- else {
80
- account.authorityType = CacheAccountType.MSSTS_ACCOUNT_TYPE;
81
- }
82
- let clientInfo;
83
- if (accountDetails.clientInfo && base64Decode) {
84
- clientInfo = buildClientInfo(accountDetails.clientInfo, base64Decode);
85
- if (clientInfo.xms_tdbr) {
86
- account.dataBoundary =
87
- clientInfo.xms_tdbr === "EU" ? "EU" : "None";
88
- }
89
- }
90
- account.clientInfo = accountDetails.clientInfo;
91
- account.homeAccountId = accountDetails.homeAccountId;
92
- account.nativeAccountId = accountDetails.nativeAccountId;
93
- const env = accountDetails.environment ||
94
- (authority && authority.getPreferredCache());
95
- if (!env) {
96
- throw createClientAuthError(invalidCacheEnvironment);
97
- }
98
- account.environment = env;
99
- // non AAD scenarios can have empty realm
100
- account.realm =
101
- clientInfo?.utid ||
102
- getTenantIdFromIdTokenClaims(accountDetails.idTokenClaims) ||
103
- "";
104
- // How do you account for MSA CID here?
105
- account.localAccountId =
106
- clientInfo?.uid ||
107
- accountDetails.idTokenClaims?.oid ||
108
- accountDetails.idTokenClaims?.sub ||
109
- "";
110
- /*
111
- * In B2C scenarios the emails claim is used instead of preferred_username and it is an array.
112
- * In most cases it will contain a single email. This field should not be relied upon if a custom
113
- * policy is configured to return more than 1 email.
114
- */
115
- const preferredUsername = accountDetails.idTokenClaims?.preferred_username ||
116
- accountDetails.idTokenClaims?.upn;
117
- const email = accountDetails.idTokenClaims?.emails
118
- ? accountDetails.idTokenClaims.emails[0]
119
- : null;
120
- account.username = preferredUsername || email || "";
121
- account.loginHint = accountDetails.idTokenClaims?.login_hint;
122
- account.name = accountDetails.idTokenClaims?.name || "";
123
- account.cloudGraphHostName = accountDetails.cloudGraphHostName;
124
- account.msGraphHost = accountDetails.msGraphHost;
125
- if (accountDetails.tenantProfiles) {
126
- account.tenantProfiles = accountDetails.tenantProfiles;
127
- }
128
- else {
129
- const tenantProfile = buildTenantProfile(accountDetails.homeAccountId, account.localAccountId, account.realm, accountDetails.idTokenClaims);
130
- account.tenantProfiles = [tenantProfile];
131
- }
132
- return account;
133
- }
134
- /**
135
- * Creates an AccountEntity object from AccountInfo
136
- * @param accountInfo
137
- * @param cloudGraphHostName
138
- * @param msGraphHost
139
- * @returns
140
- */
141
- static createFromAccountInfo(accountInfo, cloudGraphHostName, msGraphHost) {
142
- const account = new AccountEntity();
143
- account.authorityType =
144
- accountInfo.authorityType || CacheAccountType.GENERIC_ACCOUNT_TYPE;
145
- account.homeAccountId = accountInfo.homeAccountId;
146
- account.localAccountId = accountInfo.localAccountId;
147
- account.nativeAccountId = accountInfo.nativeAccountId;
148
- account.realm = accountInfo.tenantId;
149
- account.environment = accountInfo.environment;
150
- account.username = accountInfo.username;
151
- account.name = accountInfo.name;
152
- account.loginHint = accountInfo.loginHint;
153
- account.cloudGraphHostName = cloudGraphHostName;
154
- account.msGraphHost = msGraphHost;
155
- // Serialize tenant profiles map into an array
156
- account.tenantProfiles = Array.from(accountInfo.tenantProfiles?.values() || []);
157
- account.dataBoundary = accountInfo.dataBoundary;
158
- return account;
159
- }
160
- /**
161
- * Generate HomeAccountId from server response
162
- * @param serverClientInfo
163
- * @param authType
164
- */
165
- static generateHomeAccountId(serverClientInfo, authType, logger, cryptoObj, idTokenClaims) {
166
- // since ADFS/DSTS do not have tid and does not set client_info
167
- if (!(authType === AuthorityType.Adfs ||
168
- authType === AuthorityType.Dsts)) {
169
- // for cases where there is clientInfo
170
- if (serverClientInfo) {
171
- try {
172
- const clientInfo = buildClientInfo(serverClientInfo, cryptoObj.base64Decode);
173
- if (clientInfo.uid && clientInfo.utid) {
174
- return `${clientInfo.uid}.${clientInfo.utid}`;
175
- }
176
- }
177
- catch (e) { }
178
- }
179
- logger.warning("No client info in response");
180
- }
181
- // default to "sub" claim
182
- return idTokenClaims?.sub || "";
183
- }
184
- /**
185
- * Validates an entity: checks for all expected params
186
- * @param entity
187
- */
188
- static isAccountEntity(entity) {
189
- if (!entity) {
190
- return false;
191
- }
192
- return (entity.hasOwnProperty("homeAccountId") &&
193
- entity.hasOwnProperty("environment") &&
194
- entity.hasOwnProperty("realm") &&
195
- entity.hasOwnProperty("localAccountId") &&
196
- entity.hasOwnProperty("username") &&
197
- entity.hasOwnProperty("authorityType"));
198
- }
199
- /**
200
- * Helper function to determine whether 2 accountInfo objects represent the same account
201
- * @param accountA
202
- * @param accountB
203
- * @param compareClaims - If set to true idTokenClaims will also be compared to determine account equality
204
- */
205
- static accountInfoIsEqual(accountA, accountB, compareClaims) {
206
- if (!accountA || !accountB) {
207
- return false;
208
- }
209
- let claimsMatch = true; // default to true so as to not fail comparison below if compareClaims: false
210
- if (compareClaims) {
211
- const accountAClaims = (accountA.idTokenClaims ||
212
- {});
213
- const accountBClaims = (accountB.idTokenClaims ||
214
- {});
215
- // issued at timestamp and nonce are expected to change each time a new id token is acquired
216
- claimsMatch =
217
- accountAClaims.iat === accountBClaims.iat &&
218
- accountAClaims.nonce === accountBClaims.nonce;
219
- }
220
- return (accountA.homeAccountId === accountB.homeAccountId &&
221
- accountA.localAccountId === accountB.localAccountId &&
222
- accountA.username === accountB.username &&
223
- accountA.tenantId === accountB.tenantId &&
224
- accountA.loginHint === accountB.loginHint &&
225
- accountA.environment === accountB.environment &&
226
- accountA.nativeAccountId === accountB.nativeAccountId &&
227
- claimsMatch);
228
- }
229
- }
230
-
231
- export { AccountEntity };
232
- //# sourceMappingURL=AccountEntity.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccountEntity.mjs","sources":["../../../src/cache/entities/AccountEntity.ts"],"sourcesContent":[null],"names":["ClientAuthErrorCodes.invalidCacheEnvironment"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AAwBH;;;;;;;;;;;;;;;;;;;;;;AAsBG;MACU,aAAa,CAAA;AAmBtB;;AAEG;IACH,cAAc,GAAA;QACV,OAAO;YACH,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,KAAK;YACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,SAAS,EAAE,IAAI,CAAC,SAA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,EACb;KACL;AACJ;;;;"}
@@ -1,18 +0,0 @@
1
- import { BaseAuthRequest } from "./BaseAuthRequest.js";
2
- import { AzureRegion } from "../authority/AzureRegion.js";
3
- import { ClientAssertion } from "../account/ClientCredentials.js";
4
- /**
5
- * CommonClientCredentialRequest
6
- * - scopes - Array of scopes the application is requesting access to.
7
- * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
8
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
- * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
10
- * - preferredAzureRegionOptions - Options of the user's preferred azure region
11
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
12
- */
13
- export type CommonClientCredentialRequest = BaseAuthRequest & {
14
- skipCache?: boolean;
15
- azureRegion?: AzureRegion;
16
- clientAssertion?: ClientAssertion;
17
- };
18
- //# sourceMappingURL=CommonClientCredentialRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE;;;;;;;;GAQG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"}
@@ -1,22 +0,0 @@
1
- import { DeviceCodeResponse } from "../response/DeviceCodeResponse.js";
2
- import { StringDict } from "../utils/MsalTypes.js";
3
- import { BaseAuthRequest } from "./BaseAuthRequest.js";
4
- /**
5
- * Parameters for Oauth2 device code flow.
6
- * - scopes - Array of scopes the application is requesting access to.
7
- * - authority: - URL of the authority, the security token service (STS) from which MSAL will acquire tokens. If authority is set on client application object, this will override that value. Overriding the value will cause for authority validation to happen each time. If the same authority will be used for all request, set on the application object instead of the requests.
8
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
- * - deviceCodeCallback - Callback containing device code response. Message should be shown to end user. End user can then navigate to the verification_uri, input the user_code, and input credentials.
10
- * - cancel - Boolean to cancel polling of device code endpoint. While the user authenticates on a separate device, MSAL polls the the token endpoint of security token service for the interval specified in the device code response (usually 15 minutes). To stop polling and cancel the request, set cancel=true.
11
- * - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
12
- * - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
13
- * - timeout - Timeout period in seconds which the user explicitly configures for the polling of the device code endpoint. At the end of this period; assuming the device code has not expired yet; the device code polling is stopped and the request cancelled. The device code expiration window will always take precedence over this set period.
14
- * - extraQueryParameters - String to string map of custom query parameters added to the query string
15
- */
16
- export type CommonDeviceCodeRequest = Omit<BaseAuthRequest, "tokenQueryParameters" | "tokenBodyParameters"> & {
17
- deviceCodeCallback: (response: DeviceCodeResponse) => void;
18
- cancel?: boolean;
19
- timeout?: number;
20
- extraQueryParameters?: StringDict;
21
- };
22
- //# sourceMappingURL=CommonDeviceCodeRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommonDeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonDeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,qBAAqB,CACjD,GAAG;IACA,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
@@ -1,14 +0,0 @@
1
- import { BaseAuthRequest } from "./BaseAuthRequest.js";
2
- /**
3
- * - scopes - Array of scopes the application is requesting access to.
4
- * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
5
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
6
- * - oboAssertion - The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
7
- * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
8
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
9
- */
10
- export type CommonOnBehalfOfRequest = BaseAuthRequest & {
11
- oboAssertion: string;
12
- skipCache?: boolean;
13
- };
14
- //# sourceMappingURL=CommonOnBehalfOfRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
@@ -1,18 +0,0 @@
1
- import { BaseAuthRequest } from "./BaseAuthRequest.js";
2
- /**
3
- * CommonUsernamePassword parameters passed by the user to retrieve credentials
4
- * Note: The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely. This flow is added for internal testing.
5
- *
6
- * - scopes - Array of scopes the application is requesting access to.
7
- * - claims - A stringified claims request which will be added to all /authorize and /token calls. When included on a silent request, cache lookup will be skipped and token will be refreshed.
8
- * - authority - Url of the authority which the application acquires tokens from.
9
- * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
10
- * - username - username of the client
11
- * - password - credentials
12
- * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
13
- */
14
- export type CommonUsernamePasswordRequest = BaseAuthRequest & {
15
- username: string;
16
- password: string;
17
- };
18
- //# sourceMappingURL=CommonUsernamePasswordRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CommonUsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../src/request/CommonUsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}