@azure/msal-common 14.14.1 → 14.15.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 (562) hide show
  1. package/browser/README.md +1 -0
  2. package/browser/package.json +5 -0
  3. package/dist/account/AccountInfo.d.ts +1 -1
  4. package/dist/account/AccountInfo.d.ts.map +1 -1
  5. package/dist/account/AccountInfo.mjs +1 -1
  6. package/dist/account/AuthToken.d.ts +1 -1
  7. package/dist/account/AuthToken.d.ts.map +1 -1
  8. package/dist/account/AuthToken.mjs +1 -1
  9. package/dist/account/CcsCredential.mjs +1 -1
  10. package/dist/account/ClientInfo.mjs +1 -1
  11. package/dist/account/TokenClaims.mjs +1 -1
  12. package/dist/authority/Authority.d.ts +12 -12
  13. package/dist/authority/Authority.d.ts.map +1 -1
  14. package/dist/authority/Authority.mjs +1 -1
  15. package/dist/authority/AuthorityFactory.d.ts +6 -6
  16. package/dist/authority/AuthorityFactory.d.ts.map +1 -1
  17. package/dist/authority/AuthorityFactory.mjs +1 -1
  18. package/dist/authority/AuthorityMetadata.d.ts +6 -6
  19. package/dist/authority/AuthorityMetadata.d.ts.map +1 -1
  20. package/dist/authority/AuthorityMetadata.mjs +1 -1
  21. package/dist/authority/AuthorityOptions.d.ts +4 -4
  22. package/dist/authority/AuthorityOptions.d.ts.map +1 -1
  23. package/dist/authority/AuthorityOptions.mjs +1 -1
  24. package/dist/authority/AuthorityType.mjs +1 -1
  25. package/dist/authority/AzureRegionConfiguration.d.ts +1 -1
  26. package/dist/authority/AzureRegionConfiguration.d.ts.map +1 -1
  27. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  28. package/dist/authority/CloudInstanceDiscoveryResponse.d.ts +1 -1
  29. package/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -1
  30. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  31. package/dist/authority/OIDCOptions.d.ts +1 -1
  32. package/dist/authority/OIDCOptions.d.ts.map +1 -1
  33. package/dist/authority/OpenIdConfigResponse.mjs +1 -1
  34. package/dist/authority/ProtocolMode.mjs +1 -1
  35. package/dist/authority/RegionDiscovery.d.ts +5 -5
  36. package/dist/authority/RegionDiscovery.d.ts.map +1 -1
  37. package/dist/authority/RegionDiscovery.mjs +1 -1
  38. package/dist/authority/RegionDiscoveryMetadata.d.ts +1 -1
  39. package/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -1
  40. package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +6 -6
  41. package/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -1
  42. package/dist/cache/CacheManager.d.ts +18 -18
  43. package/dist/cache/CacheManager.d.ts.map +1 -1
  44. package/dist/cache/CacheManager.mjs +1 -1
  45. package/dist/cache/entities/AccessTokenEntity.d.ts +2 -2
  46. package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  47. package/dist/cache/entities/AccountEntity.d.ts +6 -6
  48. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  49. package/dist/cache/entities/AccountEntity.mjs +1 -1
  50. package/dist/cache/entities/CacheRecord.d.ts +5 -5
  51. package/dist/cache/entities/CacheRecord.d.ts.map +1 -1
  52. package/dist/cache/entities/CredentialEntity.d.ts +1 -1
  53. package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
  54. package/dist/cache/entities/IdTokenEntity.d.ts +1 -1
  55. package/dist/cache/entities/IdTokenEntity.d.ts.map +1 -1
  56. package/dist/cache/entities/RefreshTokenEntity.d.ts +1 -1
  57. package/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -1
  58. package/dist/cache/interface/ICacheManager.d.ts +12 -12
  59. package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
  60. package/dist/cache/interface/ICachePlugin.d.ts +1 -1
  61. package/dist/cache/interface/ICachePlugin.d.ts.map +1 -1
  62. package/dist/cache/persistence/TokenCacheContext.d.ts +1 -1
  63. package/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -1
  64. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  65. package/dist/cache/utils/CacheHelpers.d.ts +9 -9
  66. package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
  67. package/dist/cache/utils/CacheHelpers.mjs +1 -1
  68. package/dist/cache/utils/CacheTypes.d.ts +11 -11
  69. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  70. package/dist/client/AuthorizationCodeClient.d.ts +10 -9
  71. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  72. package/dist/client/AuthorizationCodeClient.mjs +13 -5
  73. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  74. package/dist/client/BaseClient.d.ts +13 -13
  75. package/dist/client/BaseClient.d.ts.map +1 -1
  76. package/dist/client/BaseClient.mjs +1 -1
  77. package/dist/client/RefreshTokenClient.d.ts +6 -6
  78. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  79. package/dist/client/RefreshTokenClient.mjs +1 -1
  80. package/dist/client/SilentFlowClient.d.ts +6 -6
  81. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  82. package/dist/client/SilentFlowClient.mjs +1 -1
  83. package/dist/config/ClientConfiguration.d.ts +13 -11
  84. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  85. package/dist/config/ClientConfiguration.mjs +2 -1
  86. package/dist/config/ClientConfiguration.mjs.map +1 -1
  87. package/dist/constants/AADServerParamKeys.mjs +1 -1
  88. package/dist/crypto/ICrypto.d.ts +2 -2
  89. package/dist/crypto/ICrypto.d.ts.map +1 -1
  90. package/dist/crypto/ICrypto.mjs +1 -1
  91. package/dist/crypto/JoseHeader.d.ts +1 -1
  92. package/dist/crypto/JoseHeader.d.ts.map +1 -1
  93. package/dist/crypto/JoseHeader.mjs +1 -1
  94. package/dist/crypto/PopTokenGenerator.d.ts +3 -3
  95. package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
  96. package/dist/crypto/PopTokenGenerator.mjs +1 -1
  97. package/dist/crypto/SignedHttpRequest.d.ts +1 -1
  98. package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
  99. package/dist/error/AuthError.d.ts +1 -1
  100. package/dist/error/AuthError.d.ts.map +1 -1
  101. package/dist/error/AuthError.mjs +1 -1
  102. package/dist/error/AuthErrorCodes.mjs +1 -1
  103. package/dist/error/CacheError.d.ts +1 -1
  104. package/dist/error/CacheError.d.ts.map +1 -1
  105. package/dist/error/CacheError.mjs +1 -1
  106. package/dist/error/CacheErrorCodes.mjs +1 -1
  107. package/dist/error/ClientAuthError.d.ts +2 -2
  108. package/dist/error/ClientAuthError.d.ts.map +1 -1
  109. package/dist/error/ClientAuthError.mjs +1 -1
  110. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  111. package/dist/error/ClientConfigurationError.d.ts +2 -2
  112. package/dist/error/ClientConfigurationError.d.ts.map +1 -1
  113. package/dist/error/ClientConfigurationError.mjs +1 -1
  114. package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
  115. package/dist/error/InteractionRequiredAuthError.d.ts +2 -2
  116. package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
  117. package/dist/error/InteractionRequiredAuthError.mjs +1 -1
  118. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  119. package/dist/error/JoseHeaderError.d.ts +2 -2
  120. package/dist/error/JoseHeaderError.d.ts.map +1 -1
  121. package/dist/error/JoseHeaderError.mjs +1 -1
  122. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  123. package/dist/error/ServerError.d.ts +1 -1
  124. package/dist/error/ServerError.d.ts.map +1 -1
  125. package/dist/error/ServerError.mjs +1 -1
  126. package/dist/exports-browser-only.d.ts +10 -0
  127. package/dist/exports-browser-only.d.ts.map +1 -0
  128. package/dist/exports-common.d.ts +80 -0
  129. package/dist/exports-common.d.ts.map +1 -0
  130. package/dist/exports-node-only.d.ts +18 -0
  131. package/dist/exports-node-only.d.ts.map +1 -0
  132. package/dist/index-browser.d.ts +7 -0
  133. package/dist/index-browser.d.ts.map +1 -0
  134. package/dist/index-browser.mjs +67 -0
  135. package/dist/index-browser.mjs.map +1 -0
  136. package/dist/index-node.d.ts +7 -0
  137. package/dist/index-node.d.ts.map +1 -0
  138. package/dist/index-node.mjs +66 -0
  139. package/dist/index-node.mjs.map +1 -0
  140. package/dist/index.d.ts +7 -103
  141. package/dist/index.d.ts.map +1 -1
  142. package/dist/index.mjs +30 -30
  143. package/dist/logger/Logger.d.ts +1 -1
  144. package/dist/logger/Logger.d.ts.map +1 -1
  145. package/dist/logger/Logger.mjs +1 -1
  146. package/dist/network/INetworkModule.d.ts +1 -1
  147. package/dist/network/INetworkModule.d.ts.map +1 -1
  148. package/dist/network/INetworkModule.mjs +1 -1
  149. package/dist/network/NetworkManager.d.ts +4 -4
  150. package/dist/network/NetworkManager.d.ts.map +1 -1
  151. package/dist/network/NetworkManager.mjs +1 -1
  152. package/dist/network/RequestThumbprint.d.ts +2 -2
  153. package/dist/network/RequestThumbprint.d.ts.map +1 -1
  154. package/dist/network/ThrottlingUtils.d.ts +5 -5
  155. package/dist/network/ThrottlingUtils.d.ts.map +1 -1
  156. package/dist/network/ThrottlingUtils.mjs +1 -1
  157. package/dist/packageMetadata.d.ts +1 -1
  158. package/dist/packageMetadata.mjs +2 -2
  159. package/dist/request/AuthenticationHeaderParser.mjs +1 -1
  160. package/dist/request/BaseAuthRequest.d.ts +5 -5
  161. package/dist/request/BaseAuthRequest.d.ts.map +1 -1
  162. package/dist/request/CommonAuthorizationCodeRequest.d.ts +3 -3
  163. package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
  164. package/dist/request/CommonAuthorizationUrlRequest.d.ts +4 -4
  165. package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
  166. package/dist/request/CommonClientCredentialRequest.d.ts +3 -3
  167. package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
  168. package/dist/request/CommonDeviceCodeRequest.d.ts +3 -3
  169. package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
  170. package/dist/request/CommonEndSessionRequest.d.ts +2 -2
  171. package/dist/request/CommonEndSessionRequest.d.ts.map +1 -1
  172. package/dist/request/CommonOnBehalfOfRequest.d.ts +1 -1
  173. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
  174. package/dist/request/CommonRefreshTokenRequest.d.ts +3 -3
  175. package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
  176. package/dist/request/CommonSilentFlowRequest.d.ts +3 -3
  177. package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
  178. package/dist/request/CommonUsernamePasswordRequest.d.ts +1 -1
  179. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
  180. package/dist/request/NativeRequest.d.ts +1 -1
  181. package/dist/request/NativeRequest.d.ts.map +1 -1
  182. package/dist/request/RequestParameterBuilder.d.ts +5 -5
  183. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  184. package/dist/request/RequestParameterBuilder.mjs +1 -1
  185. package/dist/request/RequestValidator.mjs +1 -1
  186. package/dist/request/ScopeSet.mjs +1 -1
  187. package/dist/response/AuthenticationResult.d.ts +1 -1
  188. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  189. package/dist/response/ExternalTokenResponse.d.ts +1 -1
  190. package/dist/response/ExternalTokenResponse.d.ts.map +1 -1
  191. package/dist/response/ResponseHandler.d.ts +16 -16
  192. package/dist/response/ResponseHandler.d.ts.map +1 -1
  193. package/dist/response/ResponseHandler.mjs +1 -1
  194. package/dist/response/ServerAuthorizationTokenResponse.d.ts +1 -1
  195. package/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -1
  196. package/dist/telemetry/performance/IPerformanceClient.d.ts +2 -2
  197. package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  198. package/dist/telemetry/performance/PerformanceClient.d.ts +5 -5
  199. package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  200. package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
  201. package/dist/telemetry/performance/PerformanceEvent.d.ts +0 -4
  202. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  203. package/dist/telemetry/performance/PerformanceEvent.mjs +1 -5
  204. package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
  205. package/dist/telemetry/performance/StubPerformanceClient.d.ts +3 -3
  206. package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  207. package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
  208. package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
  209. package/dist/telemetry/server/ServerTelemetryManager.d.ts +5 -5
  210. package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  211. package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
  212. package/dist/url/UrlString.d.ts +1 -1
  213. package/dist/url/UrlString.d.ts.map +1 -1
  214. package/dist/url/UrlString.mjs +1 -1
  215. package/dist/utils/ClientAssertionUtils.d.ts +1 -1
  216. package/dist/utils/ClientAssertionUtils.d.ts.map +1 -1
  217. package/dist/utils/ClientAssertionUtils.mjs +1 -1
  218. package/dist/utils/Constants.mjs +1 -1
  219. package/dist/utils/FunctionWrappers.d.ts +2 -2
  220. package/dist/utils/FunctionWrappers.d.ts.map +1 -1
  221. package/dist/utils/FunctionWrappers.mjs +1 -1
  222. package/dist/utils/ProtocolUtils.d.ts +1 -1
  223. package/dist/utils/ProtocolUtils.d.ts.map +1 -1
  224. package/dist/utils/ProtocolUtils.mjs +1 -1
  225. package/dist/utils/StringUtils.mjs +1 -1
  226. package/dist/utils/TimeUtils.mjs +1 -1
  227. package/dist/utils/UrlUtils.d.ts +1 -1
  228. package/dist/utils/UrlUtils.d.ts.map +1 -1
  229. package/dist/utils/UrlUtils.mjs +1 -1
  230. package/lib/index-browser.cjs +838 -0
  231. package/lib/index-browser.cjs.map +1 -0
  232. package/{dist/index.cjs → lib/index-node-aee3f7b6.js} +39 -769
  233. package/lib/index-node-aee3f7b6.js.map +1 -0
  234. package/lib/index-node.cjs +103 -0
  235. package/lib/index-node.cjs.map +1 -0
  236. package/lib/index.cjs +111 -0
  237. package/lib/index.cjs.map +1 -0
  238. package/lib/package.json +1 -0
  239. package/lib/types/account/AccountInfo.d.ts +67 -0
  240. package/lib/types/account/AccountInfo.d.ts.map +1 -0
  241. package/lib/types/account/AuthToken.d.ts +18 -0
  242. package/lib/types/account/AuthToken.d.ts.map +1 -0
  243. package/lib/types/account/CcsCredential.d.ts +10 -0
  244. package/lib/types/account/CcsCredential.d.ts.map +1 -0
  245. package/lib/types/account/ClientCredentials.d.ts +20 -0
  246. package/lib/types/account/ClientCredentials.d.ts.map +1 -0
  247. package/lib/types/account/ClientInfo.d.ts +19 -0
  248. package/lib/types/account/ClientInfo.d.ts.map +1 -0
  249. package/lib/types/account/TokenClaims.d.ts +84 -0
  250. package/lib/types/account/TokenClaims.d.ts.map +1 -0
  251. package/lib/types/authority/Authority.d.ts +255 -0
  252. package/lib/types/authority/Authority.d.ts.map +1 -0
  253. package/lib/types/authority/AuthorityFactory.d.ts +19 -0
  254. package/lib/types/authority/AuthorityFactory.d.ts.map +1 -0
  255. package/lib/types/authority/AuthorityMetadata.d.ts +44 -0
  256. package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -0
  257. package/lib/types/authority/AuthorityOptions.d.ts +28 -0
  258. package/lib/types/authority/AuthorityOptions.d.ts.map +1 -0
  259. package/lib/types/authority/AuthorityType.d.ts +11 -0
  260. package/lib/types/authority/AuthorityType.d.ts.map +1 -0
  261. package/lib/types/authority/AzureRegion.d.ts +2 -0
  262. package/lib/types/authority/AzureRegion.d.ts.map +1 -0
  263. package/lib/types/authority/AzureRegionConfiguration.d.ts +6 -0
  264. package/lib/types/authority/AzureRegionConfiguration.d.ts.map +1 -0
  265. package/lib/types/authority/CloudDiscoveryMetadata.d.ts +6 -0
  266. package/lib/types/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
  267. package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts +14 -0
  268. package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -0
  269. package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
  270. package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
  271. package/lib/types/authority/ImdsOptions.d.ts +6 -0
  272. package/lib/types/authority/ImdsOptions.d.ts.map +1 -0
  273. package/lib/types/authority/OIDCOptions.d.ts +9 -0
  274. package/lib/types/authority/OIDCOptions.d.ts.map +1 -0
  275. package/lib/types/authority/OpenIdConfigResponse.d.ts +12 -0
  276. package/lib/types/authority/OpenIdConfigResponse.d.ts.map +1 -0
  277. package/lib/types/authority/ProtocolMode.d.ts +9 -0
  278. package/lib/types/authority/ProtocolMode.d.ts.map +1 -0
  279. package/lib/types/authority/RegionDiscovery.d.ts +33 -0
  280. package/lib/types/authority/RegionDiscovery.d.ts.map +1 -0
  281. package/lib/types/authority/RegionDiscoveryMetadata.d.ts +7 -0
  282. package/lib/types/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
  283. package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts +16 -0
  284. package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -0
  285. package/lib/types/cache/CacheManager.d.ts +498 -0
  286. package/lib/types/cache/CacheManager.d.ts.map +1 -0
  287. package/lib/types/cache/entities/AccessTokenEntity.d.ts +26 -0
  288. package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -0
  289. package/lib/types/cache/entities/AccountEntity.d.ts +107 -0
  290. package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -0
  291. package/lib/types/cache/entities/AppMetadataEntity.d.ts +12 -0
  292. package/lib/types/cache/entities/AppMetadataEntity.d.ts.map +1 -0
  293. package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts +16 -0
  294. package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
  295. package/lib/types/cache/entities/CacheRecord.d.ts +14 -0
  296. package/lib/types/cache/entities/CacheRecord.d.ts.map +1 -0
  297. package/lib/types/cache/entities/CredentialEntity.d.ts +31 -0
  298. package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -0
  299. package/lib/types/cache/entities/IdTokenEntity.d.ts +9 -0
  300. package/lib/types/cache/entities/IdTokenEntity.d.ts.map +1 -0
  301. package/lib/types/cache/entities/RefreshTokenEntity.d.ts +8 -0
  302. package/lib/types/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
  303. package/lib/types/cache/entities/ServerTelemetryEntity.d.ts +7 -0
  304. package/lib/types/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
  305. package/lib/types/cache/entities/ThrottlingEntity.d.ts +8 -0
  306. package/lib/types/cache/entities/ThrottlingEntity.d.ts.map +1 -0
  307. package/lib/types/cache/interface/ICacheManager.d.ts +167 -0
  308. package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -0
  309. package/lib/types/cache/interface/ICachePlugin.d.ts +6 -0
  310. package/lib/types/cache/interface/ICachePlugin.d.ts.map +1 -0
  311. package/lib/types/cache/interface/ISerializableTokenCache.d.ts +5 -0
  312. package/lib/types/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
  313. package/lib/types/cache/persistence/TokenCacheContext.d.ts +24 -0
  314. package/lib/types/cache/persistence/TokenCacheContext.d.ts.map +1 -0
  315. package/lib/types/cache/utils/CacheHelpers.d.ts +95 -0
  316. package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -0
  317. package/lib/types/cache/utils/CacheTypes.d.ts +70 -0
  318. package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -0
  319. package/lib/types/client/AuthorizationCodeClient.d.ts +76 -0
  320. package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -0
  321. package/lib/types/client/BaseClient.d.ts +52 -0
  322. package/lib/types/client/BaseClient.d.ts.map +1 -0
  323. package/lib/types/client/RefreshTokenClient.d.ts +36 -0
  324. package/lib/types/client/RefreshTokenClient.d.ts.map +1 -0
  325. package/lib/types/client/SilentFlowClient.d.ts +28 -0
  326. package/lib/types/client/SilentFlowClient.d.ts.map +1 -0
  327. package/lib/types/config/AppTokenProvider.d.ts +39 -0
  328. package/lib/types/config/AppTokenProvider.d.ts.map +1 -0
  329. package/lib/types/config/ClientConfiguration.d.ts +153 -0
  330. package/lib/types/config/ClientConfiguration.d.ts.map +1 -0
  331. package/lib/types/constants/AADServerParamKeys.d.ts +54 -0
  332. package/lib/types/constants/AADServerParamKeys.d.ts.map +1 -0
  333. package/lib/types/crypto/ICrypto.d.ts +69 -0
  334. package/lib/types/crypto/ICrypto.d.ts.map +1 -0
  335. package/lib/types/crypto/IGuidGenerator.d.ts +5 -0
  336. package/lib/types/crypto/IGuidGenerator.d.ts.map +1 -0
  337. package/lib/types/crypto/JoseHeader.d.ts +23 -0
  338. package/lib/types/crypto/JoseHeader.d.ts.map +1 -0
  339. package/lib/types/crypto/PopTokenGenerator.d.ts +60 -0
  340. package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -0
  341. package/lib/types/crypto/SignedHttpRequest.d.ts +16 -0
  342. package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -0
  343. package/lib/types/error/AuthError.d.ts +45 -0
  344. package/lib/types/error/AuthError.d.ts.map +1 -0
  345. package/lib/types/error/AuthErrorCodes.d.ts +6 -0
  346. package/lib/types/error/AuthErrorCodes.d.ts.map +1 -0
  347. package/lib/types/error/CacheError.d.ts +21 -0
  348. package/lib/types/error/CacheError.d.ts.map +1 -0
  349. package/lib/types/error/CacheErrorCodes.d.ts +3 -0
  350. package/lib/types/error/CacheErrorCodes.d.ts.map +1 -0
  351. package/lib/types/error/ClientAuthError.d.ts +238 -0
  352. package/lib/types/error/ClientAuthError.d.ts.map +1 -0
  353. package/lib/types/error/ClientAuthErrorCodes.d.ts +45 -0
  354. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -0
  355. package/lib/types/error/ClientConfigurationError.d.ts +129 -0
  356. package/lib/types/error/ClientConfigurationError.d.ts.map +1 -0
  357. package/lib/types/error/ClientConfigurationErrorCodes.d.ts +23 -0
  358. package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -0
  359. package/lib/types/error/InteractionRequiredAuthError.d.ts +66 -0
  360. package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -0
  361. package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts +8 -0
  362. package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts.map +1 -0
  363. package/lib/types/error/JoseHeaderError.d.ts +16 -0
  364. package/lib/types/error/JoseHeaderError.d.ts.map +1 -0
  365. package/lib/types/error/JoseHeaderErrorCodes.d.ts +3 -0
  366. package/lib/types/error/JoseHeaderErrorCodes.d.ts.map +1 -0
  367. package/lib/types/error/ServerError.d.ts +16 -0
  368. package/lib/types/error/ServerError.d.ts.map +1 -0
  369. package/lib/types/exports-browser-only.d.ts +10 -0
  370. package/lib/types/exports-browser-only.d.ts.map +1 -0
  371. package/lib/types/exports-common.d.ts +80 -0
  372. package/lib/types/exports-common.d.ts.map +1 -0
  373. package/lib/types/exports-node-only.d.ts +18 -0
  374. package/lib/types/exports-node-only.d.ts.map +1 -0
  375. package/lib/types/index-browser.d.ts +7 -0
  376. package/lib/types/index-browser.d.ts.map +1 -0
  377. package/lib/types/index-node.d.ts +7 -0
  378. package/lib/types/index-node.d.ts.map +1 -0
  379. package/lib/types/index.d.ts +12 -0
  380. package/lib/types/index.d.ts.map +1 -0
  381. package/lib/types/logger/Logger.d.ts +96 -0
  382. package/lib/types/logger/Logger.d.ts.map +1 -0
  383. package/lib/types/network/INetworkModule.d.ts +30 -0
  384. package/lib/types/network/INetworkModule.d.ts.map +1 -0
  385. package/lib/types/network/NetworkManager.d.ts +34 -0
  386. package/lib/types/network/NetworkManager.d.ts.map +1 -0
  387. package/lib/types/network/RequestThumbprint.d.ts +19 -0
  388. package/lib/types/network/RequestThumbprint.d.ts.map +1 -0
  389. package/lib/types/network/ThrottlingUtils.d.ts +43 -0
  390. package/lib/types/network/ThrottlingUtils.d.ts.map +1 -0
  391. package/lib/types/packageMetadata.d.ts +3 -0
  392. package/lib/types/packageMetadata.d.ts.map +1 -0
  393. package/lib/types/request/AuthenticationHeaderParser.d.ts +20 -0
  394. package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -0
  395. package/lib/types/request/BaseAuthRequest.d.ts +48 -0
  396. package/lib/types/request/BaseAuthRequest.d.ts.map +1 -0
  397. package/lib/types/request/CommonAuthorizationCodeRequest.d.ts +28 -0
  398. package/lib/types/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
  399. package/lib/types/request/CommonAuthorizationUrlRequest.d.ts +51 -0
  400. package/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
  401. package/lib/types/request/CommonClientCredentialRequest.d.ts +18 -0
  402. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -0
  403. package/lib/types/request/CommonDeviceCodeRequest.d.ts +22 -0
  404. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -0
  405. package/lib/types/request/CommonEndSessionRequest.d.ts +22 -0
  406. package/lib/types/request/CommonEndSessionRequest.d.ts.map +1 -0
  407. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +14 -0
  408. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
  409. package/lib/types/request/CommonRefreshTokenRequest.d.ts +23 -0
  410. package/lib/types/request/CommonRefreshTokenRequest.d.ts.map +1 -0
  411. package/lib/types/request/CommonSilentFlowRequest.d.ts +28 -0
  412. package/lib/types/request/CommonSilentFlowRequest.d.ts.map +1 -0
  413. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +18 -0
  414. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
  415. package/lib/types/request/NativeRequest.d.ts +20 -0
  416. package/lib/types/request/NativeRequest.d.ts.map +1 -0
  417. package/lib/types/request/NativeSignOutRequest.d.ts +6 -0
  418. package/lib/types/request/NativeSignOutRequest.d.ts.map +1 -0
  419. package/lib/types/request/RequestParameterBuilder.d.ts +218 -0
  420. package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -0
  421. package/lib/types/request/RequestValidator.d.ts +28 -0
  422. package/lib/types/request/RequestValidator.d.ts.map +1 -0
  423. package/lib/types/request/ScopeSet.d.ts +89 -0
  424. package/lib/types/request/ScopeSet.d.ts.map +1 -0
  425. package/lib/types/request/StoreInCache.d.ts +9 -0
  426. package/lib/types/request/StoreInCache.d.ts.map +1 -0
  427. package/lib/types/response/AuthenticationResult.d.ts +42 -0
  428. package/lib/types/response/AuthenticationResult.d.ts.map +1 -0
  429. package/lib/types/response/AuthorizationCodePayload.d.ts +14 -0
  430. package/lib/types/response/AuthorizationCodePayload.d.ts.map +1 -0
  431. package/lib/types/response/DeviceCodeResponse.d.ts +26 -0
  432. package/lib/types/response/DeviceCodeResponse.d.ts.map +1 -0
  433. package/lib/types/response/ExternalTokenResponse.d.ts +16 -0
  434. package/lib/types/response/ExternalTokenResponse.d.ts.map +1 -0
  435. package/lib/types/response/IMDSBadResponse.d.ts +5 -0
  436. package/lib/types/response/IMDSBadResponse.d.ts.map +1 -0
  437. package/lib/types/response/ResponseHandler.d.ts +70 -0
  438. package/lib/types/response/ResponseHandler.d.ts.map +1 -0
  439. package/lib/types/response/ServerAuthorizationCodeResponse.d.ts +27 -0
  440. package/lib/types/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
  441. package/lib/types/response/ServerAuthorizationTokenResponse.d.ts +48 -0
  442. package/lib/types/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
  443. package/lib/types/telemetry/performance/IPerformanceClient.d.ts +58 -0
  444. package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
  445. package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
  446. package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
  447. package/lib/types/telemetry/performance/PerformanceClient.d.ts +243 -0
  448. package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -0
  449. package/lib/types/telemetry/performance/PerformanceEvent.d.ts +512 -0
  450. package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
  451. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +25 -0
  452. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
  453. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +79 -0
  454. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
  455. package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
  456. package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
  457. package/lib/types/url/IUri.d.ts +13 -0
  458. package/lib/types/url/IUri.d.ts.map +1 -0
  459. package/lib/types/url/UrlString.d.ts +49 -0
  460. package/lib/types/url/UrlString.d.ts.map +1 -0
  461. package/lib/types/utils/ClientAssertionUtils.d.ts +3 -0
  462. package/lib/types/utils/ClientAssertionUtils.d.ts.map +1 -0
  463. package/lib/types/utils/Constants.d.ts +310 -0
  464. package/lib/types/utils/Constants.d.ts.map +1 -0
  465. package/lib/types/utils/FunctionWrappers.d.ts +28 -0
  466. package/lib/types/utils/FunctionWrappers.d.ts.map +1 -0
  467. package/lib/types/utils/MsalTypes.d.ts +7 -0
  468. package/lib/types/utils/MsalTypes.d.ts.map +1 -0
  469. package/lib/types/utils/ProtocolUtils.d.ts +43 -0
  470. package/lib/types/utils/ProtocolUtils.d.ts.map +1 -0
  471. package/lib/types/utils/StringUtils.d.ts +41 -0
  472. package/lib/types/utils/StringUtils.d.ts.map +1 -0
  473. package/lib/types/utils/TimeUtils.d.ts +26 -0
  474. package/lib/types/utils/TimeUtils.d.ts.map +1 -0
  475. package/lib/types/utils/UrlUtils.d.ts +11 -0
  476. package/lib/types/utils/UrlUtils.d.ts.map +1 -0
  477. package/node/README.md +1 -0
  478. package/node/package.json +5 -0
  479. package/package.json +37 -8
  480. package/src/account/AccountInfo.ts +1 -1
  481. package/src/account/AuthToken.ts +2 -2
  482. package/src/account/ClientInfo.ts +2 -2
  483. package/src/authority/Authority.ts +26 -26
  484. package/src/authority/AuthorityFactory.ts +9 -9
  485. package/src/authority/AuthorityMetadata.ts +7 -7
  486. package/src/authority/AuthorityOptions.ts +4 -4
  487. package/src/authority/AzureRegionConfiguration.ts +1 -1
  488. package/src/authority/CloudInstanceDiscoveryResponse.ts +1 -1
  489. package/src/authority/OIDCOptions.ts +1 -1
  490. package/src/authority/RegionDiscovery.ts +10 -10
  491. package/src/authority/RegionDiscoveryMetadata.ts +1 -1
  492. package/src/broker/nativeBroker/INativeBrokerPlugin.ts +5 -5
  493. package/src/cache/CacheManager.ts +28 -28
  494. package/src/cache/entities/AccessTokenEntity.ts +2 -2
  495. package/src/cache/entities/AccountEntity.ts +10 -10
  496. package/src/cache/entities/CacheRecord.ts +5 -5
  497. package/src/cache/entities/CredentialEntity.ts +1 -1
  498. package/src/cache/entities/IdTokenEntity.ts +1 -1
  499. package/src/cache/entities/RefreshTokenEntity.ts +1 -1
  500. package/src/cache/interface/ICacheManager.ts +12 -12
  501. package/src/cache/interface/ICachePlugin.ts +1 -1
  502. package/src/cache/persistence/TokenCacheContext.ts +1 -1
  503. package/src/cache/utils/CacheHelpers.ts +13 -13
  504. package/src/cache/utils/CacheTypes.ts +11 -11
  505. package/src/client/AuthorizationCodeClient.ts +51 -38
  506. package/src/client/BaseClient.ts +19 -19
  507. package/src/client/RefreshTokenClient.ts +29 -29
  508. package/src/client/SilentFlowClient.ts +17 -17
  509. package/src/config/ClientConfiguration.ts +18 -15
  510. package/src/crypto/ICrypto.ts +3 -3
  511. package/src/crypto/JoseHeader.ts +2 -2
  512. package/src/crypto/PopTokenGenerator.ts +7 -7
  513. package/src/crypto/SignedHttpRequest.ts +1 -1
  514. package/src/error/AuthError.ts +2 -2
  515. package/src/error/CacheError.ts +1 -1
  516. package/src/error/ClientAuthError.ts +2 -2
  517. package/src/error/ClientConfigurationError.ts +2 -2
  518. package/src/error/InteractionRequiredAuthError.ts +3 -3
  519. package/src/error/JoseHeaderError.ts +2 -2
  520. package/src/error/ServerError.ts +1 -1
  521. package/src/exports-browser-only.ts +29 -0
  522. package/src/exports-common.ts +192 -0
  523. package/src/exports-node-only.ts +35 -0
  524. package/src/index-browser.ts +11 -0
  525. package/src/index-node.ts +11 -0
  526. package/src/index.ts +7 -250
  527. package/src/logger/Logger.ts +2 -2
  528. package/src/network/INetworkModule.ts +2 -2
  529. package/src/network/NetworkManager.ts +7 -7
  530. package/src/network/RequestThumbprint.ts +2 -2
  531. package/src/network/ThrottlingUtils.ts +8 -8
  532. package/src/packageMetadata.ts +1 -1
  533. package/src/request/AuthenticationHeaderParser.ts +2 -2
  534. package/src/request/BaseAuthRequest.ts +5 -5
  535. package/src/request/CommonAuthorizationCodeRequest.ts +3 -3
  536. package/src/request/CommonAuthorizationUrlRequest.ts +4 -4
  537. package/src/request/CommonClientCredentialRequest.ts +3 -3
  538. package/src/request/CommonDeviceCodeRequest.ts +3 -3
  539. package/src/request/CommonEndSessionRequest.ts +2 -2
  540. package/src/request/CommonOnBehalfOfRequest.ts +1 -1
  541. package/src/request/CommonRefreshTokenRequest.ts +3 -3
  542. package/src/request/CommonSilentFlowRequest.ts +3 -3
  543. package/src/request/CommonUsernamePasswordRequest.ts +1 -1
  544. package/src/request/NativeRequest.ts +1 -1
  545. package/src/request/RequestParameterBuilder.ts +9 -9
  546. package/src/request/RequestValidator.ts +2 -2
  547. package/src/request/ScopeSet.ts +4 -4
  548. package/src/response/AuthenticationResult.ts +1 -1
  549. package/src/response/ExternalTokenResponse.ts +1 -1
  550. package/src/response/ResponseHandler.ts +31 -31
  551. package/src/response/ServerAuthorizationTokenResponse.ts +1 -1
  552. package/src/telemetry/performance/IPerformanceClient.ts +2 -2
  553. package/src/telemetry/performance/PerformanceClient.ts +10 -10
  554. package/src/telemetry/performance/PerformanceEvent.ts +0 -5
  555. package/src/telemetry/performance/StubPerformanceClient.ts +6 -3
  556. package/src/telemetry/server/ServerTelemetryManager.ts +6 -6
  557. package/src/url/UrlString.ts +5 -5
  558. package/src/utils/ClientAssertionUtils.ts +1 -1
  559. package/src/utils/FunctionWrappers.ts +2 -2
  560. package/src/utils/ProtocolUtils.ts +3 -3
  561. package/src/utils/UrlUtils.ts +2 -2
  562. package/dist/index.cjs.map +0 -1
@@ -0,0 +1,52 @@
1
+ import { ClientConfiguration, CommonClientConfiguration } from "../config/ClientConfiguration.js";
2
+ import { INetworkModule } from "../network/INetworkModule.js";
3
+ import { NetworkManager, NetworkResponse } from "../network/NetworkManager.js";
4
+ import { ICrypto } from "../crypto/ICrypto.js";
5
+ import { Authority } from "../authority/Authority.js";
6
+ import { Logger } from "../logger/Logger.js";
7
+ import { ServerAuthorizationTokenResponse } from "../response/ServerAuthorizationTokenResponse.js";
8
+ import { CacheManager } from "../cache/CacheManager.js";
9
+ import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js";
10
+ import { RequestThumbprint } from "../network/RequestThumbprint.js";
11
+ import { CcsCredential } from "../account/CcsCredential.js";
12
+ import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
13
+ import { BaseAuthRequest } from "../request/BaseAuthRequest.js";
14
+ /**
15
+ * Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.
16
+ * @internal
17
+ */
18
+ export declare abstract class BaseClient {
19
+ logger: Logger;
20
+ protected config: CommonClientConfiguration;
21
+ protected cryptoUtils: ICrypto;
22
+ protected cacheManager: CacheManager;
23
+ protected networkClient: INetworkModule;
24
+ protected serverTelemetryManager: ServerTelemetryManager | null;
25
+ protected networkManager: NetworkManager;
26
+ authority: Authority;
27
+ protected performanceClient?: IPerformanceClient;
28
+ protected constructor(configuration: ClientConfiguration, performanceClient?: IPerformanceClient);
29
+ /**
30
+ * Creates default headers for requests to token endpoint
31
+ */
32
+ protected createTokenRequestHeaders(ccsCred?: CcsCredential): Record<string, string>;
33
+ /**
34
+ * Http post to token endpoint
35
+ * @param tokenEndpoint
36
+ * @param queryString
37
+ * @param headers
38
+ * @param thumbprint
39
+ */
40
+ protected executePostToTokenEndpoint(tokenEndpoint: string, queryString: string, headers: Record<string, string>, thumbprint: RequestThumbprint, correlationId: string, queuedEvent?: string): Promise<NetworkResponse<ServerAuthorizationTokenResponse>>;
41
+ /**
42
+ * Updates the authority object of the client. Endpoint discovery must be completed.
43
+ * @param updatedAuthority
44
+ */
45
+ updateAuthority(cloudInstanceHostname: string, correlationId: string): Promise<void>;
46
+ /**
47
+ * Creates query string for the /token request
48
+ * @param request
49
+ */
50
+ createTokenQueryParameters(request: BaseAuthRequest): string;
51
+ }
52
+ //# sourceMappingURL=BaseClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseClient.d.ts","sourceRoot":"","sources":["../../../src/client/BaseClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,mBAAmB,EAEnB,yBAAyB,EAC5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAqB,MAAM,6BAA6B,CAAC;AAE/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE;;;GAGG;AACH,8BAAsB,UAAU;IAErB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGhE,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAGlC,SAAS,EAAE,SAAS,CAAC;IAG5B,SAAS,CAAC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IAEjD,SAAS,aACL,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAiC1C;;OAEG;IACH,SAAS,CAAC,yBAAyB,CAC/B,OAAO,CAAC,EAAE,aAAa,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IA8BzB;;;;;;OAMG;cACa,0BAA0B,CACtC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,GACrB,OAAO,CAAC,eAAe,CAAC,gCAAgC,CAAC,CAAC;IAmC7D;;;OAGG;IACG,eAAe,CACjB,qBAAqB,EAAE,MAAM,EAC7B,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;IAkBhB;;;OAGG;IACH,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM;CAW/D"}
@@ -0,0 +1,36 @@
1
+ import { ClientConfiguration } from "../config/ClientConfiguration.js";
2
+ import { BaseClient } from "./BaseClient.js";
3
+ import { CommonRefreshTokenRequest } from "../request/CommonRefreshTokenRequest.js";
4
+ import { AuthenticationResult } from "../response/AuthenticationResult.js";
5
+ import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest.js";
6
+ import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
7
+ /**
8
+ * OAuth2.0 refresh token client
9
+ * @internal
10
+ */
11
+ export declare class RefreshTokenClient extends BaseClient {
12
+ constructor(configuration: ClientConfiguration, performanceClient?: IPerformanceClient);
13
+ acquireToken(request: CommonRefreshTokenRequest): Promise<AuthenticationResult>;
14
+ /**
15
+ * Gets cached refresh token and attaches to request, then calls acquireToken API
16
+ * @param request
17
+ */
18
+ acquireTokenByRefreshToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
19
+ /**
20
+ * makes a network call to acquire tokens by exchanging RefreshToken available in userCache; throws if refresh token is not cached
21
+ * @param request
22
+ */
23
+ private acquireTokenWithCachedRefreshToken;
24
+ /**
25
+ * Constructs the network message and makes a NW call to the underlying secure token service
26
+ * @param request
27
+ * @param authority
28
+ */
29
+ private executeTokenRequest;
30
+ /**
31
+ * Helper function to create the token request body
32
+ * @param request
33
+ */
34
+ private createTokenRequestBody;
35
+ }
36
+ //# sourceMappingURL=RefreshTokenClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefreshTokenClient.d.ts","sourceRoot":"","sources":["../../../src/client/RefreshTokenClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,mBAAmB,EAEtB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAYpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAK3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAoBhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAQpF;;;GAGG;AACH,qBAAa,kBAAmB,SAAQ,UAAU;gBAE1C,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAI7B,YAAY,CACrB,OAAO,EAAE,yBAAyB,GACnC,OAAO,CAAC,oBAAoB,CAAC;IA8ChC;;;OAGG;IACU,0BAA0B,CACnC,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,CAAC;IAsEhC;;;OAGG;YACW,kCAAkC;IAgFhD;;;;OAIG;YACW,mBAAmB;IAuDjC;;;OAGG;YACW,sBAAsB;CAgJvC"}
@@ -0,0 +1,28 @@
1
+ import { BaseClient } from "./BaseClient.js";
2
+ import { ClientConfiguration } from "../config/ClientConfiguration.js";
3
+ import { CommonSilentFlowRequest } from "../request/CommonSilentFlowRequest.js";
4
+ import { AuthenticationResult } from "../response/AuthenticationResult.js";
5
+ import { CacheOutcome } from "../utils/Constants.js";
6
+ import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
7
+ /** @internal */
8
+ export declare class SilentFlowClient extends BaseClient {
9
+ constructor(configuration: ClientConfiguration, performanceClient?: IPerformanceClient);
10
+ /**
11
+ * Retrieves a token from cache if it is still valid, or uses the cached refresh token to renew
12
+ * the given token and returns the renewed token
13
+ * @param request
14
+ */
15
+ acquireToken(request: CommonSilentFlowRequest): Promise<AuthenticationResult>;
16
+ /**
17
+ * Retrieves token from cache or throws an error if it must be refreshed.
18
+ * @param request
19
+ */
20
+ acquireCachedToken(request: CommonSilentFlowRequest): Promise<[AuthenticationResult, CacheOutcome]>;
21
+ private setCacheOutcome;
22
+ /**
23
+ * Helper function to build response object from the CacheRecord
24
+ * @param cacheRecord
25
+ */
26
+ private generateResultFromCacheRecord;
27
+ }
28
+ //# sourceMappingURL=SilentFlowClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SilentFlowClient.d.ts","sourceRoot":"","sources":["../../../src/client/SilentFlowClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAU3E,OAAO,EAAE,YAAY,EAAuB,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAQpF,gBAAgB;AAChB,qBAAa,gBAAiB,SAAQ,UAAU;gBAExC,aAAa,EAAE,mBAAmB,EAClC,iBAAiB,CAAC,EAAE,kBAAkB;IAK1C;;;;OAIG;IACG,YAAY,CACd,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,CAAC;IA8ChC;;;OAGG;IACG,kBAAkB,CACpB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;IA+GhD,OAAO,CAAC,eAAe;IAkBvB;;;OAGG;YACW,6BAA6B;CAqC9C"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Extensibility interface, which allows the app developer to return a token, based on the passed-in parameters, instead of fetching tokens from
3
+ * the Identity Provider (AAD).
4
+ * Developers need to construct and return an AppTokenProviderResult object back to MSAL. MSAL will cache the token response
5
+ * in the same way it would do if the result were comming from AAD.
6
+ * This extensibility point is only defined for the client_credential flow, i.e. acquireTokenByClientCredential and
7
+ * meant for Azure SDK to enhance Managed Identity support.
8
+ */
9
+ export interface IAppTokenProvider {
10
+ (appTokenProviderParameters: AppTokenProviderParameters): Promise<AppTokenProviderResult>;
11
+ }
12
+ /**
13
+ * Input object for the IAppTokenProvider extensiblity. MSAL will create this object, which can be used
14
+ * to help create an AppTokenProviderResult.
15
+ *
16
+ * - correlationId - the correlation Id associated with the request
17
+ * - tenantId - the tenant Id for which the token must be provided
18
+ * - scopes - the scopes for which the token must be provided
19
+ * - claims - any extra claims that the token must satisfy
20
+ */
21
+ export type AppTokenProviderParameters = {
22
+ readonly correlationId?: string;
23
+ readonly tenantId: string;
24
+ readonly scopes: Array<string>;
25
+ readonly claims?: string;
26
+ };
27
+ /**
28
+ * Output object for IAppTokenProvider extensiblity.
29
+ *
30
+ * - accessToken - the actual access token, typically in JWT format, that satisfies the request data AppTokenProviderParameters
31
+ * - expiresInSeconds - how long the tokens has before expiry, in seconds. Similar to the "expires_in" field in an AAD token response.
32
+ * - refreshInSeconds - how long the token has before it should be proactively refreshed. Similar to the "refresh_in" field in an AAD token response.
33
+ */
34
+ export type AppTokenProviderResult = {
35
+ accessToken: string;
36
+ expiresInSeconds: number;
37
+ refreshInSeconds?: number;
38
+ };
39
+ //# sourceMappingURL=AppTokenProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppTokenProvider.d.ts","sourceRoot":"","sources":["../../../src/config/AppTokenProvider.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B,CACI,0BAA0B,EAAE,0BAA0B,GACvD,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,153 @@
1
+ import { INetworkModule } from "../network/INetworkModule.js";
2
+ import { ICrypto } from "../crypto/ICrypto.js";
3
+ import { ILoggerCallback, LogLevel } from "../logger/Logger.js";
4
+ import { Authority } from "../authority/Authority.js";
5
+ import { AzureCloudInstance } from "../authority/AuthorityOptions.js";
6
+ import { CacheManager } from "../cache/CacheManager.js";
7
+ import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js";
8
+ import { ICachePlugin } from "../cache/interface/ICachePlugin.js";
9
+ import { ISerializableTokenCache } from "../cache/interface/ISerializableTokenCache.js";
10
+ import { ClientCredentials } from "../account/ClientCredentials.js";
11
+ /**
12
+ * Use the configuration object to configure MSAL Modules and initialize the base interfaces for MSAL.
13
+ *
14
+ * This object allows you to configure important elements of MSAL functionality:
15
+ * - authOptions - Authentication for application
16
+ * - cryptoInterface - Implementation of crypto functions
17
+ * - libraryInfo - Library metadata
18
+ * - telemetry - Telemetry options and data
19
+ * - loggerOptions - Logging for application
20
+ * - networkInterface - Network implementation
21
+ * - storageInterface - Storage implementation
22
+ * - systemOptions - Additional library options
23
+ * - clientCredentials - Credentials options for confidential clients
24
+ * @internal
25
+ */
26
+ export type ClientConfiguration = {
27
+ authOptions: AuthOptions;
28
+ systemOptions?: SystemOptions;
29
+ loggerOptions?: LoggerOptions;
30
+ cacheOptions?: CacheOptions;
31
+ storageInterface?: CacheManager;
32
+ networkInterface?: INetworkModule;
33
+ cryptoInterface?: ICrypto;
34
+ clientCredentials?: ClientCredentials;
35
+ libraryInfo?: LibraryInfo;
36
+ telemetry?: TelemetryOptions;
37
+ serverTelemetryManager?: ServerTelemetryManager | null;
38
+ persistencePlugin?: ICachePlugin | null;
39
+ serializableCache?: ISerializableTokenCache | null;
40
+ };
41
+ export type CommonClientConfiguration = {
42
+ authOptions: Required<AuthOptions>;
43
+ systemOptions: Required<SystemOptions>;
44
+ loggerOptions: Required<LoggerOptions>;
45
+ cacheOptions: Required<CacheOptions>;
46
+ storageInterface: CacheManager;
47
+ networkInterface: INetworkModule;
48
+ cryptoInterface: Required<ICrypto>;
49
+ libraryInfo: LibraryInfo;
50
+ telemetry: Required<TelemetryOptions>;
51
+ serverTelemetryManager: ServerTelemetryManager | null;
52
+ clientCredentials: ClientCredentials;
53
+ persistencePlugin: ICachePlugin | null;
54
+ serializableCache: ISerializableTokenCache | null;
55
+ };
56
+ /**
57
+ * Use this to configure the auth options in the ClientConfiguration object
58
+ *
59
+ * - clientId - Client ID of your app registered with our Application registration portal : https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredAppsPreview in Microsoft Identity Platform
60
+ * - authority - You can configure a specific authority, defaults to " " or "https://login.microsoftonline.com/common"
61
+ * - knownAuthorities - An array of URIs that are known to be valid. Used in B2C scenarios.
62
+ * - cloudDiscoveryMetadata - A string containing the cloud discovery response. Used in AAD scenarios.
63
+ * - clientCapabilities - Array of capabilities which will be added to the claims.access_token.xms_cc request property on every network request.
64
+ * - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints.
65
+ * - skipAuthorityMetadataCache - A flag to choose whether to use or not use the local metadata cache during authority initialization. Defaults to false.
66
+ * - instanceAware - A flag of whether the STS will send back additional parameters to specify where the tokens should be retrieved from.
67
+ * @internal
68
+ */
69
+ export type AuthOptions = {
70
+ clientId: string;
71
+ authority: Authority;
72
+ clientCapabilities?: Array<string>;
73
+ azureCloudOptions?: AzureCloudOptions;
74
+ skipAuthorityMetadataCache?: boolean;
75
+ instanceAware?: boolean;
76
+ };
77
+ /**
78
+ * Use this to configure token renewal info in the Configuration object
79
+ *
80
+ * - tokenRenewalOffsetSeconds - Sets the window of offset needed to renew the token before expiry
81
+ */
82
+ export type SystemOptions = {
83
+ tokenRenewalOffsetSeconds?: number;
84
+ preventCorsPreflight?: boolean;
85
+ };
86
+ /**
87
+ * Use this to configure the logging that MSAL does, by configuring logger options in the Configuration object
88
+ *
89
+ * - loggerCallback - Callback for logger
90
+ * - piiLoggingEnabled - Sets whether pii logging is enabled
91
+ * - logLevel - Sets the level at which logging happens
92
+ * - correlationId - Sets the correlationId printed by the logger
93
+ */
94
+ export type LoggerOptions = {
95
+ loggerCallback?: ILoggerCallback;
96
+ piiLoggingEnabled?: boolean;
97
+ logLevel?: LogLevel;
98
+ correlationId?: string;
99
+ };
100
+ /**
101
+ * Use this to configure credential cache preferences in the ClientConfiguration object
102
+ *
103
+ * - claimsBasedCachingEnabled - Sets whether tokens should be cached based on the claims hash. Default is false.
104
+ */
105
+ export type CacheOptions = {
106
+ claimsBasedCachingEnabled?: boolean;
107
+ };
108
+ /**
109
+ * Library-specific options
110
+ */
111
+ export type LibraryInfo = {
112
+ sku: string;
113
+ version: string;
114
+ cpu: string;
115
+ os: string;
116
+ };
117
+ /**
118
+ * AzureCloudInstance specific options
119
+ *
120
+ * - azureCloudInstance - string enum providing short notation for soverign and public cloud authorities
121
+ * - tenant - provision to provide the tenant info
122
+ */
123
+ export type AzureCloudOptions = {
124
+ azureCloudInstance: AzureCloudInstance;
125
+ tenant?: string;
126
+ };
127
+ export type TelemetryOptions = {
128
+ application: ApplicationTelemetry;
129
+ };
130
+ /**
131
+ * Telemetry information sent on request
132
+ * - appName: Unique string name of an application
133
+ * - appVersion: Version of the application using MSAL
134
+ */
135
+ export type ApplicationTelemetry = {
136
+ appName: string;
137
+ appVersion: string;
138
+ };
139
+ export declare const DEFAULT_SYSTEM_OPTIONS: Required<SystemOptions>;
140
+ /**
141
+ * Function that sets the default options when not explicitly configured from app developer
142
+ *
143
+ * @param Configuration
144
+ *
145
+ * @returns Configuration
146
+ */
147
+ export declare function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions: userSystemOptions, loggerOptions: userLoggerOption, cacheOptions: userCacheOptions, storageInterface: storageImplementation, networkInterface: networkImplementation, cryptoInterface: cryptoImplementation, clientCredentials: clientCredentials, libraryInfo: libraryInfo, telemetry: telemetry, serverTelemetryManager: serverTelemetryManager, persistencePlugin: persistencePlugin, serializableCache: serializableCache, }: ClientConfiguration): CommonClientConfiguration;
148
+ /**
149
+ * Returns true if config has protocolMode set to ProtocolMode.OIDC, false otherwise
150
+ * @param ClientConfiguration
151
+ */
152
+ export declare function isOidcProtocolMode(config: ClientConfiguration): boolean;
153
+ //# sourceMappingURL=ClientConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientConfiguration.d.ts","sourceRoot":"","sources":["../../../src/config/ClientConfiguration.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,54 @@
1
+ export declare const CLIENT_ID = "client_id";
2
+ export declare const REDIRECT_URI = "redirect_uri";
3
+ export declare const RESPONSE_TYPE = "response_type";
4
+ export declare const RESPONSE_MODE = "response_mode";
5
+ export declare const GRANT_TYPE = "grant_type";
6
+ export declare const CLAIMS = "claims";
7
+ export declare const SCOPE = "scope";
8
+ export declare const ERROR = "error";
9
+ export declare const ERROR_DESCRIPTION = "error_description";
10
+ export declare const ACCESS_TOKEN = "access_token";
11
+ export declare const ID_TOKEN = "id_token";
12
+ export declare const REFRESH_TOKEN = "refresh_token";
13
+ export declare const EXPIRES_IN = "expires_in";
14
+ export declare const REFRESH_TOKEN_EXPIRES_IN = "refresh_token_expires_in";
15
+ export declare const STATE = "state";
16
+ export declare const NONCE = "nonce";
17
+ export declare const PROMPT = "prompt";
18
+ export declare const SESSION_STATE = "session_state";
19
+ export declare const CLIENT_INFO = "client_info";
20
+ export declare const CODE = "code";
21
+ export declare const CODE_CHALLENGE = "code_challenge";
22
+ export declare const CODE_CHALLENGE_METHOD = "code_challenge_method";
23
+ export declare const CODE_VERIFIER = "code_verifier";
24
+ export declare const CLIENT_REQUEST_ID = "client-request-id";
25
+ export declare const X_CLIENT_SKU = "x-client-SKU";
26
+ export declare const X_CLIENT_VER = "x-client-VER";
27
+ export declare const X_CLIENT_OS = "x-client-OS";
28
+ export declare const X_CLIENT_CPU = "x-client-CPU";
29
+ export declare const X_CLIENT_CURR_TELEM = "x-client-current-telemetry";
30
+ export declare const X_CLIENT_LAST_TELEM = "x-client-last-telemetry";
31
+ export declare const X_MS_LIB_CAPABILITY = "x-ms-lib-capability";
32
+ export declare const X_APP_NAME = "x-app-name";
33
+ export declare const X_APP_VER = "x-app-ver";
34
+ export declare const POST_LOGOUT_URI = "post_logout_redirect_uri";
35
+ export declare const ID_TOKEN_HINT = "id_token_hint";
36
+ export declare const DEVICE_CODE = "device_code";
37
+ export declare const CLIENT_SECRET = "client_secret";
38
+ export declare const CLIENT_ASSERTION = "client_assertion";
39
+ export declare const CLIENT_ASSERTION_TYPE = "client_assertion_type";
40
+ export declare const TOKEN_TYPE = "token_type";
41
+ export declare const REQ_CNF = "req_cnf";
42
+ export declare const OBO_ASSERTION = "assertion";
43
+ export declare const REQUESTED_TOKEN_USE = "requested_token_use";
44
+ export declare const ON_BEHALF_OF = "on_behalf_of";
45
+ export declare const FOCI = "foci";
46
+ export declare const CCS_HEADER = "X-AnchorMailbox";
47
+ export declare const RETURN_SPA_CODE = "return_spa_code";
48
+ export declare const NATIVE_BROKER = "nativebroker";
49
+ export declare const LOGOUT_HINT = "logout_hint";
50
+ export declare const SID = "sid";
51
+ export declare const LOGIN_HINT = "login_hint";
52
+ export declare const DOMAIN_HINT = "domain_hint";
53
+ export declare const X_CLIENT_EXTRA_SKU = "x-client-xtra-sku";
54
+ //# sourceMappingURL=AADServerParamKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AADServerParamKeys.d.ts","sourceRoot":"","sources":["../../../src/constants/AADServerParamKeys.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,QAAQ,aAAa,CAAC;AACnC,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AACnE,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,KAAK,UAAU,CAAC;AAC7B,eAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAC/C,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AACrD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,mBAAmB,+BAA+B,CAAC;AAChE,eAAO,MAAM,mBAAmB,4BAA4B,CAAC;AAC7D,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAC1D,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAC7D,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,aAAa,cAAc,CAAC;AACzC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,IAAI,SAAS,CAAC;AAC3B,eAAO,MAAM,UAAU,oBAAoB,CAAC;AAC5C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAC5C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,GAAG,QAAQ,CAAC;AACzB,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,kBAAkB,sBAAsB,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { BaseAuthRequest } from "../request/BaseAuthRequest.js";
2
+ import { ShrOptions, SignedHttpRequest } from "./SignedHttpRequest.js";
3
+ /**
4
+ * The PkceCodes type describes the structure
5
+ * of objects that contain PKCE code
6
+ * challenge and verifier pairs
7
+ */
8
+ export type PkceCodes = {
9
+ verifier: string;
10
+ challenge: string;
11
+ };
12
+ export type SignedHttpRequestParameters = Pick<BaseAuthRequest, "resourceRequestMethod" | "resourceRequestUri" | "shrClaims" | "shrNonce" | "shrOptions"> & {
13
+ correlationId?: string;
14
+ };
15
+ /**
16
+ * Interface for crypto functions used by library
17
+ */
18
+ export interface ICrypto {
19
+ /**
20
+ * Creates a guid randomly.
21
+ */
22
+ createNewGuid(): string;
23
+ /**
24
+ * base64 Encode string
25
+ * @param input
26
+ */
27
+ base64Encode(input: string): string;
28
+ /**
29
+ * base64 decode string
30
+ * @param input
31
+ */
32
+ base64Decode(input: string): string;
33
+ /**
34
+ * base64 URL safe encoded string
35
+ */
36
+ base64UrlEncode(input: string): string;
37
+ /**
38
+ * Stringifies and base64Url encodes input public key
39
+ * @param inputKid
40
+ * @returns Base64Url encoded public key
41
+ */
42
+ encodeKid(inputKid: string): string;
43
+ /**
44
+ * Generates an JWK RSA S256 Thumbprint
45
+ * @param request
46
+ */
47
+ getPublicKeyThumbprint(request: SignedHttpRequestParameters): Promise<string>;
48
+ /**
49
+ * Removes cryptographic keypair from key store matching the keyId passed in
50
+ * @param kid
51
+ */
52
+ removeTokenBindingKey(kid: string): Promise<boolean>;
53
+ /**
54
+ * Removes all cryptographic keys from IndexedDB storage
55
+ */
56
+ clearKeystore(): Promise<boolean>;
57
+ /**
58
+ * Returns a signed proof-of-possession token with a given acces token that contains a cnf claim with the required kid.
59
+ * @param accessToken
60
+ */
61
+ signJwt(payload: SignedHttpRequest, kid: string, shrOptions?: ShrOptions, correlationId?: string): Promise<string>;
62
+ /**
63
+ * Returns the SHA-256 hash of an input string
64
+ * @param plainText
65
+ */
66
+ hashString(plainText: string): Promise<string>;
67
+ }
68
+ export declare const DEFAULT_CRYPTO_IMPLEMENTATION: ICrypto;
69
+ //# sourceMappingURL=ICrypto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICrypto.d.ts","sourceRoot":"","sources":["../../../src/crypto/ICrypto.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEvE;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAC1C,eAAe,EACb,uBAAuB,GACvB,oBAAoB,GACpB,WAAW,GACX,UAAU,GACV,YAAY,CACjB,GAAG;IACA,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB;;OAEG;IACH,aAAa,IAAI,MAAM,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC;;;OAGG;IACH,sBAAsB,CAClB,OAAO,EAAE,2BAA2B,GACrC,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB;;;OAGG;IACH,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACrD;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC;;;OAGG;IACH,OAAO,CACH,OAAO,EAAE,iBAAiB,EAC1B,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,UAAU,EACvB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,6BAA6B,EAAE,OA+B3C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export interface IGuidGenerator {
2
+ generateGuid(): string;
3
+ isGuid(guid: string): boolean;
4
+ }
5
+ //# sourceMappingURL=IGuidGenerator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IGuidGenerator.d.ts","sourceRoot":"","sources":["../../../src/crypto/IGuidGenerator.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC3B,YAAY,IAAI,MAAM,CAAC;IACvB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC"}
@@ -0,0 +1,23 @@
1
+ import { JsonWebTokenTypes } from "../utils/Constants.js";
2
+ export type JoseHeaderOptions = {
3
+ typ?: JsonWebTokenTypes;
4
+ alg?: string;
5
+ kid?: string;
6
+ };
7
+ /** @internal */
8
+ export declare class JoseHeader {
9
+ typ?: JsonWebTokenTypes;
10
+ alg?: string;
11
+ kid?: string;
12
+ constructor(options: JoseHeaderOptions);
13
+ /**
14
+ * Builds SignedHttpRequest formatted JOSE Header from the
15
+ * JOSE Header options provided or previously set on the object and returns
16
+ * the stringified header object.
17
+ * Throws if keyId or algorithm aren't provided since they are required for Access Token Binding.
18
+ * @param shrHeaderOptions
19
+ * @returns
20
+ */
21
+ static getShrHeaderString(shrHeaderOptions: JoseHeaderOptions): string;
22
+ }
23
+ //# sourceMappingURL=JoseHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JoseHeader.d.ts","sourceRoot":"","sources":["../../../src/crypto/JoseHeader.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,qBAAa,UAAU;IACZ,GAAG,CAAC,EAAE,iBAAiB,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;gBAER,OAAO,EAAE,iBAAiB;IAMtC;;;;;;;OAOG;IACH,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,iBAAiB,GAAG,MAAM;CAoBzE"}
@@ -0,0 +1,60 @@
1
+ import { ICrypto, SignedHttpRequestParameters } from "./ICrypto.js";
2
+ import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
3
+ import { Logger } from "../logger/Logger.js";
4
+ /**
5
+ * See eSTS docs for more info.
6
+ * - A kid element, with the value containing an RFC 7638-compliant JWK thumbprint that is base64 encoded.
7
+ * - xms_ksl element, representing the storage location of the key's secret component on the client device. One of two values:
8
+ * - sw: software storage
9
+ * - uhw: hardware storage
10
+ */
11
+ type ReqCnf = {
12
+ kid: string;
13
+ xms_ksl: KeyLocation;
14
+ };
15
+ export type ReqCnfData = {
16
+ kid: string;
17
+ reqCnfString: string;
18
+ };
19
+ declare const KeyLocation: {
20
+ readonly SW: "sw";
21
+ readonly UHW: "uhw";
22
+ };
23
+ export type KeyLocation = (typeof KeyLocation)[keyof typeof KeyLocation];
24
+ /** @internal */
25
+ export declare class PopTokenGenerator {
26
+ private cryptoUtils;
27
+ private performanceClient?;
28
+ constructor(cryptoUtils: ICrypto, performanceClient?: IPerformanceClient);
29
+ /**
30
+ * Generates the req_cnf validated at the RP in the POP protocol for SHR parameters
31
+ * and returns an object containing the keyid, the full req_cnf string and the req_cnf string hash
32
+ * @param request
33
+ * @returns
34
+ */
35
+ generateCnf(request: SignedHttpRequestParameters, logger: Logger): Promise<ReqCnfData>;
36
+ /**
37
+ * Generates key_id for a SHR token request
38
+ * @param request
39
+ * @returns
40
+ */
41
+ generateKid(request: SignedHttpRequestParameters): Promise<ReqCnf>;
42
+ /**
43
+ * Signs the POP access_token with the local generated key-pair
44
+ * @param accessToken
45
+ * @param request
46
+ * @returns
47
+ */
48
+ signPopToken(accessToken: string, keyId: string, request: SignedHttpRequestParameters): Promise<string>;
49
+ /**
50
+ * Utility function to generate the signed JWT for an access_token
51
+ * @param payload
52
+ * @param kid
53
+ * @param request
54
+ * @param claims
55
+ * @returns
56
+ */
57
+ signPayload(payload: string, keyId: string, request: SignedHttpRequestParameters, claims?: object): Promise<string>;
58
+ }
59
+ export {};
60
+ //# sourceMappingURL=PopTokenGenerator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopTokenGenerator.d.ts","sourceRoot":"","sources":["../../../src/crypto/PopTokenGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C;;;;;;GAMG;AACH,KAAK,MAAM,GAAG;IACV,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,WAAW;;;CAGP,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE,gBAAgB;AAChB,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,WAAW,CAAU;IAC7B,OAAO,CAAC,iBAAiB,CAAC,CAAqB;gBAEnC,WAAW,EAAE,OAAO,EAAE,iBAAiB,CAAC,EAAE,kBAAkB;IAKxE;;;;;OAKG;IACG,WAAW,CACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,UAAU,CAAC;IAuBtB;;;;OAIG;IACG,WAAW,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,MAAM,CAAC;IAgBxE;;;;;OAKG;IACG,YAAY,CACd,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,GACrC,OAAO,CAAC,MAAM,CAAC;IAIlB;;;;;;;OAOG;IACG,WAAW,CACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,2BAA2B,EACpC,MAAM,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC;CAiCrB"}
@@ -0,0 +1,16 @@
1
+ import { JoseHeaderOptions } from "./JoseHeader.js";
2
+ export type SignedHttpRequest = {
3
+ at?: string;
4
+ cnf?: object;
5
+ m?: string;
6
+ u?: string;
7
+ p?: string;
8
+ q?: [Array<string>, string];
9
+ ts?: number;
10
+ nonce?: string;
11
+ client_claims?: string;
12
+ };
13
+ export type ShrOptions = {
14
+ header: JoseHeaderOptions;
15
+ };
16
+ //# sourceMappingURL=SignedHttpRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SignedHttpRequest.d.ts","sourceRoot":"","sources":["../../../src/crypto/SignedHttpRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,EAAE,iBAAiB,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,45 @@
1
+ import * as AuthErrorCodes from "./AuthErrorCodes.js";
2
+ export { AuthErrorCodes };
3
+ export declare const AuthErrorMessages: {
4
+ unexpected_error: string;
5
+ post_request_failed: string;
6
+ };
7
+ /**
8
+ * AuthErrorMessage class containing string constants used by error codes and messages.
9
+ * @deprecated Use AuthErrorCodes instead
10
+ */
11
+ export declare const AuthErrorMessage: {
12
+ unexpectedError: {
13
+ code: string;
14
+ desc: string;
15
+ };
16
+ postRequestFailed: {
17
+ code: string;
18
+ desc: string;
19
+ };
20
+ };
21
+ /**
22
+ * General error class thrown by the MSAL.js library.
23
+ */
24
+ export declare class AuthError extends Error {
25
+ /**
26
+ * Short string denoting error
27
+ */
28
+ errorCode: string;
29
+ /**
30
+ * Detailed description of error
31
+ */
32
+ errorMessage: string;
33
+ /**
34
+ * Describes the subclass of an error
35
+ */
36
+ subError: string;
37
+ /**
38
+ * CorrelationId associated with the error
39
+ */
40
+ correlationId: string;
41
+ constructor(errorCode?: string, errorMessage?: string, suberror?: string);
42
+ setCorrelationId(correlationId: string): void;
43
+ }
44
+ export declare function createAuthError(code: string, additionalMessage?: string): AuthError;
45
+ //# sourceMappingURL=AuthError.d.ts.map