@azure/msal-common 14.14.2 → 14.16.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 (586) 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 -23
  43. package/dist/cache/CacheManager.d.ts.map +1 -1
  44. package/dist/cache/CacheManager.mjs +1 -4
  45. package/dist/cache/CacheManager.mjs.map +1 -1
  46. package/dist/cache/entities/AccessTokenEntity.d.ts +2 -2
  47. package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  48. package/dist/cache/entities/AccountEntity.d.ts +6 -6
  49. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  50. package/dist/cache/entities/AccountEntity.mjs +1 -1
  51. package/dist/cache/entities/CacheRecord.d.ts +5 -5
  52. package/dist/cache/entities/CacheRecord.d.ts.map +1 -1
  53. package/dist/cache/entities/CredentialEntity.d.ts +1 -1
  54. package/dist/cache/entities/CredentialEntity.d.ts.map +1 -1
  55. package/dist/cache/entities/IdTokenEntity.d.ts +1 -1
  56. package/dist/cache/entities/IdTokenEntity.d.ts.map +1 -1
  57. package/dist/cache/entities/RefreshTokenEntity.d.ts +1 -1
  58. package/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -1
  59. package/dist/cache/interface/ICacheManager.d.ts +12 -12
  60. package/dist/cache/interface/ICacheManager.d.ts.map +1 -1
  61. package/dist/cache/interface/ICachePlugin.d.ts +1 -1
  62. package/dist/cache/interface/ICachePlugin.d.ts.map +1 -1
  63. package/dist/cache/persistence/TokenCacheContext.d.ts +1 -1
  64. package/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -1
  65. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  66. package/dist/cache/utils/CacheHelpers.d.ts +9 -9
  67. package/dist/cache/utils/CacheHelpers.d.ts.map +1 -1
  68. package/dist/cache/utils/CacheHelpers.mjs +1 -1
  69. package/dist/cache/utils/CacheTypes.d.ts +11 -11
  70. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  71. package/dist/client/AuthorizationCodeClient.d.ts +10 -9
  72. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  73. package/dist/client/AuthorizationCodeClient.mjs +35 -16
  74. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  75. package/dist/client/BaseClient.d.ts +21 -14
  76. package/dist/client/BaseClient.d.ts.map +1 -1
  77. package/dist/client/BaseClient.mjs +62 -10
  78. package/dist/client/BaseClient.mjs.map +1 -1
  79. package/dist/client/RefreshTokenClient.d.ts +6 -6
  80. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  81. package/dist/client/RefreshTokenClient.mjs +10 -4
  82. package/dist/client/RefreshTokenClient.mjs.map +1 -1
  83. package/dist/client/SilentFlowClient.d.ts +6 -6
  84. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  85. package/dist/client/SilentFlowClient.mjs +1 -1
  86. package/dist/config/ClientConfiguration.d.ts +15 -11
  87. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  88. package/dist/config/ClientConfiguration.mjs +2 -1
  89. package/dist/config/ClientConfiguration.mjs.map +1 -1
  90. package/dist/constants/AADServerParamKeys.d.ts +2 -0
  91. package/dist/constants/AADServerParamKeys.d.ts.map +1 -1
  92. package/dist/constants/AADServerParamKeys.mjs +5 -3
  93. package/dist/constants/AADServerParamKeys.mjs.map +1 -1
  94. package/dist/crypto/ICrypto.d.ts +2 -2
  95. package/dist/crypto/ICrypto.d.ts.map +1 -1
  96. package/dist/crypto/ICrypto.mjs +1 -1
  97. package/dist/crypto/JoseHeader.d.ts +1 -1
  98. package/dist/crypto/JoseHeader.d.ts.map +1 -1
  99. package/dist/crypto/JoseHeader.mjs +1 -1
  100. package/dist/crypto/PopTokenGenerator.d.ts +3 -3
  101. package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
  102. package/dist/crypto/PopTokenGenerator.mjs +1 -1
  103. package/dist/crypto/SignedHttpRequest.d.ts +1 -1
  104. package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
  105. package/dist/error/AuthError.d.ts +1 -1
  106. package/dist/error/AuthError.d.ts.map +1 -1
  107. package/dist/error/AuthError.mjs +1 -1
  108. package/dist/error/AuthErrorCodes.mjs +1 -1
  109. package/dist/error/CacheError.d.ts +1 -1
  110. package/dist/error/CacheError.d.ts.map +1 -1
  111. package/dist/error/CacheError.mjs +1 -1
  112. package/dist/error/CacheErrorCodes.mjs +1 -1
  113. package/dist/error/ClientAuthError.d.ts +2 -2
  114. package/dist/error/ClientAuthError.d.ts.map +1 -1
  115. package/dist/error/ClientAuthError.mjs +1 -1
  116. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  117. package/dist/error/ClientConfigurationError.d.ts +2 -2
  118. package/dist/error/ClientConfigurationError.d.ts.map +1 -1
  119. package/dist/error/ClientConfigurationError.mjs +1 -1
  120. package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
  121. package/dist/error/InteractionRequiredAuthError.d.ts +2 -2
  122. package/dist/error/InteractionRequiredAuthError.d.ts.map +1 -1
  123. package/dist/error/InteractionRequiredAuthError.mjs +1 -1
  124. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  125. package/dist/error/JoseHeaderError.d.ts +2 -2
  126. package/dist/error/JoseHeaderError.d.ts.map +1 -1
  127. package/dist/error/JoseHeaderError.mjs +1 -1
  128. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  129. package/dist/error/NetworkError.d.ts +19 -0
  130. package/dist/error/NetworkError.d.ts.map +1 -0
  131. package/dist/error/NetworkError.mjs +34 -0
  132. package/dist/error/NetworkError.mjs.map +1 -0
  133. package/dist/error/ServerError.d.ts +1 -1
  134. package/dist/error/ServerError.d.ts.map +1 -1
  135. package/dist/error/ServerError.mjs +1 -1
  136. package/dist/exports-browser-only.d.ts +10 -0
  137. package/dist/exports-browser-only.d.ts.map +1 -0
  138. package/dist/exports-common.d.ts +81 -0
  139. package/dist/exports-common.d.ts.map +1 -0
  140. package/dist/exports-node-only.d.ts +18 -0
  141. package/dist/exports-node-only.d.ts.map +1 -0
  142. package/dist/index-browser.d.ts +7 -0
  143. package/dist/index-browser.d.ts.map +1 -0
  144. package/dist/index-browser.mjs +67 -0
  145. package/dist/index-browser.mjs.map +1 -0
  146. package/dist/index-node.d.ts +7 -0
  147. package/dist/index-node.d.ts.map +1 -0
  148. package/dist/index-node.mjs +66 -0
  149. package/dist/index-node.mjs.map +1 -0
  150. package/dist/index.d.ts +7 -103
  151. package/dist/index.d.ts.map +1 -1
  152. package/dist/index.mjs +31 -31
  153. package/dist/logger/Logger.d.ts +1 -1
  154. package/dist/logger/Logger.d.ts.map +1 -1
  155. package/dist/logger/Logger.mjs +1 -1
  156. package/dist/network/INetworkModule.d.ts +1 -1
  157. package/dist/network/INetworkModule.d.ts.map +1 -1
  158. package/dist/network/INetworkModule.mjs +1 -1
  159. package/dist/network/NetworkResponse.d.ts +6 -0
  160. package/dist/network/NetworkResponse.d.ts.map +1 -0
  161. package/dist/network/RequestThumbprint.d.ts +2 -2
  162. package/dist/network/RequestThumbprint.d.ts.map +1 -1
  163. package/dist/network/ThrottlingUtils.d.ts +5 -5
  164. package/dist/network/ThrottlingUtils.d.ts.map +1 -1
  165. package/dist/network/ThrottlingUtils.mjs +1 -1
  166. package/dist/packageMetadata.d.ts +1 -1
  167. package/dist/packageMetadata.mjs +2 -2
  168. package/dist/request/AuthenticationHeaderParser.mjs +1 -1
  169. package/dist/request/BaseAuthRequest.d.ts +7 -5
  170. package/dist/request/BaseAuthRequest.d.ts.map +1 -1
  171. package/dist/request/CommonAuthorizationCodeRequest.d.ts +3 -3
  172. package/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -1
  173. package/dist/request/CommonAuthorizationUrlRequest.d.ts +4 -4
  174. package/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -1
  175. package/dist/request/CommonClientCredentialRequest.d.ts +3 -3
  176. package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
  177. package/dist/request/CommonDeviceCodeRequest.d.ts +3 -3
  178. package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
  179. package/dist/request/CommonEndSessionRequest.d.ts +2 -2
  180. package/dist/request/CommonEndSessionRequest.d.ts.map +1 -1
  181. package/dist/request/CommonOnBehalfOfRequest.d.ts +1 -1
  182. package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
  183. package/dist/request/CommonRefreshTokenRequest.d.ts +3 -3
  184. package/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -1
  185. package/dist/request/CommonSilentFlowRequest.d.ts +3 -3
  186. package/dist/request/CommonSilentFlowRequest.d.ts.map +1 -1
  187. package/dist/request/CommonUsernamePasswordRequest.d.ts +1 -1
  188. package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
  189. package/dist/request/NativeRequest.d.ts +1 -1
  190. package/dist/request/NativeRequest.d.ts.map +1 -1
  191. package/dist/request/RequestParameterBuilder.d.ts +13 -6
  192. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  193. package/dist/request/RequestParameterBuilder.mjs +26 -3
  194. package/dist/request/RequestParameterBuilder.mjs.map +1 -1
  195. package/dist/request/RequestValidator.mjs +1 -1
  196. package/dist/request/ScopeSet.mjs +1 -1
  197. package/dist/response/AuthenticationResult.d.ts +1 -1
  198. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  199. package/dist/response/ExternalTokenResponse.d.ts +1 -1
  200. package/dist/response/ExternalTokenResponse.d.ts.map +1 -1
  201. package/dist/response/ResponseHandler.d.ts +16 -16
  202. package/dist/response/ResponseHandler.d.ts.map +1 -1
  203. package/dist/response/ResponseHandler.mjs +1 -1
  204. package/dist/response/ServerAuthorizationTokenResponse.d.ts +1 -1
  205. package/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -1
  206. package/dist/telemetry/performance/IPerformanceClient.d.ts +2 -2
  207. package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  208. package/dist/telemetry/performance/PerformanceClient.d.ts +5 -5
  209. package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  210. package/dist/telemetry/performance/PerformanceClient.mjs +29 -10
  211. package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
  212. package/dist/telemetry/performance/PerformanceEvent.d.ts +9 -0
  213. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  214. package/dist/telemetry/performance/PerformanceEvent.mjs +6 -1
  215. package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
  216. package/dist/telemetry/performance/StubPerformanceClient.d.ts +3 -3
  217. package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  218. package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
  219. package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
  220. package/dist/telemetry/server/ServerTelemetryManager.d.ts +5 -5
  221. package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  222. package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
  223. package/dist/url/UrlString.d.ts +1 -1
  224. package/dist/url/UrlString.d.ts.map +1 -1
  225. package/dist/url/UrlString.mjs +1 -1
  226. package/dist/utils/ClientAssertionUtils.d.ts +1 -1
  227. package/dist/utils/ClientAssertionUtils.d.ts.map +1 -1
  228. package/dist/utils/ClientAssertionUtils.mjs +1 -1
  229. package/dist/utils/Constants.d.ts +1 -0
  230. package/dist/utils/Constants.d.ts.map +1 -1
  231. package/dist/utils/Constants.mjs +2 -1
  232. package/dist/utils/Constants.mjs.map +1 -1
  233. package/dist/utils/FunctionWrappers.d.ts +2 -2
  234. package/dist/utils/FunctionWrappers.d.ts.map +1 -1
  235. package/dist/utils/FunctionWrappers.mjs +1 -1
  236. package/dist/utils/ProtocolUtils.d.ts +1 -1
  237. package/dist/utils/ProtocolUtils.d.ts.map +1 -1
  238. package/dist/utils/ProtocolUtils.mjs +1 -1
  239. package/dist/utils/StringUtils.mjs +1 -1
  240. package/dist/utils/TimeUtils.mjs +1 -1
  241. package/dist/utils/UrlUtils.d.ts +1 -1
  242. package/dist/utils/UrlUtils.d.ts.map +1 -1
  243. package/dist/utils/UrlUtils.mjs +1 -1
  244. package/lib/index-browser.cjs +858 -0
  245. package/lib/index-browser.cjs.map +1 -0
  246. package/{dist/index.cjs → lib/index-node-C9XsExml.js} +352 -990
  247. package/lib/index-node-C9XsExml.js.map +1 -0
  248. package/lib/index-node.cjs +104 -0
  249. package/lib/index-node.cjs.map +1 -0
  250. package/lib/index.cjs +112 -0
  251. package/lib/index.cjs.map +1 -0
  252. package/lib/package.json +1 -0
  253. package/lib/types/account/AccountInfo.d.ts +67 -0
  254. package/lib/types/account/AccountInfo.d.ts.map +1 -0
  255. package/lib/types/account/AuthToken.d.ts +18 -0
  256. package/lib/types/account/AuthToken.d.ts.map +1 -0
  257. package/lib/types/account/CcsCredential.d.ts +10 -0
  258. package/lib/types/account/CcsCredential.d.ts.map +1 -0
  259. package/lib/types/account/ClientCredentials.d.ts +20 -0
  260. package/lib/types/account/ClientCredentials.d.ts.map +1 -0
  261. package/lib/types/account/ClientInfo.d.ts +19 -0
  262. package/lib/types/account/ClientInfo.d.ts.map +1 -0
  263. package/lib/types/account/TokenClaims.d.ts +84 -0
  264. package/lib/types/account/TokenClaims.d.ts.map +1 -0
  265. package/lib/types/authority/Authority.d.ts +255 -0
  266. package/lib/types/authority/Authority.d.ts.map +1 -0
  267. package/lib/types/authority/AuthorityFactory.d.ts +19 -0
  268. package/lib/types/authority/AuthorityFactory.d.ts.map +1 -0
  269. package/lib/types/authority/AuthorityMetadata.d.ts +44 -0
  270. package/lib/types/authority/AuthorityMetadata.d.ts.map +1 -0
  271. package/lib/types/authority/AuthorityOptions.d.ts +28 -0
  272. package/lib/types/authority/AuthorityOptions.d.ts.map +1 -0
  273. package/lib/types/authority/AuthorityType.d.ts +11 -0
  274. package/lib/types/authority/AuthorityType.d.ts.map +1 -0
  275. package/lib/types/authority/AzureRegion.d.ts +2 -0
  276. package/lib/types/authority/AzureRegion.d.ts.map +1 -0
  277. package/lib/types/authority/AzureRegionConfiguration.d.ts +6 -0
  278. package/lib/types/authority/AzureRegionConfiguration.d.ts.map +1 -0
  279. package/lib/types/authority/CloudDiscoveryMetadata.d.ts +6 -0
  280. package/lib/types/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
  281. package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts +14 -0
  282. package/lib/types/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -0
  283. package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
  284. package/lib/types/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
  285. package/lib/types/authority/ImdsOptions.d.ts +6 -0
  286. package/lib/types/authority/ImdsOptions.d.ts.map +1 -0
  287. package/lib/types/authority/OIDCOptions.d.ts +9 -0
  288. package/lib/types/authority/OIDCOptions.d.ts.map +1 -0
  289. package/lib/types/authority/OpenIdConfigResponse.d.ts +12 -0
  290. package/lib/types/authority/OpenIdConfigResponse.d.ts.map +1 -0
  291. package/lib/types/authority/ProtocolMode.d.ts +9 -0
  292. package/lib/types/authority/ProtocolMode.d.ts.map +1 -0
  293. package/lib/types/authority/RegionDiscovery.d.ts +33 -0
  294. package/lib/types/authority/RegionDiscovery.d.ts.map +1 -0
  295. package/lib/types/authority/RegionDiscoveryMetadata.d.ts +7 -0
  296. package/lib/types/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
  297. package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts +16 -0
  298. package/lib/types/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -0
  299. package/lib/types/cache/CacheManager.d.ts +493 -0
  300. package/lib/types/cache/CacheManager.d.ts.map +1 -0
  301. package/lib/types/cache/entities/AccessTokenEntity.d.ts +26 -0
  302. package/lib/types/cache/entities/AccessTokenEntity.d.ts.map +1 -0
  303. package/lib/types/cache/entities/AccountEntity.d.ts +107 -0
  304. package/lib/types/cache/entities/AccountEntity.d.ts.map +1 -0
  305. package/lib/types/cache/entities/AppMetadataEntity.d.ts +12 -0
  306. package/lib/types/cache/entities/AppMetadataEntity.d.ts.map +1 -0
  307. package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts +16 -0
  308. package/lib/types/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
  309. package/lib/types/cache/entities/CacheRecord.d.ts +14 -0
  310. package/lib/types/cache/entities/CacheRecord.d.ts.map +1 -0
  311. package/lib/types/cache/entities/CredentialEntity.d.ts +31 -0
  312. package/lib/types/cache/entities/CredentialEntity.d.ts.map +1 -0
  313. package/lib/types/cache/entities/IdTokenEntity.d.ts +9 -0
  314. package/lib/types/cache/entities/IdTokenEntity.d.ts.map +1 -0
  315. package/lib/types/cache/entities/RefreshTokenEntity.d.ts +8 -0
  316. package/lib/types/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
  317. package/lib/types/cache/entities/ServerTelemetryEntity.d.ts +7 -0
  318. package/lib/types/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
  319. package/lib/types/cache/entities/ThrottlingEntity.d.ts +8 -0
  320. package/lib/types/cache/entities/ThrottlingEntity.d.ts.map +1 -0
  321. package/lib/types/cache/interface/ICacheManager.d.ts +167 -0
  322. package/lib/types/cache/interface/ICacheManager.d.ts.map +1 -0
  323. package/lib/types/cache/interface/ICachePlugin.d.ts +6 -0
  324. package/lib/types/cache/interface/ICachePlugin.d.ts.map +1 -0
  325. package/lib/types/cache/interface/ISerializableTokenCache.d.ts +5 -0
  326. package/lib/types/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
  327. package/lib/types/cache/persistence/TokenCacheContext.d.ts +24 -0
  328. package/lib/types/cache/persistence/TokenCacheContext.d.ts.map +1 -0
  329. package/lib/types/cache/utils/CacheHelpers.d.ts +95 -0
  330. package/lib/types/cache/utils/CacheHelpers.d.ts.map +1 -0
  331. package/lib/types/cache/utils/CacheTypes.d.ts +70 -0
  332. package/lib/types/cache/utils/CacheTypes.d.ts.map +1 -0
  333. package/lib/types/client/AuthorizationCodeClient.d.ts +76 -0
  334. package/lib/types/client/AuthorizationCodeClient.d.ts.map +1 -0
  335. package/lib/types/client/BaseClient.d.ts +59 -0
  336. package/lib/types/client/BaseClient.d.ts.map +1 -0
  337. package/lib/types/client/RefreshTokenClient.d.ts +36 -0
  338. package/lib/types/client/RefreshTokenClient.d.ts.map +1 -0
  339. package/lib/types/client/SilentFlowClient.d.ts +28 -0
  340. package/lib/types/client/SilentFlowClient.d.ts.map +1 -0
  341. package/lib/types/config/AppTokenProvider.d.ts +39 -0
  342. package/lib/types/config/AppTokenProvider.d.ts.map +1 -0
  343. package/lib/types/config/ClientConfiguration.d.ts +155 -0
  344. package/lib/types/config/ClientConfiguration.d.ts.map +1 -0
  345. package/lib/types/constants/AADServerParamKeys.d.ts +56 -0
  346. package/lib/types/constants/AADServerParamKeys.d.ts.map +1 -0
  347. package/lib/types/crypto/ICrypto.d.ts +69 -0
  348. package/lib/types/crypto/ICrypto.d.ts.map +1 -0
  349. package/lib/types/crypto/IGuidGenerator.d.ts +5 -0
  350. package/lib/types/crypto/IGuidGenerator.d.ts.map +1 -0
  351. package/lib/types/crypto/JoseHeader.d.ts +23 -0
  352. package/lib/types/crypto/JoseHeader.d.ts.map +1 -0
  353. package/lib/types/crypto/PopTokenGenerator.d.ts +60 -0
  354. package/lib/types/crypto/PopTokenGenerator.d.ts.map +1 -0
  355. package/lib/types/crypto/SignedHttpRequest.d.ts +16 -0
  356. package/lib/types/crypto/SignedHttpRequest.d.ts.map +1 -0
  357. package/lib/types/error/AuthError.d.ts +45 -0
  358. package/lib/types/error/AuthError.d.ts.map +1 -0
  359. package/lib/types/error/AuthErrorCodes.d.ts +6 -0
  360. package/lib/types/error/AuthErrorCodes.d.ts.map +1 -0
  361. package/lib/types/error/CacheError.d.ts +21 -0
  362. package/lib/types/error/CacheError.d.ts.map +1 -0
  363. package/lib/types/error/CacheErrorCodes.d.ts +3 -0
  364. package/lib/types/error/CacheErrorCodes.d.ts.map +1 -0
  365. package/lib/types/error/ClientAuthError.d.ts +238 -0
  366. package/lib/types/error/ClientAuthError.d.ts.map +1 -0
  367. package/lib/types/error/ClientAuthErrorCodes.d.ts +45 -0
  368. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -0
  369. package/lib/types/error/ClientConfigurationError.d.ts +129 -0
  370. package/lib/types/error/ClientConfigurationError.d.ts.map +1 -0
  371. package/lib/types/error/ClientConfigurationErrorCodes.d.ts +23 -0
  372. package/lib/types/error/ClientConfigurationErrorCodes.d.ts.map +1 -0
  373. package/lib/types/error/InteractionRequiredAuthError.d.ts +66 -0
  374. package/lib/types/error/InteractionRequiredAuthError.d.ts.map +1 -0
  375. package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts +8 -0
  376. package/lib/types/error/InteractionRequiredAuthErrorCodes.d.ts.map +1 -0
  377. package/lib/types/error/JoseHeaderError.d.ts +16 -0
  378. package/lib/types/error/JoseHeaderError.d.ts.map +1 -0
  379. package/lib/types/error/JoseHeaderErrorCodes.d.ts +3 -0
  380. package/lib/types/error/JoseHeaderErrorCodes.d.ts.map +1 -0
  381. package/lib/types/error/NetworkError.d.ts +19 -0
  382. package/lib/types/error/NetworkError.d.ts.map +1 -0
  383. package/lib/types/error/ServerError.d.ts +16 -0
  384. package/lib/types/error/ServerError.d.ts.map +1 -0
  385. package/lib/types/exports-browser-only.d.ts +10 -0
  386. package/lib/types/exports-browser-only.d.ts.map +1 -0
  387. package/lib/types/exports-common.d.ts +81 -0
  388. package/lib/types/exports-common.d.ts.map +1 -0
  389. package/lib/types/exports-node-only.d.ts +18 -0
  390. package/lib/types/exports-node-only.d.ts.map +1 -0
  391. package/lib/types/index-browser.d.ts +7 -0
  392. package/lib/types/index-browser.d.ts.map +1 -0
  393. package/lib/types/index-node.d.ts +7 -0
  394. package/lib/types/index-node.d.ts.map +1 -0
  395. package/lib/types/index.d.ts +12 -0
  396. package/lib/types/index.d.ts.map +1 -0
  397. package/lib/types/logger/Logger.d.ts +96 -0
  398. package/lib/types/logger/Logger.d.ts.map +1 -0
  399. package/lib/types/network/INetworkModule.d.ts +30 -0
  400. package/lib/types/network/INetworkModule.d.ts.map +1 -0
  401. package/lib/types/network/NetworkResponse.d.ts +6 -0
  402. package/lib/types/network/NetworkResponse.d.ts.map +1 -0
  403. package/lib/types/network/RequestThumbprint.d.ts +19 -0
  404. package/lib/types/network/RequestThumbprint.d.ts.map +1 -0
  405. package/lib/types/network/ThrottlingUtils.d.ts +43 -0
  406. package/lib/types/network/ThrottlingUtils.d.ts.map +1 -0
  407. package/lib/types/packageMetadata.d.ts +3 -0
  408. package/lib/types/packageMetadata.d.ts.map +1 -0
  409. package/lib/types/request/AuthenticationHeaderParser.d.ts +20 -0
  410. package/lib/types/request/AuthenticationHeaderParser.d.ts.map +1 -0
  411. package/lib/types/request/BaseAuthRequest.d.ts +50 -0
  412. package/lib/types/request/BaseAuthRequest.d.ts.map +1 -0
  413. package/lib/types/request/CommonAuthorizationCodeRequest.d.ts +28 -0
  414. package/lib/types/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
  415. package/lib/types/request/CommonAuthorizationUrlRequest.d.ts +51 -0
  416. package/lib/types/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
  417. package/lib/types/request/CommonClientCredentialRequest.d.ts +18 -0
  418. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -0
  419. package/lib/types/request/CommonDeviceCodeRequest.d.ts +22 -0
  420. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -0
  421. package/lib/types/request/CommonEndSessionRequest.d.ts +22 -0
  422. package/lib/types/request/CommonEndSessionRequest.d.ts.map +1 -0
  423. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +14 -0
  424. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
  425. package/lib/types/request/CommonRefreshTokenRequest.d.ts +23 -0
  426. package/lib/types/request/CommonRefreshTokenRequest.d.ts.map +1 -0
  427. package/lib/types/request/CommonSilentFlowRequest.d.ts +28 -0
  428. package/lib/types/request/CommonSilentFlowRequest.d.ts.map +1 -0
  429. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +18 -0
  430. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
  431. package/lib/types/request/NativeRequest.d.ts +20 -0
  432. package/lib/types/request/NativeRequest.d.ts.map +1 -0
  433. package/lib/types/request/NativeSignOutRequest.d.ts +6 -0
  434. package/lib/types/request/NativeSignOutRequest.d.ts.map +1 -0
  435. package/lib/types/request/RequestParameterBuilder.d.ts +225 -0
  436. package/lib/types/request/RequestParameterBuilder.d.ts.map +1 -0
  437. package/lib/types/request/RequestValidator.d.ts +28 -0
  438. package/lib/types/request/RequestValidator.d.ts.map +1 -0
  439. package/lib/types/request/ScopeSet.d.ts +89 -0
  440. package/lib/types/request/ScopeSet.d.ts.map +1 -0
  441. package/lib/types/request/StoreInCache.d.ts +9 -0
  442. package/lib/types/request/StoreInCache.d.ts.map +1 -0
  443. package/lib/types/response/AuthenticationResult.d.ts +42 -0
  444. package/lib/types/response/AuthenticationResult.d.ts.map +1 -0
  445. package/lib/types/response/AuthorizationCodePayload.d.ts +14 -0
  446. package/lib/types/response/AuthorizationCodePayload.d.ts.map +1 -0
  447. package/lib/types/response/DeviceCodeResponse.d.ts +26 -0
  448. package/lib/types/response/DeviceCodeResponse.d.ts.map +1 -0
  449. package/lib/types/response/ExternalTokenResponse.d.ts +16 -0
  450. package/lib/types/response/ExternalTokenResponse.d.ts.map +1 -0
  451. package/lib/types/response/IMDSBadResponse.d.ts +5 -0
  452. package/lib/types/response/IMDSBadResponse.d.ts.map +1 -0
  453. package/lib/types/response/ResponseHandler.d.ts +70 -0
  454. package/lib/types/response/ResponseHandler.d.ts.map +1 -0
  455. package/lib/types/response/ServerAuthorizationCodeResponse.d.ts +27 -0
  456. package/lib/types/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
  457. package/lib/types/response/ServerAuthorizationTokenResponse.d.ts +48 -0
  458. package/lib/types/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
  459. package/lib/types/telemetry/performance/IPerformanceClient.d.ts +58 -0
  460. package/lib/types/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
  461. package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
  462. package/lib/types/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
  463. package/lib/types/telemetry/performance/PerformanceClient.d.ts +243 -0
  464. package/lib/types/telemetry/performance/PerformanceClient.d.ts.map +1 -0
  465. package/lib/types/telemetry/performance/PerformanceEvent.d.ts +521 -0
  466. package/lib/types/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
  467. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts +25 -0
  468. package/lib/types/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
  469. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts +79 -0
  470. package/lib/types/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
  471. package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
  472. package/lib/types/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
  473. package/lib/types/url/IUri.d.ts +13 -0
  474. package/lib/types/url/IUri.d.ts.map +1 -0
  475. package/lib/types/url/UrlString.d.ts +49 -0
  476. package/lib/types/url/UrlString.d.ts.map +1 -0
  477. package/lib/types/utils/ClientAssertionUtils.d.ts +3 -0
  478. package/lib/types/utils/ClientAssertionUtils.d.ts.map +1 -0
  479. package/lib/types/utils/Constants.d.ts +311 -0
  480. package/lib/types/utils/Constants.d.ts.map +1 -0
  481. package/lib/types/utils/FunctionWrappers.d.ts +28 -0
  482. package/lib/types/utils/FunctionWrappers.d.ts.map +1 -0
  483. package/lib/types/utils/MsalTypes.d.ts +7 -0
  484. package/lib/types/utils/MsalTypes.d.ts.map +1 -0
  485. package/lib/types/utils/ProtocolUtils.d.ts +43 -0
  486. package/lib/types/utils/ProtocolUtils.d.ts.map +1 -0
  487. package/lib/types/utils/StringUtils.d.ts +41 -0
  488. package/lib/types/utils/StringUtils.d.ts.map +1 -0
  489. package/lib/types/utils/TimeUtils.d.ts +26 -0
  490. package/lib/types/utils/TimeUtils.d.ts.map +1 -0
  491. package/lib/types/utils/UrlUtils.d.ts +11 -0
  492. package/lib/types/utils/UrlUtils.d.ts.map +1 -0
  493. package/node/README.md +1 -0
  494. package/node/package.json +5 -0
  495. package/package.json +38 -11
  496. package/src/account/AccountInfo.ts +1 -1
  497. package/src/account/AuthToken.ts +2 -2
  498. package/src/account/ClientInfo.ts +2 -2
  499. package/src/authority/Authority.ts +26 -26
  500. package/src/authority/AuthorityFactory.ts +9 -9
  501. package/src/authority/AuthorityMetadata.ts +7 -7
  502. package/src/authority/AuthorityOptions.ts +4 -4
  503. package/src/authority/AzureRegionConfiguration.ts +1 -1
  504. package/src/authority/CloudInstanceDiscoveryResponse.ts +1 -1
  505. package/src/authority/OIDCOptions.ts +1 -1
  506. package/src/authority/RegionDiscovery.ts +10 -10
  507. package/src/authority/RegionDiscoveryMetadata.ts +1 -1
  508. package/src/broker/nativeBroker/INativeBrokerPlugin.ts +5 -5
  509. package/src/cache/CacheManager.ts +28 -36
  510. package/src/cache/entities/AccessTokenEntity.ts +2 -2
  511. package/src/cache/entities/AccountEntity.ts +10 -10
  512. package/src/cache/entities/CacheRecord.ts +5 -5
  513. package/src/cache/entities/CredentialEntity.ts +1 -1
  514. package/src/cache/entities/IdTokenEntity.ts +1 -1
  515. package/src/cache/entities/RefreshTokenEntity.ts +1 -1
  516. package/src/cache/interface/ICacheManager.ts +12 -12
  517. package/src/cache/interface/ICachePlugin.ts +1 -1
  518. package/src/cache/persistence/TokenCacheContext.ts +1 -1
  519. package/src/cache/utils/CacheHelpers.ts +13 -13
  520. package/src/cache/utils/CacheTypes.ts +11 -11
  521. package/src/client/AuthorizationCodeClient.ts +86 -52
  522. package/src/client/BaseClient.ts +121 -39
  523. package/src/client/RefreshTokenClient.ts +42 -33
  524. package/src/client/SilentFlowClient.ts +17 -17
  525. package/src/config/ClientConfiguration.ts +20 -15
  526. package/src/constants/AADServerParamKeys.ts +2 -0
  527. package/src/crypto/ICrypto.ts +3 -3
  528. package/src/crypto/JoseHeader.ts +2 -2
  529. package/src/crypto/PopTokenGenerator.ts +7 -7
  530. package/src/crypto/SignedHttpRequest.ts +1 -1
  531. package/src/error/AuthError.ts +2 -2
  532. package/src/error/CacheError.ts +1 -1
  533. package/src/error/ClientAuthError.ts +2 -2
  534. package/src/error/ClientConfigurationError.ts +2 -2
  535. package/src/error/InteractionRequiredAuthError.ts +3 -3
  536. package/src/error/JoseHeaderError.ts +2 -2
  537. package/src/error/NetworkError.ts +44 -0
  538. package/src/error/ServerError.ts +1 -1
  539. package/src/exports-browser-only.ts +29 -0
  540. package/src/exports-common.ts +189 -0
  541. package/src/exports-node-only.ts +35 -0
  542. package/src/index-browser.ts +11 -0
  543. package/src/index-node.ts +11 -0
  544. package/src/index.ts +7 -250
  545. package/src/logger/Logger.ts +2 -2
  546. package/src/network/INetworkModule.ts +2 -2
  547. package/src/network/NetworkResponse.ts +10 -0
  548. package/src/network/RequestThumbprint.ts +2 -2
  549. package/src/network/ThrottlingUtils.ts +8 -8
  550. package/src/packageMetadata.ts +1 -1
  551. package/src/request/AuthenticationHeaderParser.ts +2 -2
  552. package/src/request/BaseAuthRequest.ts +7 -5
  553. package/src/request/CommonAuthorizationCodeRequest.ts +3 -3
  554. package/src/request/CommonAuthorizationUrlRequest.ts +4 -4
  555. package/src/request/CommonClientCredentialRequest.ts +3 -3
  556. package/src/request/CommonDeviceCodeRequest.ts +3 -3
  557. package/src/request/CommonEndSessionRequest.ts +2 -2
  558. package/src/request/CommonOnBehalfOfRequest.ts +1 -1
  559. package/src/request/CommonRefreshTokenRequest.ts +3 -3
  560. package/src/request/CommonSilentFlowRequest.ts +3 -3
  561. package/src/request/CommonUsernamePasswordRequest.ts +1 -1
  562. package/src/request/NativeRequest.ts +1 -1
  563. package/src/request/RequestParameterBuilder.ts +60 -10
  564. package/src/request/RequestValidator.ts +2 -2
  565. package/src/request/ScopeSet.ts +4 -4
  566. package/src/response/AuthenticationResult.ts +1 -1
  567. package/src/response/ExternalTokenResponse.ts +1 -1
  568. package/src/response/ResponseHandler.ts +31 -31
  569. package/src/response/ServerAuthorizationTokenResponse.ts +1 -1
  570. package/src/telemetry/performance/IPerformanceClient.ts +2 -2
  571. package/src/telemetry/performance/PerformanceClient.ts +52 -22
  572. package/src/telemetry/performance/PerformanceEvent.ts +15 -0
  573. package/src/telemetry/performance/StubPerformanceClient.ts +6 -3
  574. package/src/telemetry/server/ServerTelemetryManager.ts +6 -6
  575. package/src/url/UrlString.ts +5 -5
  576. package/src/utils/ClientAssertionUtils.ts +1 -1
  577. package/src/utils/Constants.ts +1 -0
  578. package/src/utils/FunctionWrappers.ts +2 -2
  579. package/src/utils/ProtocolUtils.ts +3 -3
  580. package/src/utils/UrlUtils.ts +2 -2
  581. package/dist/index.cjs.map +0 -1
  582. package/dist/network/NetworkManager.d.ts +0 -34
  583. package/dist/network/NetworkManager.d.ts.map +0 -1
  584. package/dist/network/NetworkManager.mjs +0 -44
  585. package/dist/network/NetworkManager.mjs.map +0 -1
  586. package/src/network/NetworkManager.ts +0 -76
@@ -0,0 +1,51 @@
1
+ import { ResponseMode } from "../utils/Constants.js";
2
+ import { StringDict } from "../utils/MsalTypes.js";
3
+ import { BaseAuthRequest } from "./BaseAuthRequest.js";
4
+ import { AccountInfo } from "../account/AccountInfo.js";
5
+ /**
6
+ * Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
7
+ *
8
+ * - scopes - Array of scopes the application is requesting access to.
9
+ * - claims - A stringified claims request which will be added to all /authorize and /token calls
10
+ * - authority - Url of the authority which the application acquires tokens from.
11
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
12
+ * - redirectUri - The redirect URI where authentication responses can be received by your application. It must exactly match one of the redirect URIs registered in the Azure portal.
13
+ * - extraScopesToConsent - Scopes for a different resource when the user needs consent upfront.
14
+ * - responseMode - Specifies the method that should be used to send the authentication result to your app. Can be query, form_post, or fragment. If no value is passed in, it defaults to query.
15
+ * - codeChallenge - Used to secure authorization code grant via Proof of Key for Code Exchange (PKCE). For more information, see the PKCE RCF:https://tools.ietf.org/html/rfc7636
16
+ * - codeChallengeMethod - The method used to encode the code verifier for the code challenge parameter. Can be "plain" or "S256". If excluded, code challenge is assumed to be plaintext. For more information, see the PKCE RCF: https://tools.ietf.org/html/rfc7636
17
+ * - state - A value included in the request that is also returned in the token response. A randomly generated unique value is typically used for preventing cross site request forgery attacks. The state is also used to encode information about the user's state in the app before the authentication request occurred.
18
+ * - prompt - Indicates the type of user interaction that is required.
19
+ * login: will force the user to enter their credentials on that request, negating single-sign on
20
+ * none: will ensure that the user isn't presented with any interactive prompt. if request can't be completed via single-sign on, the endpoint will return an interaction_required error
21
+ * consent: will the trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app
22
+ * select_account: will interrupt single sign-=on providing account selection experience listing all the accounts in session or any remembered accounts or an option to choose to use a different account
23
+ * create: will direct the user to the account creation experience instead of the log in experience
24
+ * no_session: will not read existing session token when authenticating the user. Upon user being successfully authenticated, EVO won’t create a new session for the user. FOR INTERNAL USE ONLY.
25
+ * - account - AccountInfo obtained from a getAccount API. Will be used in certain scenarios to generate login_hint if both loginHint and sid params are not provided.
26
+ * - loginHint - Can be used to pre-fill the username/email address field of the sign-in page for the user, if you know the username/email address ahead of time. Often apps use this parameter during re-authentication, having already extracted the username from a previous sign-in using the preferred_username claim.
27
+ * - sid - Session ID, unique identifier for the session. Available as an optional claim on ID tokens.
28
+ * - domainHint - Provides a hint about the tenant or domain that the user should use to sign in. The value of the domain hint is a registered domain for the tenant.
29
+ * - extraQueryParameters - String to string map of custom query parameters added to the /authorize call
30
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
31
+ * - nonce - A value included in the request that is returned in the id token. A randomly generated unique value is typically used to mitigate replay attacks.
32
+ * - resourceRequestMethod - HTTP Request type used to request data from the resource (i.e. "GET", "POST", etc.). Used for proof-of-possession flows.
33
+ * - resourceRequestUri - URI that token will be used for. Used for proof-of-possession flows.
34
+ */
35
+ export type CommonAuthorizationUrlRequest = BaseAuthRequest & {
36
+ redirectUri: string;
37
+ responseMode: ResponseMode;
38
+ account?: AccountInfo;
39
+ codeChallenge?: string;
40
+ codeChallengeMethod?: string;
41
+ domainHint?: string;
42
+ extraQueryParameters?: StringDict;
43
+ extraScopesToConsent?: Array<string>;
44
+ loginHint?: string;
45
+ nonce?: string;
46
+ prompt?: string;
47
+ sid?: string;
48
+ state?: string;
49
+ nativeBroker?: boolean;
50
+ };
51
+ //# sourceMappingURL=CommonAuthorizationUrlRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonAuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonAuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,oBAAoB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { BaseAuthRequest } from "./BaseAuthRequest.js";
2
+ import { AzureRegion } from "../authority/AzureRegion.js";
3
+ import { ClientAssertion } from "../account/ClientCredentials.js";
4
+ /**
5
+ * CommonClientCredentialRequest
6
+ * - scopes - Array of scopes the application is requesting access to.
7
+ * - authority - URL of the authority, the security token service (STS) from which MSAL will acquire tokens.
8
+ * - correlationId - Unique GUID set per request to trace a request end-to-end for telemetry purposes.
9
+ * - skipCache - Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
10
+ * - preferredAzureRegionOptions - Options of the user's preferred azure region
11
+ * - tokenQueryParameters - String to string map of custom query parameters added to the /token call
12
+ */
13
+ export type CommonClientCredentialRequest = BaseAuthRequest & {
14
+ skipCache?: boolean;
15
+ azureRegion?: AzureRegion;
16
+ clientAssertion?: ClientAssertion;
17
+ };
18
+ //# sourceMappingURL=CommonClientCredentialRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE;;;;;;;;GAQG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"}
@@ -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,225 @@
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
+ import { IPerformanceClient } from "../telemetry/performance/IPerformanceClient.js";
7
+ /** @internal */
8
+ export declare class RequestParameterBuilder {
9
+ private parameters;
10
+ private readonly performanceClient?;
11
+ private readonly correlationId?;
12
+ constructor(correlationId?: string, performanceClient?: IPerformanceClient);
13
+ /**
14
+ * add response_type = code
15
+ */
16
+ addResponseTypeCode(): void;
17
+ /**
18
+ * add response_type = token id_token
19
+ */
20
+ addResponseTypeForTokenAndIdToken(): void;
21
+ /**
22
+ * add response_mode. defaults to query.
23
+ * @param responseMode
24
+ */
25
+ addResponseMode(responseMode?: ResponseMode): void;
26
+ /**
27
+ * Add flag to indicate STS should attempt to use WAM if available
28
+ */
29
+ addNativeBroker(): void;
30
+ /**
31
+ * add scopes. set addOidcScopes to false to prevent default scopes in non-user scenarios
32
+ * @param scopeSet
33
+ * @param addOidcScopes
34
+ */
35
+ addScopes(scopes: string[], addOidcScopes?: boolean, defaultScopes?: Array<string>): void;
36
+ /**
37
+ * add clientId
38
+ * @param clientId
39
+ */
40
+ addClientId(clientId: string): void;
41
+ /**
42
+ * add redirect_uri
43
+ * @param redirectUri
44
+ */
45
+ addRedirectUri(redirectUri: string): void;
46
+ /**
47
+ * add post logout redirectUri
48
+ * @param redirectUri
49
+ */
50
+ addPostLogoutRedirectUri(redirectUri: string): void;
51
+ /**
52
+ * add id_token_hint to logout request
53
+ * @param idTokenHint
54
+ */
55
+ addIdTokenHint(idTokenHint: string): void;
56
+ /**
57
+ * add domain_hint
58
+ * @param domainHint
59
+ */
60
+ addDomainHint(domainHint: string): void;
61
+ /**
62
+ * add login_hint
63
+ * @param loginHint
64
+ */
65
+ addLoginHint(loginHint: string): void;
66
+ /**
67
+ * Adds the CCS (Cache Credential Service) query parameter for login_hint
68
+ * @param loginHint
69
+ */
70
+ addCcsUpn(loginHint: string): void;
71
+ /**
72
+ * Adds the CCS (Cache Credential Service) query parameter for account object
73
+ * @param loginHint
74
+ */
75
+ addCcsOid(clientInfo: ClientInfo): void;
76
+ /**
77
+ * add sid
78
+ * @param sid
79
+ */
80
+ addSid(sid: string): void;
81
+ /**
82
+ * add claims
83
+ * @param claims
84
+ */
85
+ addClaims(claims?: string, clientCapabilities?: Array<string>): void;
86
+ /**
87
+ * add correlationId
88
+ * @param correlationId
89
+ */
90
+ addCorrelationId(correlationId: string): void;
91
+ /**
92
+ * add library info query params
93
+ * @param libraryInfo
94
+ */
95
+ addLibraryInfo(libraryInfo: LibraryInfo): void;
96
+ /**
97
+ * Add client telemetry parameters
98
+ * @param appTelemetry
99
+ */
100
+ addApplicationTelemetry(appTelemetry: ApplicationTelemetry): void;
101
+ /**
102
+ * add prompt
103
+ * @param prompt
104
+ */
105
+ addPrompt(prompt: string): void;
106
+ /**
107
+ * add state
108
+ * @param state
109
+ */
110
+ addState(state: string): void;
111
+ /**
112
+ * add nonce
113
+ * @param nonce
114
+ */
115
+ addNonce(nonce: string): void;
116
+ /**
117
+ * add code_challenge and code_challenge_method
118
+ * - throw if either of them are not passed
119
+ * @param codeChallenge
120
+ * @param codeChallengeMethod
121
+ */
122
+ addCodeChallengeParams(codeChallenge: string, codeChallengeMethod: string): void;
123
+ /**
124
+ * add the `authorization_code` passed by the user to exchange for a token
125
+ * @param code
126
+ */
127
+ addAuthorizationCode(code: string): void;
128
+ /**
129
+ * add the `authorization_code` passed by the user to exchange for a token
130
+ * @param code
131
+ */
132
+ addDeviceCode(code: string): void;
133
+ /**
134
+ * add the `refreshToken` passed by the user
135
+ * @param refreshToken
136
+ */
137
+ addRefreshToken(refreshToken: string): void;
138
+ /**
139
+ * add the `code_verifier` passed by the user to exchange for a token
140
+ * @param codeVerifier
141
+ */
142
+ addCodeVerifier(codeVerifier: string): void;
143
+ /**
144
+ * add client_secret
145
+ * @param clientSecret
146
+ */
147
+ addClientSecret(clientSecret: string): void;
148
+ /**
149
+ * add clientAssertion for confidential client flows
150
+ * @param clientAssertion
151
+ */
152
+ addClientAssertion(clientAssertion: string): void;
153
+ /**
154
+ * add clientAssertionType for confidential client flows
155
+ * @param clientAssertionType
156
+ */
157
+ addClientAssertionType(clientAssertionType: string): void;
158
+ /**
159
+ * add OBO assertion for confidential client flows
160
+ * @param clientAssertion
161
+ */
162
+ addOboAssertion(oboAssertion: string): void;
163
+ /**
164
+ * add grant type
165
+ * @param grantType
166
+ */
167
+ addRequestTokenUse(tokenUse: string): void;
168
+ /**
169
+ * add grant type
170
+ * @param grantType
171
+ */
172
+ addGrantType(grantType: string): void;
173
+ /**
174
+ * add client info
175
+ *
176
+ */
177
+ addClientInfo(): void;
178
+ /**
179
+ * add extraQueryParams
180
+ * @param eQParams
181
+ */
182
+ addExtraQueryParameters(eQParams: StringDict): void;
183
+ addClientCapabilitiesToClaims(claims?: string, clientCapabilities?: Array<string>): string;
184
+ /**
185
+ * adds `username` for Password Grant flow
186
+ * @param username
187
+ */
188
+ addUsername(username: string): void;
189
+ /**
190
+ * adds `password` for Password Grant flow
191
+ * @param password
192
+ */
193
+ addPassword(password: string): void;
194
+ /**
195
+ * add pop_jwk to query params
196
+ * @param cnfString
197
+ */
198
+ addPopToken(cnfString: string): void;
199
+ /**
200
+ * add SSH JWK and key ID to query params
201
+ */
202
+ addSshJwk(sshJwkString: string): void;
203
+ /**
204
+ * add server telemetry fields
205
+ * @param serverTelemetryManager
206
+ */
207
+ addServerTelemetry(serverTelemetryManager: ServerTelemetryManager): void;
208
+ /**
209
+ * Adds parameter that indicates to the server that throttling is supported
210
+ */
211
+ addThrottling(): void;
212
+ /**
213
+ * Adds logout_hint parameter for "silent" logout which prevent server account picker
214
+ */
215
+ addLogoutHint(logoutHint: string): void;
216
+ addBrokerParameters(params: {
217
+ brokerClientId: string;
218
+ brokerRedirectUri: string;
219
+ }): void;
220
+ /**
221
+ * Utility to create a URL from the params map
222
+ */
223
+ createQueryString(): string;
224
+ }
225
+ //# sourceMappingURL=RequestParameterBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestParameterBuilder.d.ts","sourceRoot":"","sources":["../../../src/request/RequestParameterBuilder.ts"],"names":[],"mappings":"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"}
@@ -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"}