@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,22 @@
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"> & {
17
+ deviceCodeCallback: (response: DeviceCodeResponse) => void;
18
+ cancel?: boolean;
19
+ timeout?: number;
20
+ extraQueryParameters?: StringDict;
21
+ };
22
+ //# sourceMappingURL=CommonDeviceCodeRequest.d.ts.map
@@ -0,0 +1 @@
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,CACzB,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"}
@@ -0,0 +1,22 @@
1
+ import { AccountInfo } from "../account/AccountInfo.js";
2
+ import { StringDict } from "../utils/MsalTypes.js";
3
+ /**
4
+ * CommonEndSessionRequest
5
+ * - account - Account object that will be logged out of. All tokens tied to this account will be cleared.
6
+ * - postLogoutRedirectUri - URI to navigate to after logout page.
7
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
8
+ * - idTokenHint - ID Token used by B2C to validate logout if required by the policy
9
+ * - state - A value included in the request to the logout endpoint which will be returned in the query string upon post logout redirection
10
+ * - logoutHint - A string that specifies the account that is being logged out in order to skip the server account picker on logout
11
+ * - extraQueryParameters - String to string map of custom query parameters added to the /authorize call
12
+ */
13
+ export type CommonEndSessionRequest = {
14
+ correlationId: string;
15
+ account?: AccountInfo | null;
16
+ postLogoutRedirectUri?: string | null;
17
+ idTokenHint?: string;
18
+ state?: string;
19
+ logoutHint?: string;
20
+ extraQueryParameters?: StringDict;
21
+ };
22
+ //# sourceMappingURL=CommonEndSessionRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonEndSessionRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonEndSessionRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;;;;;;;;GASG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
@@ -0,0 +1,14 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,23 @@
1
+ import { BaseAuthRequest } from "./BaseAuthRequest.js";
2
+ import { CcsCredential } from "../account/CcsCredential.js";
3
+ import { StringDict } from "../utils/MsalTypes.js";
4
+ /**
5
+ * CommonRefreshTokenRequest
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
8
+ * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
9
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
10
+ * - refreshToken - A refresh token returned from a previous request to the Identity provider.
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
+ * - forceCache - Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
14
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
15
+ */
16
+ export type CommonRefreshTokenRequest = BaseAuthRequest & {
17
+ refreshToken: string;
18
+ ccsCredential?: CcsCredential;
19
+ forceCache?: boolean;
20
+ tokenBodyParameters?: StringDict;
21
+ redirectUri?: string;
22
+ };
23
+ //# sourceMappingURL=CommonRefreshTokenRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonRefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonRefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,yBAAyB,GAAG,eAAe,GAAG;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { AccountInfo } from "../account/AccountInfo.js";
2
+ import { StringDict } from "../utils/MsalTypes.js";
3
+ import { BaseAuthRequest } from "./BaseAuthRequest.js";
4
+ /**
5
+ * SilentFlow parameters passed by the user to retrieve credentials silently
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
+ * - account - Account entity to lookup the credentials.
11
+ * - forceRefresh - Forces silent requests to make network calls if true.
12
+ * - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
13
+ * - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
14
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
15
+ */
16
+ export type CommonSilentFlowRequest = BaseAuthRequest & {
17
+ /** Account object to lookup the credentials */
18
+ account: AccountInfo;
19
+ /** Skip cache lookup and forces network call(s) to get fresh tokens */
20
+ forceRefresh: boolean;
21
+ /** RedirectUri registered on the app registration - only required in brokering scenarios */
22
+ redirectUri?: string;
23
+ /** Key value pairs to include on the POST body to the /token endpoint */
24
+ tokenBodyParameters?: StringDict;
25
+ /** If refresh token will expire within the configured value, consider it already expired. Used to pre-emptively invoke interaction when cached refresh token is close to expiry. */
26
+ refreshTokenExpirationOffsetSeconds?: number;
27
+ };
28
+ //# sourceMappingURL=CommonSilentFlowRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonSilentFlowRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonSilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD,+CAA+C;IAC/C,OAAO,EAAE,WAAW,CAAC;IACrB,uEAAuE;IACvE,YAAY,EAAE,OAAO,CAAC;IACtB,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,oLAAoL;IACpL,mCAAmC,CAAC,EAAE,MAAM,CAAC;CAChD,CAAC"}
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,20 @@
1
+ import { StringDict } from "../utils/MsalTypes.js";
2
+ export type NativeRequest = {
3
+ clientId: string;
4
+ authority: string;
5
+ correlationId: string;
6
+ redirectUri: string;
7
+ scopes: Array<string>;
8
+ claims?: string;
9
+ authenticationScheme?: string;
10
+ resourceRequestMethod?: string;
11
+ resourceRequestUri?: string;
12
+ shrNonce?: string;
13
+ accountId?: string;
14
+ forceRefresh?: boolean;
15
+ extraParameters?: StringDict;
16
+ extraScopesToConsent?: Array<string>;
17
+ loginHint?: string;
18
+ prompt?: string;
19
+ };
20
+ //# sourceMappingURL=NativeRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/NativeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type NativeSignOutRequest = {
2
+ clientId: string;
3
+ accountId: string;
4
+ correlationId: string;
5
+ };
6
+ //# sourceMappingURL=NativeSignOutRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeSignOutRequest.d.ts","sourceRoot":"","sources":["../../../src/request/NativeSignOutRequest.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -0,0 +1,218 @@
1
+ import { ResponseMode } from "../utils/Constants.js";
2
+ import { StringDict } from "../utils/MsalTypes.js";
3
+ import { ApplicationTelemetry, LibraryInfo } from "../config/ClientConfiguration.js";
4
+ import { ServerTelemetryManager } from "../telemetry/server/ServerTelemetryManager.js";
5
+ import { ClientInfo } from "../account/ClientInfo.js";
6
+ /** @internal */
7
+ export declare class RequestParameterBuilder {
8
+ private parameters;
9
+ constructor();
10
+ /**
11
+ * add response_type = code
12
+ */
13
+ addResponseTypeCode(): void;
14
+ /**
15
+ * add response_type = token id_token
16
+ */
17
+ addResponseTypeForTokenAndIdToken(): void;
18
+ /**
19
+ * add response_mode. defaults to query.
20
+ * @param responseMode
21
+ */
22
+ addResponseMode(responseMode?: ResponseMode): void;
23
+ /**
24
+ * Add flag to indicate STS should attempt to use WAM if available
25
+ */
26
+ addNativeBroker(): void;
27
+ /**
28
+ * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
29
+ * @param scopeSet
30
+ * @param addOidcScopes
31
+ */
32
+ addScopes(scopes: string[], addOidcScopes?: boolean, defaultScopes?: Array<string>): void;
33
+ /**
34
+ * add clientId
35
+ * @param clientId
36
+ */
37
+ addClientId(clientId: string): void;
38
+ /**
39
+ * add redirect_uri
40
+ * @param redirectUri
41
+ */
42
+ addRedirectUri(redirectUri: string): void;
43
+ /**
44
+ * add post logout redirectUri
45
+ * @param redirectUri
46
+ */
47
+ addPostLogoutRedirectUri(redirectUri: string): void;
48
+ /**
49
+ * add id_token_hint to logout request
50
+ * @param idTokenHint
51
+ */
52
+ addIdTokenHint(idTokenHint: string): void;
53
+ /**
54
+ * add domain_hint
55
+ * @param domainHint
56
+ */
57
+ addDomainHint(domainHint: string): void;
58
+ /**
59
+ * add login_hint
60
+ * @param loginHint
61
+ */
62
+ addLoginHint(loginHint: string): void;
63
+ /**
64
+ * Adds the CCS (Cache Credential Service) query parameter for login_hint
65
+ * @param loginHint
66
+ */
67
+ addCcsUpn(loginHint: string): void;
68
+ /**
69
+ * Adds the CCS (Cache Credential Service) query parameter for account object
70
+ * @param loginHint
71
+ */
72
+ addCcsOid(clientInfo: ClientInfo): void;
73
+ /**
74
+ * add sid
75
+ * @param sid
76
+ */
77
+ addSid(sid: string): void;
78
+ /**
79
+ * add claims
80
+ * @param claims
81
+ */
82
+ addClaims(claims?: string, clientCapabilities?: Array<string>): void;
83
+ /**
84
+ * add correlationId
85
+ * @param correlationId
86
+ */
87
+ addCorrelationId(correlationId: string): void;
88
+ /**
89
+ * add library info query params
90
+ * @param libraryInfo
91
+ */
92
+ addLibraryInfo(libraryInfo: LibraryInfo): void;
93
+ /**
94
+ * Add client telemetry parameters
95
+ * @param appTelemetry
96
+ */
97
+ addApplicationTelemetry(appTelemetry: ApplicationTelemetry): void;
98
+ /**
99
+ * add prompt
100
+ * @param prompt
101
+ */
102
+ addPrompt(prompt: string): void;
103
+ /**
104
+ * add state
105
+ * @param state
106
+ */
107
+ addState(state: string): void;
108
+ /**
109
+ * add nonce
110
+ * @param nonce
111
+ */
112
+ addNonce(nonce: string): void;
113
+ /**
114
+ * add code_challenge and code_challenge_method
115
+ * - throw if either of them are not passed
116
+ * @param codeChallenge
117
+ * @param codeChallengeMethod
118
+ */
119
+ addCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
120
+ /**
121
+ * add the `authorization_code` passed by the user to exchange for a token
122
+ * @param code
123
+ */
124
+ addAuthorizationCode(code: string): void;
125
+ /**
126
+ * add the `authorization_code` passed by the user to exchange for a token
127
+ * @param code
128
+ */
129
+ addDeviceCode(code: string): void;
130
+ /**
131
+ * add the `refreshToken` passed by the user
132
+ * @param refreshToken
133
+ */
134
+ addRefreshToken(refreshToken: string): void;
135
+ /**
136
+ * add the `code_verifier` passed by the user to exchange for a token
137
+ * @param codeVerifier
138
+ */
139
+ addCodeVerifier(codeVerifier: string): void;
140
+ /**
141
+ * add client_secret
142
+ * @param clientSecret
143
+ */
144
+ addClientSecret(clientSecret: string): void;
145
+ /**
146
+ * add clientAssertion for confidential client flows
147
+ * @param clientAssertion
148
+ */
149
+ addClientAssertion(clientAssertion: string): void;
150
+ /**
151
+ * add clientAssertionType for confidential client flows
152
+ * @param clientAssertionType
153
+ */
154
+ addClientAssertionType(clientAssertionType: string): void;
155
+ /**
156
+ * add OBO assertion for confidential client flows
157
+ * @param clientAssertion
158
+ */
159
+ addOboAssertion(oboAssertion: string): void;
160
+ /**
161
+ * add grant type
162
+ * @param grantType
163
+ */
164
+ addRequestTokenUse(tokenUse: string): void;
165
+ /**
166
+ * add grant type
167
+ * @param grantType
168
+ */
169
+ addGrantType(grantType: string): void;
170
+ /**
171
+ * add client info
172
+ *
173
+ */
174
+ addClientInfo(): void;
175
+ /**
176
+ * add extraQueryParams
177
+ * @param eQParams
178
+ */
179
+ addExtraQueryParameters(eQParams: StringDict): void;
180
+ addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string;
181
+ /**
182
+ * adds `username` for Password Grant flow
183
+ * @param username
184
+ */
185
+ addUsername(username: string): void;
186
+ /**
187
+ * adds `password` for Password Grant flow
188
+ * @param password
189
+ */
190
+ addPassword(password: string): void;
191
+ /**
192
+ * add pop_jwk to query params
193
+ * @param cnfString
194
+ */
195
+ addPopToken(cnfString: string): void;
196
+ /**
197
+ * add SSH JWK and key ID to query params
198
+ */
199
+ addSshJwk(sshJwkString: string): void;
200
+ /**
201
+ * add server telemetry fields
202
+ * @param serverTelemetryManager
203
+ */
204
+ addServerTelemetry(serverTelemetryManager: ServerTelemetryManager): void;
205
+ /**
206
+ * Adds parameter that indicates to the server that throttling is supported
207
+ */
208
+ addThrottling(): void;
209
+ /**
210
+ * Adds logout_hint parameter for "silent" logout which prevent server account picker
211
+ */
212
+ addLogoutHint(logoutHint: string): void;
213
+ /**
214
+ * Utility to create a URL from the params map
215
+ */
216
+ createQueryString(): string;
217
+ }
218
+ //# sourceMappingURL=RequestParameterBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,YAAY,EAQf,MAAM,uBAAuB,CAAC;AAO/B,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EACH,oBAAoB,EACpB,WAAW,EACd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,gBAAgB;AAChB,qBAAa,uBAAuB;IAChC,OAAO,CAAC,UAAU,CAAsB;;IAMxC;;OAEG;IACH,mBAAmB,IAAI,IAAI;IAO3B;;OAEG;IACH,iCAAiC,IAAI,IAAI;IASzC;;;OAGG;IACH,eAAe,CAAC,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI;IAOlD;;OAEG;IACH,eAAe,IAAI,IAAI;IAOvB;;;;OAIG;IACH,SAAS,CACL,MAAM,EAAE,MAAM,EAAE,EAChB,aAAa,GAAE,OAAc,EAC7B,aAAa,GAAE,KAAK,CAAC,MAAM,CAAuB,GACnD,IAAI;IAmBP;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAOnC;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAQzC;;;OAGG;IACH,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAQnD;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAOzC;;;OAGG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAOvC;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAOrC;;;OAGG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAOlC;;;OAGG;IACH,SAAS,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAOvC;;;OAGG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzB;;;OAGG;IACH,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI;IAYpE;;;OAGG;IACH,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAO7C;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAkB9C;;;OAGG;IACH,uBAAuB,CAAC,YAAY,EAAE,oBAAoB,GAAG,IAAI;IAgBjE;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAQ/B;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAS7B;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAO7B;;;;;OAKG;IACH,sBAAsB,CAClB,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,MAAM,GAC5B,IAAI;IAqBP;;;OAGG;IACH,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIxC;;;OAGG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAOjC;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAO3C;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAO3C;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAO3C;;;OAGG;IACH,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI;IASjD;;;OAGG;IACH,sBAAsB,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI;IASzD;;;OAGG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAO3C;;;OAGG;IACH,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAO1C;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAOrC;;;OAGG;IACH,aAAa,IAAI,IAAI;IAIrB;;;OAGG;IACH,uBAAuB,CAAC,QAAQ,EAAE,UAAU,GAAG,IAAI;IAQnD,6BAA6B,CACzB,MAAM,CAAC,EAAE,MAAM,EACf,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GACnC,MAAM;IAiCT;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAOnC;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAOnC;;;OAGG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAapC;;OAEG;IACH,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAarC;;;OAGG;IACH,kBAAkB,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI;IAWxE;;OAEG;IACH,aAAa,IAAI,IAAI;IAOrB;;OAEG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAOvC;;OAEG;IACH,iBAAiB,IAAI,MAAM;CAS9B"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Validates server consumable params from the "request" objects
3
+ */
4
+ export declare class RequestValidator {
5
+ /**
6
+ * Utility to check if the `redirectUri` in the request is a non-null value
7
+ * @param redirectUri
8
+ */
9
+ static validateRedirectUri(redirectUri: string): void;
10
+ /**
11
+ * Utility to validate prompt sent by the user in the request
12
+ * @param prompt
13
+ */
14
+ static validatePrompt(prompt: string): void;
15
+ static validateClaims(claims: string): void;
16
+ /**
17
+ * Utility to validate code_challenge and code_challenge_method
18
+ * @param codeChallenge
19
+ * @param codeChallengeMethod
20
+ */
21
+ static validateCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
22
+ /**
23
+ * Utility to validate code_challenge_method
24
+ * @param codeChallengeMethod
25
+ */
26
+ static validateCodeChallengeMethod(codeChallengeMethod: string): void;
27
+ }
28
+ //# sourceMappingURL=RequestValidator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestValidator.d.ts","sourceRoot":"","sources":["../../../src/request/RequestValidator.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,qBAAa,gBAAgB;IACzB;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAQrD;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAc3C,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAU3C;;;;OAIG;IACH,MAAM,CAAC,2BAA2B,CAC9B,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,MAAM,GAC5B,IAAI;IAUP;;;OAGG;IACH,MAAM,CAAC,2BAA2B,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI;CAYxE"}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes
3
+ * the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions
4
+ * to ensure uniqueness of strings.
5
+ */
6
+ export declare class ScopeSet {
7
+ private scopes;
8
+ constructor(inputScopes: Array<string>);
9
+ /**
10
+ * Factory method to create ScopeSet from space-delimited string
11
+ * @param inputScopeString
12
+ * @param appClientId
13
+ * @param scopesRequired
14
+ */
15
+ static fromString(inputScopeString: string): ScopeSet;
16
+ /**
17
+ * Creates the set of scopes to search for in cache lookups
18
+ * @param inputScopeString
19
+ * @returns
20
+ */
21
+ static createSearchScopes(inputScopeString: Array<string>): ScopeSet;
22
+ /**
23
+ * Used to validate the scopes input parameter requested by the developer.
24
+ * @param {Array<string>} inputScopes - Developer requested permissions. Not all scopes are guaranteed to be included in the access token returned.
25
+ * @param {boolean} scopesRequired - Boolean indicating whether the scopes array is required or not
26
+ */
27
+ private validateInputScopes;
28
+ /**
29
+ * Check if a given scope is present in this set of scopes.
30
+ * @param scope
31
+ */
32
+ containsScope(scope: string): boolean;
33
+ /**
34
+ * Check if a set of scopes is present in this set of scopes.
35
+ * @param scopeSet
36
+ */
37
+ containsScopeSet(scopeSet: ScopeSet): boolean;
38
+ /**
39
+ * Check if set of scopes contains only the defaults
40
+ */
41
+ containsOnlyOIDCScopes(): boolean;
42
+ /**
43
+ * Appends single scope if passed
44
+ * @param newScope
45
+ */
46
+ appendScope(newScope: string): void;
47
+ /**
48
+ * Appends multiple scopes if passed
49
+ * @param newScopes
50
+ */
51
+ appendScopes(newScopes: Array<string>): void;
52
+ /**
53
+ * Removes element from set of scopes.
54
+ * @param scope
55
+ */
56
+ removeScope(scope: string): void;
57
+ /**
58
+ * Removes default scopes from set of scopes
59
+ * Primarily used to prevent cache misses if the default scopes are not returned from the server
60
+ */
61
+ removeOIDCScopes(): void;
62
+ /**
63
+ * Combines an array of scopes with the current set of scopes.
64
+ * @param otherScopes
65
+ */
66
+ unionScopeSets(otherScopes: ScopeSet): Set<string>;
67
+ /**
68
+ * Check if scopes intersect between this set and another.
69
+ * @param otherScopes
70
+ */
71
+ intersectingScopeSets(otherScopes: ScopeSet): boolean;
72
+ /**
73
+ * Returns size of set of scopes.
74
+ */
75
+ getScopeCount(): number;
76
+ /**
77
+ * Returns the scopes as an array of string values
78
+ */
79
+ asArray(): Array<string>;
80
+ /**
81
+ * Prints scopes into a space-delimited string
82
+ */
83
+ printScopes(): string;
84
+ /**
85
+ * Prints scopes into a space-delimited lower-case string (used for caching)
86
+ */
87
+ printScopesLowerCase(): string;
88
+ }
89
+ //# sourceMappingURL=ScopeSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScopeSet.d.ts","sourceRoot":"","sources":["../../../src/request/ScopeSet.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,qBAAa,QAAQ;IAEjB,OAAO,CAAC,MAAM,CAAc;gBAEhB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC;IAgBtC;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,QAAQ;IAMrD;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,QAAQ;IAWpE;;;;OAIG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IASrC;;;OAGG;IACH,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO;IAW7C;;OAEG;IACH,sBAAsB,IAAI,OAAO;IAWjC;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAMnC;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI;IAU5C;;;OAGG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAShC;;;OAGG;IACH,gBAAgB,IAAI,IAAI;IAMxB;;;OAGG;IACH,cAAc,CAAC,WAAW,EAAE,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC;IAclD;;;OAGG;IACH,qBAAqB,CAAC,WAAW,EAAE,QAAQ,GAAG,OAAO;IAkBrD;;OAEG;IACH,aAAa,IAAI,MAAM;IAIvB;;OAEG;IACH,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC;IAMxB;;OAEG;IACH,WAAW,IAAI,MAAM;IAQrB;;OAEG;IACH,oBAAoB,IAAI,MAAM;CAGjC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Controls whether tokens should be stored in the cache or not. If set to false, tokens may still be acquired and returned but will not be cached for later retrieval.
3
+ */
4
+ export type StoreInCache = {
5
+ accessToken?: boolean;
6
+ idToken?: boolean;
7
+ refreshToken?: boolean;
8
+ };
9
+ //# sourceMappingURL=StoreInCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StoreInCache.d.ts","sourceRoot":"","sources":["../../../src/request/StoreInCache.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAEvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { AccountInfo } from "../account/AccountInfo.js";
2
+ /**
3
+ * Result returned from the authority's token endpoint.
4
+ * - uniqueId - `oid` or `sub` claim from ID token
5
+ * - tenantId - `tid` claim from ID token
6
+ * - scopes - Scopes that are validated for the respective token
7
+ * - account - An account object representation of the currently signed-in user
8
+ * - idToken - Id token received as part of the response
9
+ * - idTokenClaims - MSAL-relevant ID token claims
10
+ * - accessToken - Access token or SSH certificate received as part of the response
11
+ * - fromCache - Boolean denoting whether token came from cache
12
+ * - expiresOn - Javascript Date object representing relative expiration of access token
13
+ * - extExpiresOn - Javascript Date object representing extended relative expiration of access token in case of server outage
14
+ * - refreshOn - Javascript Date object representing relative time until an access token must be refreshed
15
+ * - state - Value passed in by user in request
16
+ * - familyId - Family ID identifier, usually only used for refresh tokens
17
+ * - requestId - Request ID returned as part of the response
18
+ */
19
+ export type AuthenticationResult = {
20
+ authority: string;
21
+ uniqueId: string;
22
+ tenantId: string;
23
+ scopes: Array<string>;
24
+ account: AccountInfo | null;
25
+ idToken: string;
26
+ idTokenClaims: object;
27
+ accessToken: string;
28
+ fromCache: boolean;
29
+ expiresOn: Date | null;
30
+ extExpiresOn?: Date;
31
+ refreshOn?: Date;
32
+ tokenType: string;
33
+ correlationId: string;
34
+ requestId?: string;
35
+ state?: string;
36
+ familyId?: string;
37
+ cloudGraphHostName?: string;
38
+ msGraphHost?: string;
39
+ code?: string;
40
+ fromNativeBroker?: boolean;
41
+ };
42
+ //# sourceMappingURL=AuthenticationResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthenticationResult.d.ts","sourceRoot":"","sources":["../../../src/response/AuthenticationResult.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Response returned after processing the code response query string or fragment.
3
+ */
4
+ export type AuthorizationCodePayload = {
5
+ code: string;
6
+ cloud_instance_name?: string;
7
+ cloud_instance_host_name?: string;
8
+ cloud_graph_host_name?: string;
9
+ msgraph_host?: string;
10
+ state?: string;
11
+ nonce?: string;
12
+ client_info?: string;
13
+ };
14
+ //# sourceMappingURL=AuthorizationCodePayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthorizationCodePayload.d.ts","sourceRoot":"","sources":["../../../src/response/AuthorizationCodePayload.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}