@azure/msal-node 5.1.5 → 5.2.1
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 +228 -66
- 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,11 +0,0 @@
|
|
|
1
|
-
import { AuthorizeResponse } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* Interface for LoopbackClient allowing to replace the default loopback server with a custom implementation.
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface ILoopbackClient {
|
|
7
|
-
listenForAuthCode(successTemplate?: string, errorTemplate?: string): Promise<AuthorizeResponse>;
|
|
8
|
-
getRedirectUri(): string;
|
|
9
|
-
closeServer(): void;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=ILoopbackClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ILoopbackClient.d.ts","sourceRoot":"","sources":["../../../src/network/ILoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,iBAAiB,CACb,eAAe,CAAC,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC9B,cAAc,IAAI,MAAM,CAAC;IACzB,WAAW,IAAI,IAAI,CAAC;CACvB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AuthorizeResponse } from "@azure/msal-common/node";
|
|
2
|
-
import { ILoopbackClient } from "./ILoopbackClient.js";
|
|
3
|
-
export declare class LoopbackClient implements ILoopbackClient {
|
|
4
|
-
private server;
|
|
5
|
-
/**
|
|
6
|
-
* Spins up a loopback server which returns the server response when the localhost redirectUri is hit
|
|
7
|
-
* @param successTemplate
|
|
8
|
-
* @param errorTemplate
|
|
9
|
-
* @returns
|
|
10
|
-
*/
|
|
11
|
-
listenForAuthCode(successTemplate?: string, errorTemplate?: string): Promise<AuthorizeResponse>;
|
|
12
|
-
/**
|
|
13
|
-
* Get the port that the loopback server is running on
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
getRedirectUri(): string;
|
|
17
|
-
/**
|
|
18
|
-
* Close the loopback server
|
|
19
|
-
*/
|
|
20
|
-
closeServer(): void;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=LoopbackClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoopbackClient.d.ts","sourceRoot":"","sources":["../../../src/network/LoopbackClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,iBAAiB,EAGpB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,qBAAa,cAAe,YAAW,eAAe;IAClD,OAAO,CAAC,MAAM,CAA0B;IAExC;;;;;OAKG;IACG,iBAAiB,CACnB,eAAe,CAAC,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,iBAAiB,CAAC;IAkD7B;;;OAGG;IACH,cAAc,IAAI,MAAM;IAgBxB;;OAEG;IACH,WAAW,IAAI,IAAI;CAetB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"packageMetadata.d.ts","sourceRoot":"","sources":["../../src/packageMetadata.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,qBAAqB,CAAC;AACvC,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Authority, CommonAuthorizationUrlRequest, Logger } from "@azure/msal-common/node";
|
|
2
|
-
import { NodeConfiguration } from "../config/Configuration.js";
|
|
3
|
-
/**
|
|
4
|
-
* Constructs the full /authorize URL with request parameters
|
|
5
|
-
* @param config
|
|
6
|
-
* @param authority
|
|
7
|
-
* @param request
|
|
8
|
-
* @param logger
|
|
9
|
-
* @returns
|
|
10
|
-
*/
|
|
11
|
-
export declare function getAuthCodeRequestUrl(config: NodeConfiguration, authority: Authority, request: CommonAuthorizationUrlRequest, logger: Logger): string;
|
|
12
|
-
//# sourceMappingURL=Authorize.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Authorize.d.ts","sourceRoot":"","sources":["../../../src/protocol/Authorize.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EAET,6BAA6B,EAC7B,MAAM,EAIT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAI/D;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACjC,MAAM,EAAE,iBAAiB,EACzB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,6BAA6B,EACtC,MAAM,EAAE,MAAM,GACf,MAAM,CAwCR"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CommonAuthorizationCodeRequest } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export type AuthorizationCodeRequest = Partial<Omit<CommonAuthorizationCodeRequest, "scopes" | "redirectUri" | "code" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
|
|
7
|
-
/**
|
|
8
|
-
* Array of scopes the application is requesting access to.
|
|
9
|
-
*/
|
|
10
|
-
scopes: Array<string>;
|
|
11
|
-
/**
|
|
12
|
-
* The redirect URI of your app, where the authority will redirect to after the user inputs credentials and consents. It must exactly match one of the redirect URIs you registered in the portal.
|
|
13
|
-
*/
|
|
14
|
-
redirectUri: string;
|
|
15
|
-
/**
|
|
16
|
-
* The authorization_code that the user acquired in the first leg of the flow.
|
|
17
|
-
*/
|
|
18
|
-
code: string;
|
|
19
|
-
/**
|
|
20
|
-
* Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow. This string is sent back by the server with the authorization code. The user cached state is then compared with the state received from the server to mitigate the risk of CSRF attacks. See https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
|
|
21
|
-
*/
|
|
22
|
-
state?: string;
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=AuthorizationCodeRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC1C,IAAI,CACA,8BAA8B,EAC5B,QAAQ,GACR,aAAa,GACb,MAAM,GACN,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export type AuthorizationUrlRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "redirectUri" | "resourceRequestMethod" | "resourceRequestUri" | "authenticationScheme" | "storeInCache">> & {
|
|
7
|
-
/**
|
|
8
|
-
* Array of scopes the application is requesting access to.
|
|
9
|
-
*/
|
|
10
|
-
scopes: Array<string>;
|
|
11
|
-
/**
|
|
12
|
-
* 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
|
-
*/
|
|
14
|
-
redirectUri: string;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=AuthorizationUrlRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationUrlRequest.d.ts","sourceRoot":"","sources":["../../../src/request/AuthorizationUrlRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,aAAa,GACb,uBAAuB,GACvB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ClientAssertionCallback } from "@azure/msal-common/node";
|
|
2
|
-
import { CommonClientCredentialRequest } from "./CommonClientCredentialRequest.js";
|
|
3
|
-
/**
|
|
4
|
-
* ClientCredentialRequest
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export type ClientCredentialRequest = Partial<Omit<CommonClientCredentialRequest, "resourceRequestMethod" | "resourceRequestUri" | "clientAssertion" | "storeInCache">> & {
|
|
8
|
-
/**
|
|
9
|
-
* An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow
|
|
10
|
-
*/
|
|
11
|
-
clientAssertion?: string | ClientAssertionCallback;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=ClientCredentialRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../../src/request/ClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,uBAAuB,GACvB,oBAAoB,GACpB,iBAAiB,GACjB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC;CACtD,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseAuthRequest, AzureRegion, ClientAssertion } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* CommonClientCredentialRequest
|
|
4
|
-
*/
|
|
5
|
-
export type CommonClientCredentialRequest = Omit<BaseAuthRequest, "extraQueryParameters" | "extraParameters"> & {
|
|
6
|
-
/**
|
|
7
|
-
* Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
8
|
-
*/
|
|
9
|
-
skipCache?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Azure region to be used for regional authentication.
|
|
12
|
-
*/
|
|
13
|
-
azureRegion?: AzureRegion;
|
|
14
|
-
/**
|
|
15
|
-
* An assertion string or a callback function that returns an assertion string (both are Base64Url-encoded signed JWTs) used in the Client Credential flow.
|
|
16
|
-
*/
|
|
17
|
-
clientAssertion?: ClientAssertion;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=CommonClientCredentialRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommonClientCredentialRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonClientCredentialRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EACf,WAAW,EACX,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC5C,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;CACrC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DeviceCodeResponse, StringDict, BaseAuthRequest } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* Parameters for Oauth2 device code flow.
|
|
4
|
-
*/
|
|
5
|
-
export type CommonDeviceCodeRequest = BaseAuthRequest & {
|
|
6
|
-
/**
|
|
7
|
-
* 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.
|
|
8
|
-
*/
|
|
9
|
-
deviceCodeCallback: (response: DeviceCodeResponse) => void;
|
|
10
|
-
/**
|
|
11
|
-
* 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.
|
|
12
|
-
*/
|
|
13
|
-
cancel?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* 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.
|
|
16
|
-
*/
|
|
17
|
-
timeout?: number;
|
|
18
|
-
/**
|
|
19
|
-
* String to string map of custom query parameters added to outgoing token service requests.
|
|
20
|
-
*/
|
|
21
|
-
extraQueryParameters?: StringDict;
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=CommonDeviceCodeRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommonDeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonDeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,kBAAkB,EAClB,UAAU,EACV,eAAe,EAClB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,eAAe,GAAG;IACpD;;OAEG;IACH,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACrC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseAuthRequest } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* CommonOnBehalfOfRequest
|
|
4
|
-
*/
|
|
5
|
-
export type CommonOnBehalfOfRequest = Omit<BaseAuthRequest, "extraQueryParameters" | "extraParameters"> & {
|
|
6
|
-
/**
|
|
7
|
-
* The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
|
|
8
|
-
*/
|
|
9
|
-
oboAssertion: string;
|
|
10
|
-
/**
|
|
11
|
-
* Skip token cache lookup and force request to authority to get a a new token. Defaults to false.
|
|
12
|
-
*/
|
|
13
|
-
skipCache?: boolean;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=CommonOnBehalfOfRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommonOnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonOnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACtC,eAAe,EACf,sBAAsB,GAAG,iBAAiB,CAC7C,GAAG;IACA;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseAuthRequest } from "@azure/msal-common/node";
|
|
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
|
-
export type CommonUsernamePasswordRequest = BaseAuthRequest & {
|
|
7
|
-
/**
|
|
8
|
-
* Username of the client
|
|
9
|
-
*/
|
|
10
|
-
username: string;
|
|
11
|
-
/**
|
|
12
|
-
* Credentials
|
|
13
|
-
*/
|
|
14
|
-
password: string;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=CommonUsernamePasswordRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommonUsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../../src/request/CommonUsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG,eAAe,GAAG;IAC1D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DeviceCodeResponse } from "@azure/msal-common/node";
|
|
2
|
-
import { CommonDeviceCodeRequest } from "./CommonDeviceCodeRequest.js";
|
|
3
|
-
/**
|
|
4
|
-
* Parameters for Oauth2 device code flow.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export type DeviceCodeRequest = Partial<Omit<CommonDeviceCodeRequest, "scopes" | "deviceCodeCallback" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
|
|
8
|
-
/**
|
|
9
|
-
* Array of scopes the application is requesting access to.
|
|
10
|
-
*/
|
|
11
|
-
scopes: Array<string>;
|
|
12
|
-
/**
|
|
13
|
-
* 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.
|
|
14
|
-
*/
|
|
15
|
-
deviceCodeCallback: (response: DeviceCodeResponse) => void;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=DeviceCodeRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceCodeRequest.d.ts","sourceRoot":"","sources":["../../../src/request/DeviceCodeRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,QAAQ,GACR,oBAAoB,GACpB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,IAAI,CAAC;CAC9D,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
-
import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
|
|
4
|
-
import { ILoopbackClient } from "../network/ILoopbackClient.js";
|
|
5
|
-
/**
|
|
6
|
-
* Request object passed by user to configure acquireTokenInteractive API
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export type InteractiveRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "storeInCache">> & {
|
|
10
|
-
/**
|
|
11
|
-
* Function to open a browser instance on user's system.
|
|
12
|
-
*/
|
|
13
|
-
openBrowser: (url: string) => Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Array of scopes the application is requesting access to.
|
|
16
|
-
*/
|
|
17
|
-
scopes?: Array<string>;
|
|
18
|
-
/**
|
|
19
|
-
* Template to be displayed on the opened browser instance upon successful token acquisition.
|
|
20
|
-
*/
|
|
21
|
-
successTemplate?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Template to be displayed on the opened browser instance upon token acquisition failure.
|
|
24
|
-
*/
|
|
25
|
-
errorTemplate?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Used in native broker flows to properly parent the native broker window
|
|
28
|
-
*/
|
|
29
|
-
windowHandle?: Buffer;
|
|
30
|
-
/**
|
|
31
|
-
* Custom implementation for a loopback server to listen for authorization code response.
|
|
32
|
-
*/
|
|
33
|
-
loopbackClient?: ILoopbackClient;
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=InteractiveRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InteractiveRequest.d.ts","sourceRoot":"","sources":["../../../src/request/InteractiveRequest.ts"],"names":[],"mappings":";;AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,CACpC,IAAI,CAAC,6BAA6B,EAAE,QAAQ,GAAG,cAAc,CAAC,CACjE,GAAG;IACA;;OAEG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,cAAc,CAAC,EAAE,eAAe,CAAC;CACpC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CommonClientCredentialRequest } from "./CommonClientCredentialRequest.js";
|
|
2
|
-
import { ManagedIdentityRequestParams } from "./ManagedIdentityRequestParams.js";
|
|
3
|
-
/**
|
|
4
|
-
* ManagedIdentityRequest
|
|
5
|
-
*/
|
|
6
|
-
export type ManagedIdentityRequest = ManagedIdentityRequestParams & CommonClientCredentialRequest & {
|
|
7
|
-
/**
|
|
8
|
-
* An array of capabilities to be added to all network requests as part of the `xms_cc` claim
|
|
9
|
-
*/
|
|
10
|
-
clientCapabilities?: Array<string>;
|
|
11
|
-
/**
|
|
12
|
-
* A SHA256 hash of the token that was revoked. The managed identity will revoke the token based on the SHA256 hash of the token, not the token itself. This is to prevent the token from being leaked in transit.
|
|
13
|
-
*/
|
|
14
|
-
revokedTokenSha256Hash?: string;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=ManagedIdentityRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityRequest.d.ts","sourceRoot":"","sources":["../../../src/request/ManagedIdentityRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,GAC7D,6BAA6B,GAAG;IAC5B;;OAEG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ManagedIdentityRequest
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
export type ManagedIdentityRequestParams = {
|
|
6
|
-
/**
|
|
7
|
-
* A stringified claims request which will be used to determine whether or not the cache should be skipped
|
|
8
|
-
*/
|
|
9
|
-
claims?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Forces managed identity requests to skip the cache and make network calls if true
|
|
12
|
-
*/
|
|
13
|
-
forceRefresh?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Resource requested to access the protected API. It should be of the form "ResourceIdUri" or "ResourceIdUri/.default". For instance https://management.azure.net or, for Microsoft Graph, https://graph.microsoft.com/.default
|
|
16
|
-
*/
|
|
17
|
-
resource: string;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=ManagedIdentityRequestParams.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityRequestParams.d.ts","sourceRoot":"","sources":["../../../src/request/ManagedIdentityRequestParams.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CommonOnBehalfOfRequest } from "./CommonOnBehalfOfRequest.js";
|
|
2
|
-
/**
|
|
3
|
-
* OnBehalfOfRequest
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export type OnBehalfOfRequest = Partial<Omit<CommonOnBehalfOfRequest, "oboAssertion" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
|
|
7
|
-
/**
|
|
8
|
-
* The access token that was sent to the middle-tier API. This token must have an audience of the app making this OBO request.
|
|
9
|
-
*/
|
|
10
|
-
oboAssertion: string;
|
|
11
|
-
/**
|
|
12
|
-
* Array of scopes the application is requesting access to.
|
|
13
|
-
*/
|
|
14
|
-
scopes: Array<string>;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=OnBehalfOfRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OnBehalfOfRequest.d.ts","sourceRoot":"","sources":["../../../src/request/OnBehalfOfRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CACA,uBAAuB,EACrB,cAAc,GACd,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CommonRefreshTokenRequest } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* CommonRefreshTokenRequest
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export type RefreshTokenRequest = Partial<Omit<CommonRefreshTokenRequest, "scopes" | "refreshToken" | "authenticationScheme" | "resourceRequestMethod" | "resourceRequestUri" | "storeInCache">> & {
|
|
7
|
-
/**
|
|
8
|
-
* Array of scopes the application is requesting access to.
|
|
9
|
-
*/
|
|
10
|
-
scopes: Array<string>;
|
|
11
|
-
/**
|
|
12
|
-
* A refresh token returned from a previous request to the Identity provider.
|
|
13
|
-
*/
|
|
14
|
-
refreshToken: string;
|
|
15
|
-
/**
|
|
16
|
-
* Force MSAL to cache a refresh token flow response when there is no account in the cache. Used for migration scenarios.
|
|
17
|
-
*/
|
|
18
|
-
forceCache?: boolean;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=RefreshTokenRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RefreshTokenRequest.d.ts","sourceRoot":"","sources":["../../../src/request/RefreshTokenRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CACrC,IAAI,CACA,yBAAyB,EACvB,QAAQ,GACR,cAAc,GACd,sBAAsB,GACtB,uBAAuB,GACvB,oBAAoB,GACpB,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SignOutRequest.d.ts","sourceRoot":"","sources":["../../../src/request/SignOutRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,cAAc;AACd,MAAM,MAAM,cAAc,GAAG;IACzB,OAAO,EAAE,WAAW,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* SilentFlow parameters passed by the user to retrieve credentials silently
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "storeInCache">> & {
|
|
7
|
-
/**
|
|
8
|
-
* Account entity to lookup the credentials.
|
|
9
|
-
*/
|
|
10
|
-
account: AccountInfo;
|
|
11
|
-
/**
|
|
12
|
-
* Array of scopes the application is requesting access to.
|
|
13
|
-
*/
|
|
14
|
-
scopes: Array<string>;
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=SilentFlowRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SilentFlowRequest.d.ts","sourceRoot":"","sources":["../../../src/request/SilentFlowRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAE/E;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACnC,IAAI,CAAC,uBAAuB,EAAE,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC,CACvE,GAAG;IACA;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CommonUsernamePasswordRequest } from "./CommonUsernamePasswordRequest.js";
|
|
2
|
-
/**
|
|
3
|
-
* UsernamePassword 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
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
export type UsernamePasswordRequest = Partial<Omit<CommonUsernamePasswordRequest, "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "username" | "password" | "storeInCache">> & {
|
|
8
|
-
/**
|
|
9
|
-
* Array of scopes the application is requesting access to.
|
|
10
|
-
*/
|
|
11
|
-
scopes: Array<string>;
|
|
12
|
-
/**
|
|
13
|
-
* Username of the client
|
|
14
|
-
*/
|
|
15
|
-
username: string;
|
|
16
|
-
/**
|
|
17
|
-
* Credentials
|
|
18
|
-
*/
|
|
19
|
-
password: string;
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=UsernamePasswordRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UsernamePasswordRequest.d.ts","sourceRoot":"","sources":["../../../src/request/UsernamePasswordRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,OAAO,CACzC,IAAI,CACA,6BAA6B,EAC3B,QAAQ,GACR,uBAAuB,GACvB,oBAAoB,GACpB,UAAU,GACV,UAAU,GACV,cAAc,CACnB,CACJ,GAAG;IACA;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Constants } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* Deserialized response object from server managed identity request.
|
|
4
|
-
*
|
|
5
|
-
* In case of success:
|
|
6
|
-
* - access_token - The requested access token. When called via a secured REST API, the token is embedded in the Authorization request header field as a "bearer" token, allowing the API to authenticate the caller
|
|
7
|
-
* - client_id - A unique identifier generated by Azure AD for the Azure Resource. The Client ID is a GUID value that uniquely identifies the application and its configuration within the identity platform
|
|
8
|
-
* - expires_on - The timespan when the access token expires. The date is represented as the number of seconds from "1970-01-01T0:0:0Z UTC" (corresponds to the token's exp claim)
|
|
9
|
-
* - resource - The resource the access token was requested for. It matches the resource query string parameter of the request
|
|
10
|
-
* - token_type - The type of token returned by the Managed Identity endpoint. It's a "Bearer" access token, which means the resource can give access to the bearer of this token
|
|
11
|
-
*
|
|
12
|
-
* In case of error:
|
|
13
|
-
* - message: A specific error message that can help a developer identify the root cause of an authentication error.
|
|
14
|
-
* - correlationId: A unique identifier for the request that can help in diagnostics across components.
|
|
15
|
-
*/
|
|
16
|
-
export type ManagedIdentityTokenResponse = {
|
|
17
|
-
access_token?: string;
|
|
18
|
-
client_id?: string;
|
|
19
|
-
expires_on?: number;
|
|
20
|
-
resource?: string;
|
|
21
|
-
token_type?: Constants.AuthenticationScheme;
|
|
22
|
-
message?: string;
|
|
23
|
-
correlationId?: string;
|
|
24
|
-
error?: string | ErrorObject;
|
|
25
|
-
error_description?: string;
|
|
26
|
-
error_codes?: Array<string>;
|
|
27
|
-
correlation_id?: string;
|
|
28
|
-
timestamp?: string;
|
|
29
|
-
trace_id?: string;
|
|
30
|
-
};
|
|
31
|
-
export type ErrorObject = {
|
|
32
|
-
code: string;
|
|
33
|
-
message: string;
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=ManagedIdentityTokenResponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityTokenResponse.d.ts","sourceRoot":"","sources":["../../../src/response/ManagedIdentityTokenResponse.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,4BAA4B,GAAG;IAEvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC,oBAAoB,CAAC;IAQ5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAMF,MAAM,MAAM,WAAW,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
import { IncomingHttpHeaders } from "http";
|
|
3
|
-
import { Logger } from "@azure/msal-common/node";
|
|
4
|
-
import { IHttpRetryPolicy } from "./IHttpRetryPolicy.js";
|
|
5
|
-
export declare const DEFAULT_MANAGED_IDENTITY_MAX_RETRIES: number;
|
|
6
|
-
export declare class DefaultManagedIdentityRetryPolicy implements IHttpRetryPolicy {
|
|
7
|
-
static get DEFAULT_MANAGED_IDENTITY_RETRY_DELAY_MS(): number;
|
|
8
|
-
private linearRetryStrategy;
|
|
9
|
-
pauseForRetry(httpStatusCode: number, currentRetry: number, logger: Logger, retryAfterHeader: IncomingHttpHeaders["retry-after"]): Promise<boolean>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=DefaultManagedIdentityRetryPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultManagedIdentityRetryPolicy.d.ts","sourceRoot":"","sources":["../../../src/retry/DefaultManagedIdentityRetryPolicy.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAa,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,eAAO,MAAM,oCAAoC,EAAE,MAAU,CAAC;AAW9D,qBAAa,iCAAkC,YAAW,gBAAgB;IAKtE,MAAM,KAAK,uCAAuC,IAAI,MAAM,CAE3D;IAED,OAAO,CAAC,mBAAmB,CACG;IAExB,aAAa,CACf,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,mBAAmB,CAAC,aAAa,CAAC,GACrD,OAAO,CAAC,OAAO,CAAC;CAgCtB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare class ExponentialRetryStrategy {
|
|
2
|
-
private minExponentialBackoff;
|
|
3
|
-
private maxExponentialBackoff;
|
|
4
|
-
private exponentialDeltaBackoff;
|
|
5
|
-
constructor(minExponentialBackoff: number, maxExponentialBackoff: number, exponentialDeltaBackoff: number);
|
|
6
|
-
/**
|
|
7
|
-
* Calculates the exponential delay based on the current retry attempt.
|
|
8
|
-
*
|
|
9
|
-
* @param {number} currentRetry - The current retry attempt number.
|
|
10
|
-
* @returns {number} - The calculated exponential delay in milliseconds.
|
|
11
|
-
*
|
|
12
|
-
* The delay is calculated using the formula:
|
|
13
|
-
* - If `currentRetry` is 0, it returns the minimum backoff time.
|
|
14
|
-
* - Otherwise, it calculates the delay as the minimum of:
|
|
15
|
-
* - `(2^(currentRetry - 1)) * deltaBackoff`
|
|
16
|
-
* - `maxBackoff`
|
|
17
|
-
*
|
|
18
|
-
* This ensures that the delay increases exponentially with each retry attempt,
|
|
19
|
-
* but does not exceed the maximum backoff time.
|
|
20
|
-
*/
|
|
21
|
-
calculateDelay(currentRetry: number): number;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=ExponentialRetryStrategy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExponentialRetryStrategy.d.ts","sourceRoot":"","sources":["../../../src/retry/ExponentialRetryStrategy.ts"],"names":[],"mappings":"AAKA,qBAAa,wBAAwB;IAEjC,OAAO,CAAC,qBAAqB,CAAS;IAEtC,OAAO,CAAC,qBAAqB,CAAS;IAEtC,OAAO,CAAC,uBAAuB,CAAS;gBAGpC,qBAAqB,EAAE,MAAM,EAC7B,qBAAqB,EAAE,MAAM,EAC7B,uBAAuB,EAAE,MAAM;IAOnC;;;;;;;;;;;;;;OAcG;IACI,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;CActD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
import { IncomingHttpHeaders } from "http";
|
|
3
|
-
import { Logger } from "@azure/msal-common/node";
|
|
4
|
-
export interface IHttpRetryPolicy {
|
|
5
|
-
_isNewRequest?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* Pauses execution for a specified amount of time before retrying an HTTP request.
|
|
8
|
-
*
|
|
9
|
-
* @param httpStatusCode - The HTTP status code of the response.
|
|
10
|
-
* @param currentRetry - The current retry attempt number.
|
|
11
|
-
* @param retryAfterHeader - The value of the `retry-after` HTTP header, if present.
|
|
12
|
-
* @returns A promise that resolves to a boolean indicating whether to retry the request.
|
|
13
|
-
*/
|
|
14
|
-
pauseForRetry(httpStatusCode: number, currentRetry: number, logger: Logger, retryAfterHeader?: IncomingHttpHeaders["retry-after"]): Promise<boolean>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=IHttpRetryPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IHttpRetryPolicy.d.ts","sourceRoot":"","sources":["../../../src/retry/IHttpRetryPolicy.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IAGxB;;;;;;;OAOG;IACH,aAAa,CACT,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,gBAAgB,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,GACtD,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Logger } from "@azure/msal-common/node";
|
|
2
|
-
import { IHttpRetryPolicy } from "./IHttpRetryPolicy.js";
|
|
3
|
-
export declare class ImdsRetryPolicy implements IHttpRetryPolicy {
|
|
4
|
-
static get MIN_EXPONENTIAL_BACKOFF_MS(): number;
|
|
5
|
-
static get MAX_EXPONENTIAL_BACKOFF_MS(): number;
|
|
6
|
-
static get EXPONENTIAL_DELTA_BACKOFF_MS(): number;
|
|
7
|
-
static get HTTP_STATUS_GONE_RETRY_AFTER_MS(): number;
|
|
8
|
-
_isNewRequest: boolean;
|
|
9
|
-
set isNewRequest(value: boolean);
|
|
10
|
-
private maxRetries;
|
|
11
|
-
private exponentialRetryStrategy;
|
|
12
|
-
/**
|
|
13
|
-
* Pauses execution for a calculated delay before retrying a request.
|
|
14
|
-
*
|
|
15
|
-
* @param httpStatusCode - The HTTP status code of the response.
|
|
16
|
-
* @param currentRetry - The current retry attempt number.
|
|
17
|
-
* @param retryAfterHeader - The value of the "retry-after" header from the response.
|
|
18
|
-
* @returns A promise that resolves to a boolean indicating whether a retry should be attempted.
|
|
19
|
-
*/
|
|
20
|
-
pauseForRetry(httpStatusCode: number, currentRetry: number, logger: Logger): Promise<boolean>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=ImdsRetryPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImdsRetryPolicy.d.ts","sourceRoot":"","sources":["../../../src/retry/ImdsRetryPolicy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAkBzD,qBAAa,eAAgB,YAAW,gBAAgB;IAKpD,MAAM,KAAK,0BAA0B,IAAI,MAAM,CAE9C;IACD,MAAM,KAAK,0BAA0B,IAAI,MAAM,CAE9C;IACD,MAAM,KAAK,4BAA4B,IAAI,MAAM,CAEhD;IACD,MAAM,KAAK,+BAA+B,IAAI,MAAM,CAEnD;IAEM,aAAa,EAAE,OAAO,CAAC;IAC9B,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,EAE9B;IAED,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO,CAAC,wBAAwB,CAK1B;IAEN;;;;;;;OAOG;IACG,aAAa,CACf,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,OAAO,CAAC;CAoDtB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
import { IncomingHttpHeaders } from "http";
|
|
3
|
-
export declare class LinearRetryStrategy {
|
|
4
|
-
/**
|
|
5
|
-
* Calculates the number of milliseconds to sleep based on the `retry-after` HTTP header.
|
|
6
|
-
*
|
|
7
|
-
* @param retryHeader - The value of the `retry-after` HTTP header. This can be either a number of seconds
|
|
8
|
-
* or an HTTP date string.
|
|
9
|
-
* @returns The number of milliseconds to sleep before retrying the request. If the `retry-after` header is not
|
|
10
|
-
* present or cannot be parsed, returns 0.
|
|
11
|
-
*/
|
|
12
|
-
calculateDelay(retryHeader: IncomingHttpHeaders["retry-after"], minimumDelay: number): number;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=LinearRetryStrategy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinearRetryStrategy.d.ts","sourceRoot":"","sources":["../../../src/retry/LinearRetryStrategy.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAE3C,qBAAa,mBAAmB;IAC5B;;;;;;;OAOG;IACI,cAAc,CACjB,WAAW,EAAE,mBAAmB,CAAC,aAAa,CAAC,EAC/C,YAAY,EAAE,MAAM,GACrB,MAAM;CAoBZ"}
|