@azure/msal-node 5.1.5 → 5.2.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.
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/NodeStorage.mjs +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/dist/cache/serializer/Deserializer.mjs +1 -1
- package/dist/cache/serializer/Serializer.mjs +1 -1
- package/dist/client/BaseClient.mjs +1 -1
- package/dist/client/ClientApplication.mjs +1 -1
- package/dist/client/ClientAssertion.mjs +1 -1
- package/dist/client/ClientCredentialClient.mjs +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/dist/client/DeviceCodeClient.mjs +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +1 -1
- package/dist/client/ManagedIdentityClient.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +9 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +8 -2
- package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
- package/dist/client/OnBehalfOfClient.mjs +1 -1
- package/dist/client/PublicClientApplication.mjs +1 -1
- package/dist/client/UsernamePasswordClient.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/config/ManagedIdentityId.mjs +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
- package/dist/crypto/CryptoProvider.mjs +1 -1
- package/dist/crypto/GuidGenerator.mjs +1 -1
- package/dist/crypto/HashUtils.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/dist/error/NodeAuthError.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internals.mjs +1 -1
- package/dist/network/HttpClient.mjs +1 -1
- package/dist/network/HttpClientWithRetries.mjs +1 -1
- package/dist/network/LoopbackClient.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/dist/utils/Constants.mjs +6 -1
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/EncodingUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/lib/msal-node.cjs +79 -63
- package/lib/msal-node.cjs.map +1 -1
- package/package.json +9 -7
- package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -0
- package/src/client/ManagedIdentitySources/Imds.ts +7 -0
- package/src/packageMetadata.ts +1 -1
- package/src/utils/Constants.ts +4 -0
- package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +6 -0
- package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/types/index.d.cts +1 -0
- package/types/packageMetadata.d.ts +3 -0
- package/{lib/types → types}/utils/Constants.d.ts +3 -0
- package/{lib/types → types}/utils/Constants.d.ts.map +1 -1
- package/dist/packageMetadata.d.ts +0 -3
- package/dist/utils/Constants.d.ts +0 -156
- package/dist/utils/Constants.d.ts.map +0 -1
- package/lib/types/cache/CacheHelpers.d.ts +0 -4
- package/lib/types/cache/CacheHelpers.d.ts.map +0 -1
- package/lib/types/cache/ITokenCache.d.ts +0 -16
- package/lib/types/cache/ITokenCache.d.ts.map +0 -1
- package/lib/types/cache/NodeStorage.d.ts +0 -191
- package/lib/types/cache/NodeStorage.d.ts.map +0 -1
- package/lib/types/cache/TokenCache.d.ts +0 -99
- package/lib/types/cache/TokenCache.d.ts.map +0 -1
- package/lib/types/cache/distributed/DistributedCachePlugin.d.ts +0 -23
- package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +0 -1
- package/lib/types/cache/distributed/ICacheClient.d.ts +0 -22
- package/lib/types/cache/distributed/ICacheClient.d.ts.map +0 -1
- package/lib/types/cache/distributed/IPartitionManager.d.ts +0 -33
- package/lib/types/cache/distributed/IPartitionManager.d.ts.map +0 -1
- package/lib/types/cache/serializer/Deserializer.d.ts +0 -44
- package/lib/types/cache/serializer/Deserializer.d.ts.map +0 -1
- package/lib/types/cache/serializer/Serializer.d.ts +0 -44
- package/lib/types/cache/serializer/Serializer.d.ts.map +0 -1
- package/lib/types/cache/serializer/SerializerTypes.d.ts +0 -102
- package/lib/types/cache/serializer/SerializerTypes.d.ts.map +0 -1
- package/lib/types/client/BaseClient.d.ts +0 -42
- package/lib/types/client/BaseClient.d.ts.map +0 -1
- package/lib/types/client/ClientApplication.d.ts +0 -146
- package/lib/types/client/ClientApplication.d.ts.map +0 -1
- package/lib/types/client/ClientAssertion.d.ts +0 -56
- package/lib/types/client/ClientAssertion.d.ts.map +0 -1
- package/lib/types/client/ClientCredentialClient.d.ts +0 -37
- package/lib/types/client/ClientCredentialClient.d.ts.map +0 -1
- package/lib/types/client/ConfidentialClientApplication.d.ts +0 -58
- package/lib/types/client/ConfidentialClientApplication.d.ts.map +0 -1
- package/lib/types/client/DeviceCodeClient.d.ts +0 -60
- package/lib/types/client/DeviceCodeClient.d.ts.map +0 -1
- package/lib/types/client/IConfidentialClientApplication.d.ts +0 -43
- package/lib/types/client/IConfidentialClientApplication.d.ts.map +0 -1
- package/lib/types/client/IPublicClientApplication.d.ts +0 -46
- package/lib/types/client/IPublicClientApplication.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentityApplication.d.ts +0 -42
- package/lib/types/client/ManagedIdentityApplication.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentityClient.d.ts +0 -29
- package/lib/types/client/ManagedIdentityClient.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts +0 -72
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +0 -109
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +0 -125
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +0 -71
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts +0 -67
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +0 -81
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -82
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -1
- package/lib/types/client/OnBehalfOfClient.d.ts +0 -50
- package/lib/types/client/OnBehalfOfClient.d.ts.map +0 -1
- package/lib/types/client/PublicClientApplication.d.ts +0 -85
- package/lib/types/client/PublicClientApplication.d.ts.map +0 -1
- package/lib/types/client/UsernamePasswordClient.d.ts +0 -30
- package/lib/types/client/UsernamePasswordClient.d.ts.map +0 -1
- package/lib/types/config/Configuration.d.ts +0 -131
- package/lib/types/config/Configuration.d.ts.map +0 -1
- package/lib/types/config/ManagedIdentityId.d.ts +0 -12
- package/lib/types/config/ManagedIdentityId.d.ts.map +0 -1
- package/lib/types/config/ManagedIdentityRequestParameters.d.ts +0 -13
- package/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +0 -1
- package/lib/types/crypto/CryptoProvider.d.ts +0 -63
- package/lib/types/crypto/CryptoProvider.d.ts.map +0 -1
- package/lib/types/crypto/GuidGenerator.d.ts +0 -14
- package/lib/types/crypto/GuidGenerator.d.ts.map +0 -1
- package/lib/types/crypto/HashUtils.d.ts +0 -10
- package/lib/types/crypto/HashUtils.d.ts.map +0 -1
- package/lib/types/crypto/PkceGenerator.d.ts +0 -23
- package/lib/types/crypto/PkceGenerator.d.ts.map +0 -1
- package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +0 -1
- package/lib/types/error/ManagedIdentityError.d.ts +0 -31
- package/lib/types/error/ManagedIdentityError.d.ts.map +0 -1
- package/lib/types/error/ManagedIdentityErrorCodes.d.ts +0 -23
- package/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +0 -1
- package/lib/types/error/NodeAuthError.d.ts +0 -82
- package/lib/types/error/NodeAuthError.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -54
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/internals.d.ts +0 -7
- package/lib/types/internals.d.ts.map +0 -1
- package/lib/types/network/HttpClient.d.ts +0 -66
- package/lib/types/network/HttpClient.d.ts.map +0 -1
- package/lib/types/network/HttpClientWithRetries.d.ts +0 -13
- package/lib/types/network/HttpClientWithRetries.d.ts.map +0 -1
- package/lib/types/network/ILoopbackClient.d.ts +0 -11
- package/lib/types/network/ILoopbackClient.d.ts.map +0 -1
- package/lib/types/network/LoopbackClient.d.ts +0 -22
- package/lib/types/network/LoopbackClient.d.ts.map +0 -1
- package/lib/types/packageMetadata.d.ts +0 -3
- package/lib/types/packageMetadata.d.ts.map +0 -1
- package/lib/types/protocol/Authorize.d.ts +0 -12
- package/lib/types/protocol/Authorize.d.ts.map +0 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts +0 -24
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +0 -1
- package/lib/types/request/AuthorizationUrlRequest.d.ts +0 -16
- package/lib/types/request/AuthorizationUrlRequest.d.ts.map +0 -1
- package/lib/types/request/ClientCredentialRequest.d.ts +0 -13
- package/lib/types/request/ClientCredentialRequest.d.ts.map +0 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -19
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -23
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -15
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -16
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/lib/types/request/DeviceCodeRequest.d.ts +0 -17
- package/lib/types/request/DeviceCodeRequest.d.ts.map +0 -1
- package/lib/types/request/InteractiveRequest.d.ts +0 -35
- package/lib/types/request/InteractiveRequest.d.ts.map +0 -1
- package/lib/types/request/ManagedIdentityRequest.d.ts +0 -16
- package/lib/types/request/ManagedIdentityRequest.d.ts.map +0 -1
- package/lib/types/request/ManagedIdentityRequestParams.d.ts +0 -19
- package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +0 -1
- package/lib/types/request/OnBehalfOfRequest.d.ts +0 -16
- package/lib/types/request/OnBehalfOfRequest.d.ts.map +0 -1
- package/lib/types/request/RefreshTokenRequest.d.ts +0 -20
- package/lib/types/request/RefreshTokenRequest.d.ts.map +0 -1
- package/lib/types/request/SignOutRequest.d.ts +0 -7
- package/lib/types/request/SignOutRequest.d.ts.map +0 -1
- package/lib/types/request/SilentFlowRequest.d.ts +0 -16
- package/lib/types/request/SilentFlowRequest.d.ts.map +0 -1
- package/lib/types/request/UsernamePasswordRequest.d.ts +0 -21
- package/lib/types/request/UsernamePasswordRequest.d.ts.map +0 -1
- package/lib/types/response/ManagedIdentityTokenResponse.d.ts +0 -35
- package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +0 -1
- package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -11
- package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -1
- package/lib/types/retry/ExponentialRetryStrategy.d.ts +0 -23
- package/lib/types/retry/ExponentialRetryStrategy.d.ts.map +0 -1
- package/lib/types/retry/IHttpRetryPolicy.d.ts +0 -16
- package/lib/types/retry/IHttpRetryPolicy.d.ts.map +0 -1
- package/lib/types/retry/ImdsRetryPolicy.d.ts +0 -22
- package/lib/types/retry/ImdsRetryPolicy.d.ts.map +0 -1
- package/lib/types/retry/LinearRetryStrategy.d.ts +0 -14
- package/lib/types/retry/LinearRetryStrategy.d.ts.map +0 -1
- package/lib/types/utils/EncodingUtils.d.ts +0 -27
- package/lib/types/utils/EncodingUtils.d.ts.map +0 -1
- package/lib/types/utils/NetworkUtils.d.ts +0 -17
- package/lib/types/utils/NetworkUtils.d.ts.map +0 -1
- package/lib/types/utils/TimeUtils.d.ts +0 -9
- package/lib/types/utils/TimeUtils.d.ts.map +0 -1
- /package/{dist → types}/cache/CacheHelpers.d.ts +0 -0
- /package/{dist → types}/cache/CacheHelpers.d.ts.map +0 -0
- /package/{dist → types}/cache/ITokenCache.d.ts +0 -0
- /package/{dist → types}/cache/ITokenCache.d.ts.map +0 -0
- /package/{dist → types}/cache/NodeStorage.d.ts +0 -0
- /package/{dist → types}/cache/NodeStorage.d.ts.map +0 -0
- /package/{dist → types}/cache/TokenCache.d.ts +0 -0
- /package/{dist → types}/cache/TokenCache.d.ts.map +0 -0
- /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts +0 -0
- /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts.map +0 -0
- /package/{dist → types}/cache/distributed/ICacheClient.d.ts +0 -0
- /package/{dist → types}/cache/distributed/ICacheClient.d.ts.map +0 -0
- /package/{dist → types}/cache/distributed/IPartitionManager.d.ts +0 -0
- /package/{dist → types}/cache/distributed/IPartitionManager.d.ts.map +0 -0
- /package/{dist → types}/cache/serializer/Deserializer.d.ts +0 -0
- /package/{dist → types}/cache/serializer/Deserializer.d.ts.map +0 -0
- /package/{dist → types}/cache/serializer/Serializer.d.ts +0 -0
- /package/{dist → types}/cache/serializer/Serializer.d.ts.map +0 -0
- /package/{dist → types}/cache/serializer/SerializerTypes.d.ts +0 -0
- /package/{dist → types}/cache/serializer/SerializerTypes.d.ts.map +0 -0
- /package/{dist → types}/client/BaseClient.d.ts +0 -0
- /package/{dist → types}/client/BaseClient.d.ts.map +0 -0
- /package/{dist → types}/client/ClientApplication.d.ts +0 -0
- /package/{dist → types}/client/ClientApplication.d.ts.map +0 -0
- /package/{dist → types}/client/ClientAssertion.d.ts +0 -0
- /package/{dist → types}/client/ClientAssertion.d.ts.map +0 -0
- /package/{dist → types}/client/ClientCredentialClient.d.ts +0 -0
- /package/{dist → types}/client/ClientCredentialClient.d.ts.map +0 -0
- /package/{dist → types}/client/ConfidentialClientApplication.d.ts +0 -0
- /package/{dist → types}/client/ConfidentialClientApplication.d.ts.map +0 -0
- /package/{dist → types}/client/DeviceCodeClient.d.ts +0 -0
- /package/{dist → types}/client/DeviceCodeClient.d.ts.map +0 -0
- /package/{dist → types}/client/IConfidentialClientApplication.d.ts +0 -0
- /package/{dist → types}/client/IConfidentialClientApplication.d.ts.map +0 -0
- /package/{dist → types}/client/IPublicClientApplication.d.ts +0 -0
- /package/{dist → types}/client/IPublicClientApplication.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentityApplication.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentityApplication.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentityClient.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentityClient.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -0
- /package/{dist → types}/client/OnBehalfOfClient.d.ts +0 -0
- /package/{dist → types}/client/OnBehalfOfClient.d.ts.map +0 -0
- /package/{dist → types}/client/PublicClientApplication.d.ts +0 -0
- /package/{dist → types}/client/PublicClientApplication.d.ts.map +0 -0
- /package/{dist → types}/client/UsernamePasswordClient.d.ts +0 -0
- /package/{dist → types}/client/UsernamePasswordClient.d.ts.map +0 -0
- /package/{dist → types}/config/Configuration.d.ts +0 -0
- /package/{dist → types}/config/Configuration.d.ts.map +0 -0
- /package/{dist → types}/config/ManagedIdentityId.d.ts +0 -0
- /package/{dist → types}/config/ManagedIdentityId.d.ts.map +0 -0
- /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts +0 -0
- /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts.map +0 -0
- /package/{dist → types}/crypto/CryptoProvider.d.ts +0 -0
- /package/{dist → types}/crypto/CryptoProvider.d.ts.map +0 -0
- /package/{dist → types}/crypto/GuidGenerator.d.ts +0 -0
- /package/{dist → types}/crypto/GuidGenerator.d.ts.map +0 -0
- /package/{dist → types}/crypto/HashUtils.d.ts +0 -0
- /package/{dist → types}/crypto/HashUtils.d.ts.map +0 -0
- /package/{dist → types}/crypto/PkceGenerator.d.ts +0 -0
- /package/{dist → types}/crypto/PkceGenerator.d.ts.map +0 -0
- /package/{dist → types}/error/ClientAuthErrorCodes.d.ts +0 -0
- /package/{dist → types}/error/ClientAuthErrorCodes.d.ts.map +0 -0
- /package/{dist → types}/error/ManagedIdentityError.d.ts +0 -0
- /package/{dist → types}/error/ManagedIdentityError.d.ts.map +0 -0
- /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts +0 -0
- /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts.map +0 -0
- /package/{dist → types}/error/NodeAuthError.d.ts +0 -0
- /package/{dist → types}/error/NodeAuthError.d.ts.map +0 -0
- /package/{dist → types}/index.d.ts +0 -0
- /package/{dist → types}/index.d.ts.map +0 -0
- /package/{dist → types}/internals.d.ts +0 -0
- /package/{dist → types}/internals.d.ts.map +0 -0
- /package/{dist → types}/network/HttpClient.d.ts +0 -0
- /package/{dist → types}/network/HttpClient.d.ts.map +0 -0
- /package/{dist → types}/network/HttpClientWithRetries.d.ts +0 -0
- /package/{dist → types}/network/HttpClientWithRetries.d.ts.map +0 -0
- /package/{dist → types}/network/ILoopbackClient.d.ts +0 -0
- /package/{dist → types}/network/ILoopbackClient.d.ts.map +0 -0
- /package/{dist → types}/network/LoopbackClient.d.ts +0 -0
- /package/{dist → types}/network/LoopbackClient.d.ts.map +0 -0
- /package/{dist → types}/packageMetadata.d.ts.map +0 -0
- /package/{dist → types}/protocol/Authorize.d.ts +0 -0
- /package/{dist → types}/protocol/Authorize.d.ts.map +0 -0
- /package/{dist → types}/request/AuthorizationCodeRequest.d.ts +0 -0
- /package/{dist → types}/request/AuthorizationCodeRequest.d.ts.map +0 -0
- /package/{dist → types}/request/AuthorizationUrlRequest.d.ts +0 -0
- /package/{dist → types}/request/AuthorizationUrlRequest.d.ts.map +0 -0
- /package/{dist → types}/request/ClientCredentialRequest.d.ts +0 -0
- /package/{dist → types}/request/ClientCredentialRequest.d.ts.map +0 -0
- /package/{dist → types}/request/CommonClientCredentialRequest.d.ts +0 -0
- /package/{dist → types}/request/CommonClientCredentialRequest.d.ts.map +0 -0
- /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts +0 -0
- /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts.map +0 -0
- /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts +0 -0
- /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts.map +0 -0
- /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts +0 -0
- /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts.map +0 -0
- /package/{dist → types}/request/DeviceCodeRequest.d.ts +0 -0
- /package/{dist → types}/request/DeviceCodeRequest.d.ts.map +0 -0
- /package/{dist → types}/request/InteractiveRequest.d.ts +0 -0
- /package/{dist → types}/request/InteractiveRequest.d.ts.map +0 -0
- /package/{dist → types}/request/ManagedIdentityRequest.d.ts +0 -0
- /package/{dist → types}/request/ManagedIdentityRequest.d.ts.map +0 -0
- /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts +0 -0
- /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts.map +0 -0
- /package/{dist → types}/request/OnBehalfOfRequest.d.ts +0 -0
- /package/{dist → types}/request/OnBehalfOfRequest.d.ts.map +0 -0
- /package/{dist → types}/request/RefreshTokenRequest.d.ts +0 -0
- /package/{dist → types}/request/RefreshTokenRequest.d.ts.map +0 -0
- /package/{dist → types}/request/SignOutRequest.d.ts +0 -0
- /package/{dist → types}/request/SignOutRequest.d.ts.map +0 -0
- /package/{dist → types}/request/SilentFlowRequest.d.ts +0 -0
- /package/{dist → types}/request/SilentFlowRequest.d.ts.map +0 -0
- /package/{dist → types}/request/UsernamePasswordRequest.d.ts +0 -0
- /package/{dist → types}/request/UsernamePasswordRequest.d.ts.map +0 -0
- /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts +0 -0
- /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts.map +0 -0
- /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -0
- /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -0
- /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts +0 -0
- /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts.map +0 -0
- /package/{dist → types}/retry/IHttpRetryPolicy.d.ts +0 -0
- /package/{dist → types}/retry/IHttpRetryPolicy.d.ts.map +0 -0
- /package/{dist → types}/retry/ImdsRetryPolicy.d.ts +0 -0
- /package/{dist → types}/retry/ImdsRetryPolicy.d.ts.map +0 -0
- /package/{dist → types}/retry/LinearRetryStrategy.d.ts +0 -0
- /package/{dist → types}/retry/LinearRetryStrategy.d.ts.map +0 -0
- /package/{dist → types}/utils/EncodingUtils.d.ts +0 -0
- /package/{dist → types}/utils/EncodingUtils.d.ts.map +0 -0
- /package/{dist → types}/utils/NetworkUtils.d.ts +0 -0
- /package/{dist → types}/utils/NetworkUtils.d.ts.map +0 -0
- /package/{dist → types}/utils/TimeUtils.d.ts +0 -0
- /package/{dist → types}/utils/TimeUtils.d.ts.map +0 -0
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { LoggerOptions, INetworkModule, ProtocolMode, ICachePlugin, AzureCloudOptions, ApplicationTelemetry, INativeBrokerPlugin, ClientAssertionCallback } from "@azure/msal-common/node";
|
|
2
|
-
import { ManagedIdentityId } from "./ManagedIdentityId.js";
|
|
3
|
-
/**
|
|
4
|
-
* - clientId - Client id of the application.
|
|
5
|
-
* - authority - Url of the authority. If no value is set, defaults to https://login.microsoftonline.com/common.
|
|
6
|
-
* - knownAuthorities - Needed for Azure B2C and ADFS. All authorities that will be used in the client application. Only the host of the authority should be passed in.
|
|
7
|
-
* - clientSecret - Secret string that the application uses when requesting a token. Only used in confidential client applications. Can be created in the Azure app registration portal.
|
|
8
|
-
* - clientAssertion - A ClientAssertion object containing an assertion string or a callback function that returns an assertion string that the application uses when requesting a token, as well as the assertion's type (urn:ietf:params:oauth:client-assertion-type:jwt-bearer). Only used in confidential client applications.
|
|
9
|
-
* - clientCertificate - Certificate that the application uses when requesting a token. Only used in confidential client applications. Requires hex encoded X.509 SHA-1 or SHA-256 thumbprint of the certificate, and the PEM encoded private key (string should contain -----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- )
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export type NodeAuthOptions = {
|
|
13
|
-
clientId: string;
|
|
14
|
-
authority?: string;
|
|
15
|
-
clientSecret?: string;
|
|
16
|
-
clientAssertion?: string | ClientAssertionCallback;
|
|
17
|
-
clientCertificate?: {
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use thumbprintSha2 property instead. Thumbprint needs to be computed with SHA-256 algorithm.
|
|
20
|
-
* SHA-1 is only needed for backwards compatibility with older versions of ADFS.
|
|
21
|
-
*/
|
|
22
|
-
thumbprint?: string;
|
|
23
|
-
thumbprintSha256?: string;
|
|
24
|
-
privateKey: string;
|
|
25
|
-
x5c?: string;
|
|
26
|
-
};
|
|
27
|
-
knownAuthorities?: Array<string>;
|
|
28
|
-
cloudDiscoveryMetadata?: string;
|
|
29
|
-
authorityMetadata?: string;
|
|
30
|
-
clientCapabilities?: Array<string>;
|
|
31
|
-
azureCloudOptions?: AzureCloudOptions;
|
|
32
|
-
/**
|
|
33
|
-
* Flag on whether a resource parameter is required for token requests. Used for MCP flows.
|
|
34
|
-
*/
|
|
35
|
-
isMcp?: boolean;
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Use this to configure the below cache configuration options:
|
|
39
|
-
*
|
|
40
|
-
* - cachePlugin - Plugin for reading and writing token cache to disk.
|
|
41
|
-
* @public
|
|
42
|
-
*/
|
|
43
|
-
export type CacheOptions = {
|
|
44
|
-
cachePlugin?: ICachePlugin;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Use this to configure the below broker options:
|
|
48
|
-
* - nativeBrokerPlugin - Native broker implementation (should be imported from msal-node-extensions)
|
|
49
|
-
*
|
|
50
|
-
* Note: These options are only available for PublicClientApplications using the Authorization Code Flow
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
export type BrokerOptions = {
|
|
54
|
-
nativeBrokerPlugin?: INativeBrokerPlugin;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Type for configuring logger and http client options
|
|
58
|
-
*
|
|
59
|
-
* - logger - Used to initialize the Logger object; TODO: Expand on logger details or link to the documentation on logger
|
|
60
|
-
* - networkClient - Http client used for all http get and post calls. Defaults to using MSAL's default http client.
|
|
61
|
-
* - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints.
|
|
62
|
-
* @public
|
|
63
|
-
*/
|
|
64
|
-
export type NodeSystemOptions = {
|
|
65
|
-
loggerOptions?: LoggerOptions;
|
|
66
|
-
networkClient?: INetworkModule;
|
|
67
|
-
disableInternalRetries?: boolean;
|
|
68
|
-
protocolMode?: ProtocolMode;
|
|
69
|
-
};
|
|
70
|
-
/** @public */
|
|
71
|
-
export type NodeTelemetryOptions = {
|
|
72
|
-
application?: ApplicationTelemetry;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Use the configuration object to configure MSAL and initialize the client application object
|
|
76
|
-
*
|
|
77
|
-
* - auth: this is where you configure auth elements like clientID, authority used for authenticating against the Microsoft Identity Platform
|
|
78
|
-
* - broker: this is where you configure broker options
|
|
79
|
-
* - cache: this is where you configure cache location
|
|
80
|
-
* - system: this is where you can configure the network client, logger
|
|
81
|
-
* - telemetry: this is where you can configure telemetry options
|
|
82
|
-
* @public
|
|
83
|
-
*/
|
|
84
|
-
export type Configuration = {
|
|
85
|
-
auth: NodeAuthOptions;
|
|
86
|
-
broker?: BrokerOptions;
|
|
87
|
-
cache?: CacheOptions;
|
|
88
|
-
system?: NodeSystemOptions;
|
|
89
|
-
telemetry?: NodeTelemetryOptions;
|
|
90
|
-
};
|
|
91
|
-
/** @public */
|
|
92
|
-
export type ManagedIdentityIdParams = {
|
|
93
|
-
userAssignedClientId?: string;
|
|
94
|
-
userAssignedResourceId?: string;
|
|
95
|
-
userAssignedObjectId?: string;
|
|
96
|
-
};
|
|
97
|
-
/** @public */
|
|
98
|
-
export type ManagedIdentityConfiguration = {
|
|
99
|
-
clientCapabilities?: Array<string>;
|
|
100
|
-
managedIdentityIdParams?: ManagedIdentityIdParams;
|
|
101
|
-
system?: NodeSystemOptions;
|
|
102
|
-
};
|
|
103
|
-
/** @internal */
|
|
104
|
-
export type NodeConfiguration = {
|
|
105
|
-
auth: Required<NodeAuthOptions>;
|
|
106
|
-
broker: BrokerOptions;
|
|
107
|
-
cache: CacheOptions;
|
|
108
|
-
system: Required<NodeSystemOptions>;
|
|
109
|
-
telemetry: Required<NodeTelemetryOptions>;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Sets the default options when not explicitly configured from app developer
|
|
113
|
-
*
|
|
114
|
-
* @param auth - Authentication options
|
|
115
|
-
* @param cache - Cache options
|
|
116
|
-
* @param system - System options
|
|
117
|
-
* @param telemetry - Telemetry options
|
|
118
|
-
*
|
|
119
|
-
* @returns Configuration
|
|
120
|
-
* @internal
|
|
121
|
-
*/
|
|
122
|
-
export declare function buildAppConfiguration({ auth, broker, cache, system, telemetry, }: Configuration): NodeConfiguration;
|
|
123
|
-
/** @internal */
|
|
124
|
-
export type ManagedIdentityNodeConfiguration = {
|
|
125
|
-
clientCapabilities?: Array<string>;
|
|
126
|
-
disableInternalRetries: boolean;
|
|
127
|
-
managedIdentityId: ManagedIdentityId;
|
|
128
|
-
system: Required<Pick<NodeSystemOptions, "loggerOptions" | "networkClient">>;
|
|
129
|
-
};
|
|
130
|
-
export declare function buildManagedIdentityConfiguration({ clientCapabilities, managedIdentityIdParams, system, }: ManagedIdentityConfiguration): ManagedIdentityNodeConfiguration;
|
|
131
|
-
//# sourceMappingURL=Configuration.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../src/config/Configuration.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ManagedIdentityIdType } from "../utils/Constants.js";
|
|
2
|
-
import type { ManagedIdentityIdParams } from "./Configuration.js";
|
|
3
|
-
export declare class ManagedIdentityId {
|
|
4
|
-
private _id;
|
|
5
|
-
get id(): string;
|
|
6
|
-
private set id(value);
|
|
7
|
-
private _idType;
|
|
8
|
-
get idType(): ManagedIdentityIdType;
|
|
9
|
-
private set idType(value);
|
|
10
|
-
constructor(managedIdentityIdParams?: ManagedIdentityIdParams);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=ManagedIdentityId.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityId.d.ts","sourceRoot":"","sources":["../../../src/config/ManagedIdentityId.ts"],"names":[],"mappings":"AASA,OAAO,EAEH,qBAAqB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAElE,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,GAAG,CAAS;IACpB,IAAW,EAAE,IAAI,MAAM,CAEtB;IACD,OAAO,KAAK,EAAE,QAEb;IAED,OAAO,CAAC,OAAO,CAAwB;IACvC,IAAW,MAAM,IAAI,qBAAqB,CAEzC;IACD,OAAO,KAAK,MAAM,QAEjB;gBAEW,uBAAuB,CAAC,EAAE,uBAAuB;CAwChE"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HttpMethod, RetryPolicies } from "../utils/Constants.js";
|
|
2
|
-
export declare class ManagedIdentityRequestParameters {
|
|
3
|
-
private _baseEndpoint;
|
|
4
|
-
httpMethod: HttpMethod;
|
|
5
|
-
headers: Record<string, string>;
|
|
6
|
-
bodyParameters: Record<string, string>;
|
|
7
|
-
queryParameters: Record<string, string>;
|
|
8
|
-
retryPolicy: RetryPolicies;
|
|
9
|
-
constructor(httpMethod: HttpMethod, endpoint: string, retryPolicy?: RetryPolicies);
|
|
10
|
-
computeUri(): string;
|
|
11
|
-
computeParametersBodyString(): string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=ManagedIdentityRequestParameters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityRequestParameters.d.ts","sourceRoot":"","sources":["../../../src/config/ManagedIdentityRequestParameters.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAElE,qBAAa,gCAAgC;IACzC,OAAO,CAAC,aAAa,CAAS;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,WAAW,EAAE,aAAa,CAAC;gBAG9B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,aAAa;IAYxB,UAAU,IAAI,MAAM;IAkBpB,2BAA2B,IAAI,MAAM;CAY/C"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ICrypto, PkceCodes } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
|
|
4
|
-
* implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export declare class CryptoProvider implements ICrypto {
|
|
8
|
-
private pkceGenerator;
|
|
9
|
-
private guidGenerator;
|
|
10
|
-
private hashUtils;
|
|
11
|
-
constructor();
|
|
12
|
-
/**
|
|
13
|
-
* base64 URL safe encoded string
|
|
14
|
-
*/
|
|
15
|
-
base64UrlEncode(): string;
|
|
16
|
-
/**
|
|
17
|
-
* Stringifies and base64Url encodes input public key
|
|
18
|
-
* @param inputKid - public key id
|
|
19
|
-
* @returns Base64Url encoded public key
|
|
20
|
-
*/
|
|
21
|
-
encodeKid(): string;
|
|
22
|
-
/**
|
|
23
|
-
* Creates a new random GUID - used to populate state and nonce.
|
|
24
|
-
* @returns string (GUID)
|
|
25
|
-
*/
|
|
26
|
-
createNewGuid(): string;
|
|
27
|
-
/**
|
|
28
|
-
* Encodes input string to base64.
|
|
29
|
-
* @param input - string to be encoded
|
|
30
|
-
*/
|
|
31
|
-
base64Encode(input: string): string;
|
|
32
|
-
/**
|
|
33
|
-
* Decodes input string from base64.
|
|
34
|
-
* @param input - string to be decoded
|
|
35
|
-
*/
|
|
36
|
-
base64Decode(input: string): string;
|
|
37
|
-
/**
|
|
38
|
-
* Generates PKCE codes used in Authorization Code Flow.
|
|
39
|
-
*/
|
|
40
|
-
generatePkceCodes(): Promise<PkceCodes>;
|
|
41
|
-
/**
|
|
42
|
-
* Generates a keypair, stores it and returns a thumbprint - not yet implemented for node
|
|
43
|
-
*/
|
|
44
|
-
getPublicKeyThumbprint(): Promise<string>;
|
|
45
|
-
/**
|
|
46
|
-
* Removes cryptographic keypair from key store matching the keyId passed in
|
|
47
|
-
* @param kid - public key id
|
|
48
|
-
*/
|
|
49
|
-
removeTokenBindingKey(): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Removes all cryptographic keys from Keystore
|
|
52
|
-
*/
|
|
53
|
-
clearKeystore(): Promise<boolean>;
|
|
54
|
-
/**
|
|
55
|
-
* Signs the given object as a jwt payload with private key retrieved by given kid - currently not implemented for node
|
|
56
|
-
*/
|
|
57
|
-
signJwt(): Promise<string>;
|
|
58
|
-
/**
|
|
59
|
-
* Returns the SHA-256 hash of an input string
|
|
60
|
-
*/
|
|
61
|
-
hashString(plainText: string): Promise<string>;
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=CryptoProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoProvider.d.ts","sourceRoot":"","sources":["../../../src/crypto/CryptoProvider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAMxE;;;;GAIG;AACH,qBAAa,cAAe,YAAW,OAAO;IAC1C,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,SAAS,CAAY;;IAS7B;;OAEG;IACH,eAAe,IAAI,MAAM;IAGzB;;;;OAIG;IACH,SAAS,IAAI,MAAM;IAInB;;;OAGG;IACH,aAAa,IAAI,MAAM;IAIvB;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;;OAGG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAInC;;OAEG;IACH,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAIvC;;OAEG;IACH,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC;IAIzC;;;OAGG;IACH,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC,OAAO,CAAC;IAIjC;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAI1B;;OAEG;IACG,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAQvD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IGuidGenerator } from "@azure/msal-common/node";
|
|
2
|
-
export declare class GuidGenerator implements IGuidGenerator {
|
|
3
|
-
/**
|
|
4
|
-
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
|
|
5
|
-
* cryptographic pseudorandom number generator.
|
|
6
|
-
*/
|
|
7
|
-
generateGuid(): string;
|
|
8
|
-
/**
|
|
9
|
-
* verifies if a string is GUID
|
|
10
|
-
* @param guid
|
|
11
|
-
*/
|
|
12
|
-
isGuid(guid: string): boolean;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=GuidGenerator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GuidGenerator.d.ts","sourceRoot":"","sources":["../../../src/crypto/GuidGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAGzD,qBAAa,aAAc,YAAW,cAAc;IAChD;;;OAGG;IACH,YAAY,IAAI,MAAM;IAItB;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAKhC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
-
export declare class HashUtils {
|
|
4
|
-
/**
|
|
5
|
-
* generate 'SHA256' hash
|
|
6
|
-
* @param buffer
|
|
7
|
-
*/
|
|
8
|
-
sha256(buffer: string): Buffer;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=HashUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HashUtils.d.ts","sourceRoot":"","sources":["../../../src/crypto/HashUtils.ts"],"names":[],"mappings":";;AAQA,qBAAa,SAAS;IAClB;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;CAGjC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { PkceCodes } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* https://tools.ietf.org/html/rfc7636#page-8
|
|
4
|
-
*/
|
|
5
|
-
export declare class PkceGenerator {
|
|
6
|
-
private hashUtils;
|
|
7
|
-
constructor();
|
|
8
|
-
/**
|
|
9
|
-
* generates the codeVerfier and the challenge from the codeVerfier
|
|
10
|
-
* reference: https://tools.ietf.org/html/rfc7636#section-4.1 and https://tools.ietf.org/html/rfc7636#section-4.2
|
|
11
|
-
*/
|
|
12
|
-
generatePkceCodes(): Promise<PkceCodes>;
|
|
13
|
-
/**
|
|
14
|
-
* generates the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.1
|
|
15
|
-
*/
|
|
16
|
-
private generateCodeVerifier;
|
|
17
|
-
/**
|
|
18
|
-
* generate the challenge from the codeVerfier; reference: https://tools.ietf.org/html/rfc7636#section-4.2
|
|
19
|
-
* @param codeVerifier
|
|
20
|
-
*/
|
|
21
|
-
private generateCodeChallengeFromVerifier;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=PkceGenerator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PkceGenerator.d.ts","sourceRoot":"","sources":["../../../src/crypto/PkceGenerator.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAa,MAAM,yBAAyB,CAAC;AAM/D;;GAEG;AACH,qBAAa,aAAa;IACtB,OAAO,CAAC,SAAS,CAAY;;IAK7B;;;OAGG;IACG,iBAAiB,IAAI,OAAO,CAAC,SAAS,CAAC;IAM7C;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAmB5B;;;OAGG;IACH,OAAO,CAAC,iCAAiC;CAQ5C"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const missingTenantIdError = "missing_tenant_id_error";
|
|
2
|
-
export declare const userTimeoutReached = "user_timeout_reached";
|
|
3
|
-
export declare const invalidAssertion = "invalid_assertion";
|
|
4
|
-
export declare const invalidClientCredential = "invalid_client_credential";
|
|
5
|
-
export declare const deviceCodePollingCancelled = "device_code_polling_cancelled";
|
|
6
|
-
export declare const deviceCodeExpired = "device_code_expired";
|
|
7
|
-
export declare const deviceCodeUnknownError = "device_code_unknown_error";
|
|
8
|
-
//# sourceMappingURL=ClientAuthErrorCodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientAuthErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/ClientAuthErrorCodes.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AACpD,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,0BAA0B,kCAAkC,CAAC;AAC1E,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AACvD,eAAO,MAAM,sBAAsB,8BAA8B,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AuthError } from "@azure/msal-common/node";
|
|
2
|
-
import * as ManagedIdentityErrorCodes from "./ManagedIdentityErrorCodes.js";
|
|
3
|
-
export { ManagedIdentityErrorCodes };
|
|
4
|
-
/**
|
|
5
|
-
* ManagedIdentityErrorMessage class containing string constants used by error codes and messages.
|
|
6
|
-
*/
|
|
7
|
-
export declare const ManagedIdentityErrorMessages: {
|
|
8
|
-
invalid_file_extension: string;
|
|
9
|
-
invalid_file_path: string;
|
|
10
|
-
invalid_managed_identity_id_type: string;
|
|
11
|
-
invalid_secret: string;
|
|
12
|
-
platform_not_supported: string;
|
|
13
|
-
missing_client_id: string;
|
|
14
|
-
azure_pod_identity_authority_host_url_malformed: string;
|
|
15
|
-
identity_endpoint_url_malformed: string;
|
|
16
|
-
imds_endpoint_url_malformed: string;
|
|
17
|
-
msi_endpoint_url_malformed: string;
|
|
18
|
-
network_unavailable: string;
|
|
19
|
-
unable_to_create_azure_arc: string;
|
|
20
|
-
unable_to_create_cloud_shell: string;
|
|
21
|
-
unable_to_create_source: string;
|
|
22
|
-
unable_to_read_secret_file: string;
|
|
23
|
-
user_assigned_not_available_at_runtime: string;
|
|
24
|
-
www_authenticate_header_missing: string;
|
|
25
|
-
www_authenticate_header_unsupported_format: string;
|
|
26
|
-
};
|
|
27
|
-
export declare class ManagedIdentityError extends AuthError {
|
|
28
|
-
constructor(errorCode: string);
|
|
29
|
-
}
|
|
30
|
-
export declare function createManagedIdentityError(errorCode: string): ManagedIdentityError;
|
|
31
|
-
//# sourceMappingURL=ManagedIdentityError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityError.d.ts","sourceRoot":"","sources":["../../../src/error/ManagedIdentityError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,yBAAyB,MAAM,gCAAgC,CAAC;AAE5E,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;CAqCxC,CAAC;AAEF,qBAAa,oBAAqB,SAAQ,SAAS;gBACnC,SAAS,EAAE,MAAM;CAKhC;AAED,wBAAgB,0BAA0B,CACtC,SAAS,EAAE,MAAM,GAClB,oBAAoB,CAEtB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const invalidFileExtension = "invalid_file_extension";
|
|
2
|
-
export declare const invalidFilePath = "invalid_file_path";
|
|
3
|
-
export declare const invalidManagedIdentityIdType = "invalid_managed_identity_id_type";
|
|
4
|
-
export declare const invalidSecret = "invalid_secret";
|
|
5
|
-
export declare const missingId = "missing_client_id";
|
|
6
|
-
export declare const networkUnavailable = "network_unavailable";
|
|
7
|
-
export declare const platformNotSupported = "platform_not_supported";
|
|
8
|
-
export declare const unableToCreateAzureArc = "unable_to_create_azure_arc";
|
|
9
|
-
export declare const unableToCreateCloudShell = "unable_to_create_cloud_shell";
|
|
10
|
-
export declare const unableToCreateSource = "unable_to_create_source";
|
|
11
|
-
export declare const unableToReadSecretFile = "unable_to_read_secret_file";
|
|
12
|
-
export declare const urlParseError = "url_parse_error";
|
|
13
|
-
export declare const userAssignedNotAvailableAtRuntime = "user_assigned_not_available_at_runtime";
|
|
14
|
-
export declare const wwwAuthenticateHeaderMissing = "www_authenticate_header_missing";
|
|
15
|
-
export declare const wwwAuthenticateHeaderUnsupportedFormat = "www_authenticate_header_unsupported_format";
|
|
16
|
-
export declare const MsiEnvironmentVariableUrlMalformedErrorCodes: {
|
|
17
|
-
readonly AZURE_POD_IDENTITY_AUTHORITY_HOST: "azure_pod_identity_authority_host_url_malformed";
|
|
18
|
-
readonly IDENTITY_ENDPOINT: "identity_endpoint_url_malformed";
|
|
19
|
-
readonly IMDS_ENDPOINT: "imds_endpoint_url_malformed";
|
|
20
|
-
readonly MSI_ENDPOINT: "msi_endpoint_url_malformed";
|
|
21
|
-
};
|
|
22
|
-
export type MsiEnvironmentVariableErrorCodes = (typeof MsiEnvironmentVariableUrlMalformedErrorCodes)[keyof typeof MsiEnvironmentVariableUrlMalformedErrorCodes];
|
|
23
|
-
//# sourceMappingURL=ManagedIdentityErrorCodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityErrorCodes.d.ts","sourceRoot":"","sources":["../../../src/error/ManagedIdentityErrorCodes.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,eAAe,sBAAsB,CAAC;AACnD,eAAO,MAAM,4BAA4B,qCAAqC,CAAC;AAC/E,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,SAAS,sBAAsB,CAAC;AAC7C,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAC/C,eAAO,MAAM,iCAAiC,2CACF,CAAC;AAC7C,eAAO,MAAM,4BAA4B,oCAAoC,CAAC;AAC9E,eAAO,MAAM,sCAAsC,+CACH,CAAC;AAEjD,eAAO,MAAM,4CAA4C;;;;;CAS/C,CAAC;AACX,MAAM,MAAM,gCAAgC,GACxC,CAAC,OAAO,4CAA4C,CAAC,CAAC,MAAM,OAAO,4CAA4C,CAAC,CAAC"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { AuthError } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
4
|
-
*/
|
|
5
|
-
export declare const NodeAuthErrorMessage: {
|
|
6
|
-
invalidLoopbackAddressType: {
|
|
7
|
-
code: string;
|
|
8
|
-
desc: string;
|
|
9
|
-
};
|
|
10
|
-
unableToLoadRedirectUri: {
|
|
11
|
-
code: string;
|
|
12
|
-
desc: string;
|
|
13
|
-
};
|
|
14
|
-
noAuthCodeInResponse: {
|
|
15
|
-
code: string;
|
|
16
|
-
desc: string;
|
|
17
|
-
};
|
|
18
|
-
noLoopbackServerExists: {
|
|
19
|
-
code: string;
|
|
20
|
-
desc: string;
|
|
21
|
-
};
|
|
22
|
-
loopbackServerAlreadyExists: {
|
|
23
|
-
code: string;
|
|
24
|
-
desc: string;
|
|
25
|
-
};
|
|
26
|
-
loopbackServerTimeout: {
|
|
27
|
-
code: string;
|
|
28
|
-
desc: string;
|
|
29
|
-
};
|
|
30
|
-
stateNotFoundError: {
|
|
31
|
-
code: string;
|
|
32
|
-
desc: string;
|
|
33
|
-
};
|
|
34
|
-
thumbprintMissing: {
|
|
35
|
-
code: string;
|
|
36
|
-
desc: string;
|
|
37
|
-
};
|
|
38
|
-
redirectUriNotSupported: {
|
|
39
|
-
code: string;
|
|
40
|
-
desc: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export declare class NodeAuthError extends AuthError {
|
|
44
|
-
constructor(errorCode: string, errorMessage?: string);
|
|
45
|
-
/**
|
|
46
|
-
* Creates an error thrown if loopback server address is of type string.
|
|
47
|
-
*/
|
|
48
|
-
static createInvalidLoopbackAddressTypeError(): NodeAuthError;
|
|
49
|
-
/**
|
|
50
|
-
* Creates an error thrown if the loopback server is unable to get a url.
|
|
51
|
-
*/
|
|
52
|
-
static createUnableToLoadRedirectUrlError(): NodeAuthError;
|
|
53
|
-
/**
|
|
54
|
-
* Creates an error thrown if the server response does not contain an auth code.
|
|
55
|
-
*/
|
|
56
|
-
static createNoAuthCodeInResponseError(): NodeAuthError;
|
|
57
|
-
/**
|
|
58
|
-
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
59
|
-
*/
|
|
60
|
-
static createNoLoopbackServerExistsError(): NodeAuthError;
|
|
61
|
-
/**
|
|
62
|
-
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
63
|
-
*/
|
|
64
|
-
static createLoopbackServerAlreadyExistsError(): NodeAuthError;
|
|
65
|
-
/**
|
|
66
|
-
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
67
|
-
*/
|
|
68
|
-
static createLoopbackServerTimeoutError(): NodeAuthError;
|
|
69
|
-
/**
|
|
70
|
-
* Creates an error thrown when the state is not present.
|
|
71
|
-
*/
|
|
72
|
-
static createStateNotFoundError(): NodeAuthError;
|
|
73
|
-
/**
|
|
74
|
-
* Creates an error thrown when client certificate was provided, but neither the SHA-1 or SHA-256 thumbprints were provided
|
|
75
|
-
*/
|
|
76
|
-
static createThumbprintMissingError(): NodeAuthError;
|
|
77
|
-
/**
|
|
78
|
-
* Creates an error thrown when redirectUri is provided in an unsupported scenario
|
|
79
|
-
*/
|
|
80
|
-
static createRedirectUriNotSupportedError(): NodeAuthError;
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=NodeAuthError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeAuthError.d.ts","sourceRoot":"","sources":["../../../src/error/NodeAuthError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqChC,CAAC;AAEF,qBAAa,aAAc,SAAQ,SAAS;gBAC5B,SAAS,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;IAKpD;;OAEG;IACH,MAAM,CAAC,qCAAqC,IAAI,aAAa;IAO7D;;OAEG;IACH,MAAM,CAAC,kCAAkC,IAAI,aAAa;IAO1D;;OAEG;IACH,MAAM,CAAC,+BAA+B,IAAI,aAAa;IAOvD;;OAEG;IACH,MAAM,CAAC,iCAAiC,IAAI,aAAa;IAOzD;;OAEG;IACH,MAAM,CAAC,sCAAsC,IAAI,aAAa;IAO9D;;OAEG;IACH,MAAM,CAAC,gCAAgC,IAAI,aAAa;IAOxD;;OAEG;IACH,MAAM,CAAC,wBAAwB,IAAI,aAAa;IAOhD;;OAEG;IACH,MAAM,CAAC,4BAA4B,IAAI,aAAa;IAOpD;;OAEG;IACH,MAAM,CAAC,kCAAkC,IAAI,aAAa;CAM7D"}
|
package/lib/types/index.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @packageDocumentation
|
|
3
|
-
* @module @azure/msal-node
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
|
|
7
|
-
* Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
|
|
8
|
-
*/
|
|
9
|
-
import * as internals from "./internals.js";
|
|
10
|
-
export { internals };
|
|
11
|
-
export { IPublicClientApplication } from "./client/IPublicClientApplication.js";
|
|
12
|
-
export { IConfidentialClientApplication } from "./client/IConfidentialClientApplication.js";
|
|
13
|
-
export { ITokenCache } from "./cache/ITokenCache.js";
|
|
14
|
-
export { ICacheClient } from "./cache/distributed/ICacheClient.js";
|
|
15
|
-
export { IPartitionManager } from "./cache/distributed/IPartitionManager.js";
|
|
16
|
-
export { ILoopbackClient } from "./network/ILoopbackClient.js";
|
|
17
|
-
export { PublicClientApplication } from "./client/PublicClientApplication.js";
|
|
18
|
-
export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication.js";
|
|
19
|
-
export { ManagedIdentityApplication } from "./client/ManagedIdentityApplication.js";
|
|
20
|
-
export { Configuration, ManagedIdentityConfiguration, ManagedIdentityIdParams, NodeAuthOptions, NodeSystemOptions, BrokerOptions, NodeTelemetryOptions, CacheOptions, } from "./config/Configuration.js";
|
|
21
|
-
export { ClientAssertion } from "./client/ClientAssertion.js";
|
|
22
|
-
export { TokenCache } from "./cache/TokenCache.js";
|
|
23
|
-
export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes.js";
|
|
24
|
-
export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin.js";
|
|
25
|
-
export { ManagedIdentitySourceNames } from "./utils/Constants.js";
|
|
26
|
-
export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js";
|
|
27
|
-
export type { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js";
|
|
28
|
-
export type { ClientCredentialRequest } from "./request/ClientCredentialRequest.js";
|
|
29
|
-
export type { DeviceCodeRequest } from "./request/DeviceCodeRequest.js";
|
|
30
|
-
export type { OnBehalfOfRequest } from "./request/OnBehalfOfRequest.js";
|
|
31
|
-
export type { UsernamePasswordRequest } from "./request/UsernamePasswordRequest.js";
|
|
32
|
-
export type { RefreshTokenRequest } from "./request/RefreshTokenRequest.js";
|
|
33
|
-
export type { SilentFlowRequest } from "./request/SilentFlowRequest.js";
|
|
34
|
-
export type { InteractiveRequest } from "./request/InteractiveRequest.js";
|
|
35
|
-
export type { SignOutRequest } from "./request/SignOutRequest.js";
|
|
36
|
-
export type { ManagedIdentityRequestParams } from "./request/ManagedIdentityRequestParams.js";
|
|
37
|
-
declare const PromptValue: {
|
|
38
|
-
LOGIN: string;
|
|
39
|
-
SELECT_ACCOUNT: string;
|
|
40
|
-
CONSENT: string;
|
|
41
|
-
NONE: string;
|
|
42
|
-
CREATE: string;
|
|
43
|
-
NO_SESSION: string;
|
|
44
|
-
};
|
|
45
|
-
declare const ResponseMode: {
|
|
46
|
-
readonly QUERY: "query";
|
|
47
|
-
readonly FRAGMENT: "fragment";
|
|
48
|
-
readonly FORM_POST: "form_post";
|
|
49
|
-
};
|
|
50
|
-
export { PromptValue, ResponseMode };
|
|
51
|
-
export { CryptoProvider } from "./crypto/CryptoProvider.js";
|
|
52
|
-
export { AuthorizationCodePayload, AuthenticationResult, AuthorizeResponse, IdTokenClaims, AccountInfo, ValidCacheType, AuthError, AuthErrorCodes, ClientAuthError, ClientAuthErrorCodes, ClientConfigurationError, ClientConfigurationErrorCodes, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, ServerError, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache, AzureCloudInstance, AzureCloudOptions, IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, INativeBrokerPlugin, ClientAssertionCallback, } from "@azure/msal-common/node";
|
|
53
|
-
export { version } from "./packageMetadata.js";
|
|
54
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/types/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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"}
|
package/lib/types/internals.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
|
|
3
|
-
* Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
|
|
4
|
-
*/
|
|
5
|
-
export { Serializer } from "./cache/serializer/Serializer.js";
|
|
6
|
-
export { Deserializer } from "./cache/serializer/Deserializer.js";
|
|
7
|
-
//# sourceMappingURL=internals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"internals.d.ts","sourceRoot":"","sources":["../../src/internals.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* HTTP client implementation using Node.js native fetch API.
|
|
4
|
-
*
|
|
5
|
-
* This class provides a clean interface for making HTTP requests using the modern
|
|
6
|
-
* fetch API available in Node.js 18+. It replaces the previous implementation that
|
|
7
|
-
* relied on custom proxy handling and the legacy http/https modules.
|
|
8
|
-
*/
|
|
9
|
-
export declare class HttpClient implements INetworkModule {
|
|
10
|
-
/**
|
|
11
|
-
* Sends an HTTP GET request to the specified URL.
|
|
12
|
-
*
|
|
13
|
-
* This method handles GET requests with optional timeout support. The timeout
|
|
14
|
-
* is implemented using AbortController, which provides a clean way to cancel
|
|
15
|
-
* fetch requests that take too long to complete.
|
|
16
|
-
*
|
|
17
|
-
* @param url - The target URL for the GET request
|
|
18
|
-
* @param options - Optional request configuration including headers
|
|
19
|
-
* @param timeout - Optional timeout in milliseconds. If specified, the request
|
|
20
|
-
* will be aborted if it doesn't complete within this time
|
|
21
|
-
* @returns Promise that resolves to a NetworkResponse containing headers, body, and status
|
|
22
|
-
* @throws {AuthError} When the request times out or response parsing fails
|
|
23
|
-
* @throws {NetworkError} When the network request fails
|
|
24
|
-
*/
|
|
25
|
-
sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions, timeout?: number): Promise<NetworkResponse<T>>;
|
|
26
|
-
/**
|
|
27
|
-
* Sends an HTTP POST request to the specified URL.
|
|
28
|
-
*
|
|
29
|
-
* This method handles POST requests with request body support. Currently,
|
|
30
|
-
* timeout functionality is not exposed for POST requests, but the underlying
|
|
31
|
-
* implementation supports it through the shared sendRequest method.
|
|
32
|
-
*
|
|
33
|
-
* @param url - The target URL for the POST request
|
|
34
|
-
* @param options - Optional request configuration including headers and body
|
|
35
|
-
* @returns Promise that resolves to a NetworkResponse containing headers, body, and status
|
|
36
|
-
* @throws {AuthError} When the request times out or response parsing fails
|
|
37
|
-
* @throws {NetworkError} When the network request fails
|
|
38
|
-
*/
|
|
39
|
-
sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
|
|
40
|
-
/**
|
|
41
|
-
* Core HTTP request implementation using native fetch API.
|
|
42
|
-
*
|
|
43
|
-
* This method handles GET and POST HTTP requests with comprehensive
|
|
44
|
-
* timeout support and error handling. The timeout mechanism works as follows:
|
|
45
|
-
*
|
|
46
|
-
* 1. An AbortController is created for each request
|
|
47
|
-
* 2. If a timeout is specified, setTimeout is used to call abort() after the delay
|
|
48
|
-
* 3. The abort signal is passed to fetch, which will reject the promise if aborted
|
|
49
|
-
* 4. Cleanup occurs in both success and error cases to prevent timer leaks
|
|
50
|
-
*
|
|
51
|
-
* Error handling priority:
|
|
52
|
-
* 1. Timeout errors (AbortError) are converted to "Request timeout" messages
|
|
53
|
-
* 2. Network/connection errors are wrapped with "Network request failed" prefix
|
|
54
|
-
* 3. JSON parsing errors are wrapped with "Failed to parse response" prefix
|
|
55
|
-
*
|
|
56
|
-
* @param url - The target URL for the request
|
|
57
|
-
* @param method - HTTP method (GET or POST)
|
|
58
|
-
* @param options - Optional request configuration (headers, body)
|
|
59
|
-
* @param timeout - Optional timeout in milliseconds for request cancellation
|
|
60
|
-
* @returns Promise resolving to NetworkResponse with parsed JSON body
|
|
61
|
-
* @throws {AuthError} For timeouts or JSON parsing errors
|
|
62
|
-
* @throws {NetworkError} For network failures
|
|
63
|
-
*/
|
|
64
|
-
private sendRequest;
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=HttpClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HttpClient.d.ts","sourceRoot":"","sources":["../../../src/network/HttpClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAGH,cAAc,EACd,qBAAqB,EACrB,eAAe,EAGlB,MAAM,yBAAyB,CAAC;AAGjC;;;;;;GAMG;AACH,qBAAa,UAAW,YAAW,cAAc;IAC7C;;;;;;;;;;;;;;OAcG;IACG,mBAAmB,CAAC,CAAC,EACvB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,EAC/B,OAAO,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAI9B;;;;;;;;;;;;OAYG;IACG,oBAAoB,CAAC,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAI9B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;YACW,WAAW;CAoF5B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { INetworkModule, Logger, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common/node";
|
|
2
|
-
import { IHttpRetryPolicy } from "../retry/IHttpRetryPolicy.js";
|
|
3
|
-
export declare class HttpClientWithRetries implements INetworkModule {
|
|
4
|
-
private httpClientNoRetries;
|
|
5
|
-
private retryPolicy;
|
|
6
|
-
private logger;
|
|
7
|
-
constructor(httpClientNoRetries: INetworkModule, retryPolicy: IHttpRetryPolicy, logger: Logger);
|
|
8
|
-
private sendNetworkRequestAsyncHelper;
|
|
9
|
-
private sendNetworkRequestAsync;
|
|
10
|
-
sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
|
|
11
|
-
sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=HttpClientWithRetries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HttpClientWithRetries.d.ts","sourceRoot":"","sources":["../../../src/network/HttpClientWithRetries.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,eAAe,EAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGhE,qBAAa,qBAAsB,YAAW,cAAc;IACxD,OAAO,CAAC,mBAAmB,CAAiB;IAC5C,OAAO,CAAC,WAAW,CAAmB;IACtC,OAAO,CAAC,MAAM,CAAS;gBAGnB,mBAAmB,EAAE,cAAc,EACnC,WAAW,EAAE,gBAAgB,EAC7B,MAAM,EAAE,MAAM;YAOJ,6BAA6B;YAY7B,uBAAuB;IAiCxB,mBAAmB,CAAC,CAAC,EAC9B,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAIjB,oBAAoB,CAAC,CAAC,EAC/B,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,qBAAqB,GAChC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAGjC"}
|