@azure/msal-node 5.1.4 → 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 +5 -2
- package/dist/cache/NodeStorage.mjs.map +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 +2 -2
- 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 +5 -6
- package/dist/crypto/GuidGenerator.mjs.map +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 +92 -72
- package/lib/msal-node.cjs.map +1 -1
- package/package.json +10 -10
- package/src/cache/NodeStorage.ts +4 -1
- package/src/client/ClientApplication.ts +1 -1
- package/src/client/IConfidentialClientApplication.ts +1 -1
- package/src/client/IPublicClientApplication.ts +1 -1
- package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -0
- package/src/client/ManagedIdentitySources/Imds.ts +7 -0
- package/src/crypto/GuidGenerator.ts +4 -5
- package/src/packageMetadata.ts +1 -1
- package/src/utils/Constants.ts +4 -0
- package/{dist → types}/cache/NodeStorage.d.ts +1 -1
- package/{dist → types}/cache/NodeStorage.d.ts.map +1 -1
- package/{lib/types → types}/client/ClientApplication.d.ts +1 -1
- package/{lib/types → types}/client/IConfidentialClientApplication.d.ts +1 -1
- package/{dist → types}/client/IConfidentialClientApplication.d.ts.map +1 -1
- package/{dist → types}/client/IPublicClientApplication.d.ts +1 -1
- package/{dist → types}/client/IPublicClientApplication.d.ts.map +1 -1
- 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/{dist → types}/crypto/GuidGenerator.d.ts +2 -3
- package/{dist → types}/crypto/GuidGenerator.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/client/ClientApplication.d.ts +0 -146
- package/dist/client/IConfidentialClientApplication.d.ts +0 -43
- 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.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.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 -15
- 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/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.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/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/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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@azure/msal-node",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.2.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Microsoft",
|
|
7
7
|
"email": "nugetaad@microsoft.com",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"type": "module",
|
|
25
25
|
"main": "lib/msal-node.cjs",
|
|
26
26
|
"module": "dist/index.mjs",
|
|
27
|
-
"types": "
|
|
27
|
+
"types": "types/index.d.ts",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
30
|
"import": {
|
|
31
|
-
"types": "./
|
|
31
|
+
"types": "./types/index.d.ts",
|
|
32
32
|
"default": "./dist/index.mjs"
|
|
33
33
|
},
|
|
34
34
|
"require": {
|
|
35
|
-
"types": "./
|
|
35
|
+
"types": "./types/index.d.cts",
|
|
36
36
|
"default": "./lib/msal-node.cjs"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
@@ -40,13 +40,15 @@
|
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"dist",
|
|
43
|
+
"types",
|
|
43
44
|
"lib",
|
|
44
45
|
"src"
|
|
45
46
|
],
|
|
46
47
|
"scripts": {
|
|
47
|
-
"build": "npm run clean && rollup -c --strictDeprecations --bundleConfigAsCjs",
|
|
48
|
+
"build": "npm run clean && rollup -c --strictDeprecations --bundleConfigAsCjs && npm run build:types",
|
|
49
|
+
"build:types": "tsc -p tsconfig.build.types.json",
|
|
48
50
|
"build:watch": "rollup -c --watch --strictDeprecations --bundleConfigAsCjs",
|
|
49
|
-
"clean": "shx rm -rf dist lib",
|
|
51
|
+
"clean": "shx rm -rf dist types lib",
|
|
50
52
|
"test": "jest",
|
|
51
53
|
"test:watch": "jest --watch",
|
|
52
54
|
"test:coverage": "jest --coverage",
|
|
@@ -70,7 +72,6 @@
|
|
|
70
72
|
"@types/jest": "^29.5.0",
|
|
71
73
|
"@types/jsonwebtoken": "^9.0.1",
|
|
72
74
|
"@types/node": "^20.3.1",
|
|
73
|
-
"@types/uuid": "^7.0.0",
|
|
74
75
|
"eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
|
|
75
76
|
"jest": "^29.5.0",
|
|
76
77
|
"jest-junit": "^16.0.0",
|
|
@@ -83,9 +84,8 @@
|
|
|
83
84
|
"yargs": "^17.3.1"
|
|
84
85
|
},
|
|
85
86
|
"dependencies": {
|
|
86
|
-
"@azure/msal-common": "16.
|
|
87
|
-
"jsonwebtoken": "^9.0.0"
|
|
88
|
-
"uuid": "^8.3.0"
|
|
87
|
+
"@azure/msal-common": "16.6.0",
|
|
88
|
+
"jsonwebtoken": "^9.0.0"
|
|
89
89
|
},
|
|
90
90
|
"engines": {
|
|
91
91
|
"node": ">=20"
|
package/src/cache/NodeStorage.ts
CHANGED
|
@@ -500,7 +500,7 @@ export class NodeStorage extends CacheManager {
|
|
|
500
500
|
}
|
|
501
501
|
|
|
502
502
|
/**
|
|
503
|
-
* Clears all cache entries created by MSAL
|
|
503
|
+
* Clears all cache entries created by MSAL except authority metadata..
|
|
504
504
|
*/
|
|
505
505
|
clear(): void {
|
|
506
506
|
this.logger.trace("Clearing cache entries created by MSAL", "");
|
|
@@ -510,6 +510,9 @@ export class NodeStorage extends CacheManager {
|
|
|
510
510
|
|
|
511
511
|
// delete each element
|
|
512
512
|
cacheKeys.forEach((key) => {
|
|
513
|
+
if (this.isAuthorityMetadata(key)) {
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
513
516
|
this.removeItem(key);
|
|
514
517
|
});
|
|
515
518
|
this.emitChange();
|
|
@@ -67,7 +67,7 @@ export interface IConfidentialClientApplication {
|
|
|
67
67
|
/** Replaces the default logger set in configurations with new Logger with new configurations */
|
|
68
68
|
setLogger(logger: Logger): void;
|
|
69
69
|
|
|
70
|
-
/** Clear the cache */
|
|
70
|
+
/** Clear the cache except for authority metadata. */
|
|
71
71
|
clearCache(): void;
|
|
72
72
|
|
|
73
73
|
/** This extensibility point is meant for Azure SDK to enhance Managed Identity support */
|
|
@@ -68,7 +68,7 @@ export interface IPublicClientApplication {
|
|
|
68
68
|
/** Replaces the default logger set in configurations with new Logger with new configurations */
|
|
69
69
|
setLogger(logger: Logger): void;
|
|
70
70
|
|
|
71
|
-
/** Clear the cache */
|
|
71
|
+
/** Clear the cache except for authority metadata, which is not included in the serialized cache and would otherwise be lost. */
|
|
72
72
|
clearCache(): void;
|
|
73
73
|
|
|
74
74
|
/** Gets all cached accounts */
|
|
@@ -90,6 +90,15 @@ export abstract class BaseManagedIdentitySource {
|
|
|
90
90
|
this.disableInternalRetries = disableInternalRetries;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Generates a new correlation ID for request tracing.
|
|
95
|
+
*
|
|
96
|
+
* @returns A new GUID string for use as a correlation or request ID
|
|
97
|
+
*/
|
|
98
|
+
protected createCorrelationId(): string {
|
|
99
|
+
return this.cryptoProvider.createNewGuid();
|
|
100
|
+
}
|
|
101
|
+
|
|
93
102
|
/**
|
|
94
103
|
* Creates a managed identity request with source-specific parameters.
|
|
95
104
|
* This method must be implemented by concrete managed identity sources to define
|
|
@@ -9,6 +9,7 @@ import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRe
|
|
|
9
9
|
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
|
|
10
10
|
import { CryptoProvider } from "../../crypto/CryptoProvider.js";
|
|
11
11
|
import {
|
|
12
|
+
Constants as NodeConstants,
|
|
12
13
|
HttpMethod,
|
|
13
14
|
ManagedIdentityEnvironmentVariableNames,
|
|
14
15
|
ManagedIdentityHeaders,
|
|
@@ -18,6 +19,7 @@ import {
|
|
|
18
19
|
} from "../../utils/Constants.js";
|
|
19
20
|
import { NodeStorage } from "../../cache/NodeStorage.js";
|
|
20
21
|
import { ImdsRetryPolicy } from "../../retry/ImdsRetryPolicy.js";
|
|
22
|
+
import { version as packageVersion } from "../../packageMetadata.js";
|
|
21
23
|
|
|
22
24
|
// Documentation for IMDS is available at https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token#get-a-token-using-http
|
|
23
25
|
|
|
@@ -167,6 +169,11 @@ export class Imds extends BaseManagedIdentitySource {
|
|
|
167
169
|
);
|
|
168
170
|
|
|
169
171
|
request.headers[ManagedIdentityHeaders.METADATA_HEADER_NAME] = "true";
|
|
172
|
+
request.headers[ManagedIdentityHeaders.CLIENT_SKU] =
|
|
173
|
+
NodeConstants.MSAL_SKU;
|
|
174
|
+
request.headers[ManagedIdentityHeaders.CLIENT_VER] = packageVersion;
|
|
175
|
+
request.headers[ManagedIdentityHeaders.CLIENT_REQUEST_ID] =
|
|
176
|
+
this.createCorrelationId();
|
|
170
177
|
|
|
171
178
|
request.queryParameters[ManagedIdentityQueryParameters.API_VERSION] =
|
|
172
179
|
IMDS_API_VERSION;
|
|
@@ -4,16 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { IGuidGenerator } from "@azure/msal-common/node";
|
|
7
|
-
import {
|
|
7
|
+
import { randomUUID } from "node:crypto";
|
|
8
8
|
|
|
9
9
|
export class GuidGenerator implements IGuidGenerator {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* uuidv4 generates guids from cryprtographically-string random
|
|
11
|
+
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
|
|
12
|
+
* cryptographic pseudorandom number generator.
|
|
14
13
|
*/
|
|
15
14
|
generateGuid(): string {
|
|
16
|
-
return
|
|
15
|
+
return randomUUID();
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
/**
|
package/src/packageMetadata.ts
CHANGED
package/src/utils/Constants.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { AADServerParamKeys } from "@azure/msal-common/node";
|
|
6
7
|
import { DefaultManagedIdentityRetryPolicy } from "../retry/DefaultManagedIdentityRetryPolicy.js";
|
|
7
8
|
import { ImdsRetryPolicy } from "../retry/ImdsRetryPolicy.js";
|
|
8
9
|
|
|
@@ -19,6 +20,9 @@ export const ManagedIdentityHeaders = {
|
|
|
19
20
|
METADATA_HEADER_NAME: "Metadata",
|
|
20
21
|
APP_SERVICE_SECRET_HEADER_NAME: "X-IDENTITY-HEADER",
|
|
21
22
|
ML_AND_SF_SECRET_HEADER_NAME: "secret",
|
|
23
|
+
CLIENT_SKU: AADServerParamKeys.X_CLIENT_SKU,
|
|
24
|
+
CLIENT_VER: AADServerParamKeys.X_CLIENT_VER,
|
|
25
|
+
CLIENT_REQUEST_ID: "x-ms-client-request-id",
|
|
22
26
|
} as const;
|
|
23
27
|
export type ManagedIdentityHeaders =
|
|
24
28
|
(typeof ManagedIdentityHeaders)[keyof typeof ManagedIdentityHeaders];
|
|
@@ -170,7 +170,7 @@ export declare class NodeStorage extends CacheManager {
|
|
|
170
170
|
*/
|
|
171
171
|
getKeys(): string[];
|
|
172
172
|
/**
|
|
173
|
-
* Clears all cache entries created by MSAL
|
|
173
|
+
* Clears all cache entries created by MSAL except authority metadata..
|
|
174
174
|
*/
|
|
175
175
|
clear(): void;
|
|
176
176
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeStorage.d.ts","sourceRoot":"","sources":["../../src/cache/NodeStorage.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EACT,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,MAAM,EACN,cAAc,EACd,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,sBAAsB,EAGtB,gBAAgB,EAChB,WAAW,EAEd,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EACH,aAAa,EACb,SAAS,EACT,YAAY,EACf,MAAM,iCAAiC,CAAC;AAGzC;;;GAGG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAEzC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,KAAK,CAAoB;IACjC,OAAO,CAAC,cAAc,CAAuB;gBAGzC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,OAAO,EACnB,sBAAsB,CAAC,EAAE,sBAAsB;IAYnD;;;OAGG;IACH,qBAAqB,CAAC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IACH,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,uBAAuB,GAAG,IAAI;IAI1E;;;OAGG;IACH,kBAAkB,CAAC,kBAAkB,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;IAavE;;;;OAIG;IACH,kBAAkB,CACd,kBAAkB,EAAE,MAAM,EAC1B,eAAe,EAAE,gBAAgB,GAClC,IAAI;IAIP;;;;OAIG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAoBhC;;;OAGG;IACH,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAI/C;;;OAGG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAIjC;;OAEG;IACH,OAAO,IAAI,MAAM,EAAE;IAQnB;;OAEG;IACH,KAAK,IAAI,IAAI;IAgBb;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa;IAM1D;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS;IAIjE;;OAEG;IACH,wBAAwB,CACpB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,mBAAmB,GAChC,MAAM;CAuBZ"}
|
|
@@ -139,7 +139,7 @@ export declare abstract class ClientApplication {
|
|
|
139
139
|
*/
|
|
140
140
|
protected createAuthority(authorityString: string, requestCorrelationId: string, azureRegionConfiguration?: AzureRegionConfiguration, azureCloudOptions?: AzureCloudOptions): Promise<Authority>;
|
|
141
141
|
/**
|
|
142
|
-
* Clear the cache
|
|
142
|
+
* Clear the cache except for authority metadata.
|
|
143
143
|
*/
|
|
144
144
|
clearCache(): void;
|
|
145
145
|
}
|
|
@@ -35,7 +35,7 @@ export interface IConfidentialClientApplication {
|
|
|
35
35
|
getLogger(): Logger;
|
|
36
36
|
/** Replaces the default logger set in configurations with new Logger with new configurations */
|
|
37
37
|
setLogger(logger: Logger): void;
|
|
38
|
-
/** Clear the cache */
|
|
38
|
+
/** Clear the cache except for authority metadata. */
|
|
39
39
|
clearCache(): void;
|
|
40
40
|
/** This extensibility point is meant for Azure SDK to enhance Managed Identity support */
|
|
41
41
|
SetAppTokenProvider(provider: IAppTokenProvider): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IConfidentialClientApplication.d.ts","sourceRoot":"","sources":["../../src/client/IConfidentialClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,EACpB,iBAAiB,EACjB,MAAM,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC3C,mDAAmD;IACnD,cAAc,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAElE,+HAA+H;IAC/H,kBAAkB,CACd,OAAO,EAAE,wBAAwB,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC,8FAA8F;IAC9F,kBAAkB,CACd,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,wFAAwF;IACxF,0BAA0B,CACtB,OAAO,EAAE,mBAAmB,GAC7B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,mFAAmF;IACnF,8BAA8B,CAC1B,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,6DAA6D;IAC7D,sBAAsB,CAClB,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC;;;OAGG;IACH,8BAA8B,CAC1B,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,+CAA+C;IAC/C,aAAa,IAAI,UAAU,CAAC;IAE5B,kCAAkC;IAClC,SAAS,IAAI,MAAM,CAAC;IAEpB,gGAAgG;IAChG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,
|
|
1
|
+
{"version":3,"file":"IConfidentialClientApplication.d.ts","sourceRoot":"","sources":["../../src/client/IConfidentialClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,EACpB,iBAAiB,EACjB,MAAM,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC3C,mDAAmD;IACnD,cAAc,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAElE,+HAA+H;IAC/H,kBAAkB,CACd,OAAO,EAAE,wBAAwB,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC,8FAA8F;IAC9F,kBAAkB,CACd,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,wFAAwF;IACxF,0BAA0B,CACtB,OAAO,EAAE,mBAAmB,GAC7B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,mFAAmF;IACnF,8BAA8B,CAC1B,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,6DAA6D;IAC7D,sBAAsB,CAClB,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC;;;OAGG;IACH,8BAA8B,CAC1B,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,+CAA+C;IAC/C,aAAa,IAAI,UAAU,CAAC;IAE5B,kCAAkC;IAClC,SAAS,IAAI,MAAM,CAAC;IAEpB,gGAAgG;IAChG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,qDAAqD;IACrD,UAAU,IAAI,IAAI,CAAC;IAEnB,0FAA0F;IAC1F,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC1D"}
|
|
@@ -36,7 +36,7 @@ export interface IPublicClientApplication {
|
|
|
36
36
|
getLogger(): Logger;
|
|
37
37
|
/** Replaces the default logger set in configurations with new Logger with new configurations */
|
|
38
38
|
setLogger(logger: Logger): void;
|
|
39
|
-
/** Clear the cache */
|
|
39
|
+
/** Clear the cache except for authority metadata, which is not included in the serialized cache and would otherwise be lost. */
|
|
40
40
|
clearCache(): void;
|
|
41
41
|
/** Gets all cached accounts */
|
|
42
42
|
getAllAccounts(): Promise<AccountInfo[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/client/IPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EACX,oBAAoB,EACpB,MAAM,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACrC,mDAAmD;IACnD,cAAc,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAElE,8HAA8H;IAC9H,kBAAkB,CACd,OAAO,EAAE,wBAAwB,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC,qCAAqC;IACrC,uBAAuB,CACnB,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC,6FAA6F;IAC7F,kBAAkB,CACd,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC,wFAAwF;IACxF,0BAA0B,CACtB,OAAO,EAAE,mBAAmB,GAC7B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,0EAA0E;IAC1E,wBAAwB,CACpB,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC;;;OAGG;IACH,8BAA8B,CAC1B,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,+CAA+C;IAC/C,aAAa,IAAI,UAAU,CAAC;IAE5B,kCAAkC;IAClC,SAAS,IAAI,MAAM,CAAC;IAEpB,gGAAgG;IAChG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,
|
|
1
|
+
{"version":3,"file":"IPublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/client/IPublicClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,WAAW,EACX,oBAAoB,EACpB,MAAM,EACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACrC,mDAAmD;IACnD,cAAc,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAElE,8HAA8H;IAC9H,kBAAkB,CACd,OAAO,EAAE,wBAAwB,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC,qCAAqC;IACrC,uBAAuB,CACnB,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC,6FAA6F;IAC7F,kBAAkB,CACd,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC,wFAAwF;IACxF,0BAA0B,CACtB,OAAO,EAAE,mBAAmB,GAC7B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,0EAA0E;IAC1E,wBAAwB,CACpB,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC;;;OAGG;IACH,8BAA8B,CAC1B,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAC;IAExC,+CAA+C;IAC/C,aAAa,IAAI,UAAU,CAAC;IAE5B,kCAAkC;IAClC,SAAS,IAAI,MAAM,CAAC;IAEpB,gGAAgG;IAChG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,gIAAgI;IAChI,UAAU,IAAI,IAAI,CAAC;IAEnB,+BAA+B;IAC/B,cAAc,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAEzC,gEAAgE;IAChE,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnD"}
|
|
@@ -42,6 +42,12 @@ export declare abstract class BaseManagedIdentitySource {
|
|
|
42
42
|
* @param disableInternalRetries - Whether to disable automatic retry logic
|
|
43
43
|
*/
|
|
44
44
|
constructor(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean);
|
|
45
|
+
/**
|
|
46
|
+
* Generates a new correlation ID for request tracing.
|
|
47
|
+
*
|
|
48
|
+
* @returns A new GUID string for use as a correlation or request ID
|
|
49
|
+
*/
|
|
50
|
+
protected createCorrelationId(): string;
|
|
45
51
|
/**
|
|
46
52
|
* Creates a managed identity request with source-specific parameters.
|
|
47
53
|
* This method must be implemented by concrete managed identity sources to define
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseManagedIdentitySource.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,SAAS,EAET,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,eAAe,EAEf,gCAAgC,EAGhC,oBAAoB,EAIvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAGH,qBAAqB,EAExB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EACH,yBAAyB,EAE5B,MAAM,qCAAqC,CAAC;AAI7C;;GAEG;AACH,eAAO,MAAM,gDAAgD;;;;;;CAMnD,CAAC;AACX,MAAM,MAAM,gDAAgD,GACxD,CAAC,OAAO,gDAAgD,CAAC,CAAC,MAAM,OAAO,gDAAgD,CAAC,CAAC;AAE7H;;;;;;;GAOG;AACH,8BAAsB,yBAAyB;IAC3C,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,sBAAsB,CAAU;IAExC;;;;;;;;OAQG;gBAEC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO;IASnC;;;;;;;;;OASG;IACH,QAAQ,CAAC,aAAa,CAClB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,iBAAiB,GACrC,gCAAgC;IAEnC;;;;;;;;;;;OAWG;IACU,2BAA2B,CACpC,QAAQ,EAAE,eAAe,CAAC,4BAA4B,CAAC,EAEvD,cAAc,EAAE,cAAc,EAE9B,eAAe,EAAE,gCAAgC,EAEjD,sBAAsB,EAAE,qBAAqB,GAC9C,OAAO,CAAC,gCAAgC,CAAC;IAI5C;;;;;;;;OAQG;IACI,sBAAsB,CACzB,QAAQ,EAAE,eAAe,CAAC,4BAA4B,CAAC,GACxD,gCAAgC;IA+CnC;;;;;;;;;;;;;;OAcG;IACU,+BAA+B,CACxC,sBAAsB,EAAE,sBAAsB,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,SAAS,EACxB,kBAAkB,CAAC,EAAE,OAAO,GAC7B,OAAO,CAAC,oBAAoB,CAAC;IAoHhC;;;;;;;;;;;;OAYG;IACI,iDAAiD,CACpD,qBAAqB,EAAE,qBAAqB,EAC5C,MAAM,CAAC,EAAE,OAAO,EAChB,WAAW,CAAC,EAAE,OAAO,GACtB,MAAM;IAoCT;;;;;;;;;;;;;OAaG;IACH,OAAc,gCAAgC,0BACnB,MAAM,OAAO,0BAA0B,4CAA4C,eAC7F,MAAM,cACP,MAAM,UACV,MAAM,KACf,MAAM,CAgBP;CACL"}
|
|
1
|
+
{"version":3,"file":"BaseManagedIdentitySource.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,SAAS,EAET,cAAc,EACd,MAAM,EACN,qBAAqB,EACrB,eAAe,EAEf,gCAAgC,EAGhC,oBAAoB,EAIvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAA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OAQG;IACI,sBAAsB,CACzB,QAAQ,EAAE,eAAe,CAAC,4BAA4B,CAAC,GACxD,gCAAgC;IA+CnC;;;;;;;;;;;;;;OAcG;IACU,+BAA+B,CACxC,sBAAsB,EAAE,sBAAsB,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,SAAS,EACxB,kBAAkB,CAAC,EAAE,OAAO,GAC7B,OAAO,CAAC,oBAAoB,CAAC;IAoHhC;;;;;;;;;;;;OAYG;IACI,iDAAiD,CACpD,qBAAqB,EAAE,qBAAqB,EAC5C,MAAM,CAAC,EAAE,OAAO,EAChB,WAAW,CAAC,EAAE,OAAO,GACtB,MAAM;IAoCT;;;;;;;;;;;;;OAaG;IACH,OAAc,gCAAgC,0BACnB,MAAM,OAAO,0BAA0B,4CAA4C,eAC7F,MAAM,cACP,MAAM,UACV,MAAM,KACf,MAAM,CAgBP;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Imds.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/Imds.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"Imds.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/Imds.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAUhE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAUzD;;;;;;;;GAQG;AACH,qBAAa,IAAK,SAAQ,yBAAyB;IAC/C,OAAO,CAAC,gBAAgB,CAAS;IAEjC;;;;;;;;;OASG;gBAEC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,gBAAgB,EAAE,MAAM;IAa5B;;;;;;;;;;;;;;;OAeG;WACW,SAAS,CACnB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,GAChC,IAAI;IAiDP;;;;;;;;;;;;;;;;;;OAkBG;IACI,aAAa,CAChB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,iBAAiB,GACrC,gCAAgC;CAoCtC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { IGuidGenerator } from "@azure/msal-common/node";
|
|
2
2
|
export declare class GuidGenerator implements IGuidGenerator {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* uuidv4 generates guids from cryprtographically-string random
|
|
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.
|
|
7
6
|
*/
|
|
8
7
|
generateGuid(): string;
|
|
9
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index.js";
|
|
@@ -11,6 +11,9 @@ export declare const ManagedIdentityHeaders: {
|
|
|
11
11
|
readonly METADATA_HEADER_NAME: "Metadata";
|
|
12
12
|
readonly APP_SERVICE_SECRET_HEADER_NAME: "X-IDENTITY-HEADER";
|
|
13
13
|
readonly ML_AND_SF_SECRET_HEADER_NAME: "secret";
|
|
14
|
+
readonly CLIENT_SKU: "x-client-SKU";
|
|
15
|
+
readonly CLIENT_VER: "x-client-VER";
|
|
16
|
+
readonly CLIENT_REQUEST_ID: "x-ms-client-request-id";
|
|
14
17
|
};
|
|
15
18
|
export type ManagedIdentityHeaders = (typeof ManagedIdentityHeaders)[keyof typeof ManagedIdentityHeaders];
|
|
16
19
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../src/utils/Constants.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9D,eAAO,MAAM,2BAA2B,qCAAqC,CAAC;AAC9E,eAAO,MAAM,+BAA+B,qBAAqB,CAAC;AAClE,eAAO,MAAM,sCAAsC,QAA0E,CAAC;AAE9H;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;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;;;;CAOrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;;;;;;;;;CASjB,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,OAAO,KAAK,CAAC,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;CAaxB,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;CAGrC,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,MAAa,CAAC;AAEjE,MAAM,MAAM,aAAa,GAAG,iCAAiC,GAAG,eAAe,CAAC"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { ClientConfiguration, AuthenticationResult, Authority, BaseAuthRequest, Logger, ServerTelemetryManager, AzureRegionConfiguration, AzureCloudOptions, AuthorizationCodePayload, ClientAssertionCallback } from "@azure/msal-common/node";
|
|
2
|
-
import { Configuration, NodeConfiguration } from "../config/Configuration.js";
|
|
3
|
-
import { CryptoProvider } from "../crypto/CryptoProvider.js";
|
|
4
|
-
import { NodeStorage } from "../cache/NodeStorage.js";
|
|
5
|
-
import { TokenCache } from "../cache/TokenCache.js";
|
|
6
|
-
import { ClientAssertion } from "./ClientAssertion.js";
|
|
7
|
-
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
|
|
8
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
9
|
-
import { RefreshTokenRequest } from "../request/RefreshTokenRequest.js";
|
|
10
|
-
import { SilentFlowRequest } from "../request/SilentFlowRequest.js";
|
|
11
|
-
import { UsernamePasswordRequest } from "../request/UsernamePasswordRequest.js";
|
|
12
|
-
/**
|
|
13
|
-
* Base abstract class for all ClientApplications - public and confidential
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
export declare abstract class ClientApplication {
|
|
17
|
-
protected readonly cryptoProvider: CryptoProvider;
|
|
18
|
-
private tokenCache;
|
|
19
|
-
/**
|
|
20
|
-
* Platform storage object
|
|
21
|
-
*/
|
|
22
|
-
protected storage: NodeStorage;
|
|
23
|
-
/**
|
|
24
|
-
* Logger object to log the application flow
|
|
25
|
-
*/
|
|
26
|
-
protected logger: Logger;
|
|
27
|
-
/**
|
|
28
|
-
* Platform configuration initialized by the application
|
|
29
|
-
*/
|
|
30
|
-
protected config: NodeConfiguration;
|
|
31
|
-
/**
|
|
32
|
-
* Client assertion passed by the user for confidential client flows
|
|
33
|
-
*/
|
|
34
|
-
protected clientAssertion: ClientAssertion;
|
|
35
|
-
protected developerProvidedClientAssertion: string | ClientAssertionCallback;
|
|
36
|
-
/**
|
|
37
|
-
* Client secret passed by the user for confidential client flows
|
|
38
|
-
*/
|
|
39
|
-
protected clientSecret: string;
|
|
40
|
-
/**
|
|
41
|
-
* Constructor for the ClientApplication
|
|
42
|
-
*/
|
|
43
|
-
protected constructor(configuration: Configuration);
|
|
44
|
-
/**
|
|
45
|
-
* Creates the URL of the authorization request, letting the user input credentials and consent to the
|
|
46
|
-
* application. The URL targets the /authorize endpoint of the authority configured in the
|
|
47
|
-
* application object.
|
|
48
|
-
*
|
|
49
|
-
* Once the user inputs their credentials and consents, the authority will send a response to the redirect URI
|
|
50
|
-
* sent in the request and should contain an authorization code, which can then be used to acquire tokens via
|
|
51
|
-
* `acquireTokenByCode(AuthorizationCodeRequest)`.
|
|
52
|
-
*/
|
|
53
|
-
getAuthCodeUrl(request: AuthorizationUrlRequest): Promise<string>;
|
|
54
|
-
/**
|
|
55
|
-
* Acquires a token by exchanging the Authorization Code received from the first step of OAuth2.0
|
|
56
|
-
* Authorization Code flow.
|
|
57
|
-
*
|
|
58
|
-
* `getAuthCodeUrl(AuthorizationCodeUrlRequest)` can be used to create the URL for the first step of OAuth2.0
|
|
59
|
-
* Authorization Code flow. Ensure that values for redirectUri and scopes in AuthorizationCodeUrlRequest and
|
|
60
|
-
* AuthorizationCodeRequest are the same.
|
|
61
|
-
*/
|
|
62
|
-
acquireTokenByCode(request: AuthorizationCodeRequest, authCodePayLoad?: AuthorizationCodePayload): Promise<AuthenticationResult>;
|
|
63
|
-
/**
|
|
64
|
-
* Acquires a token by exchanging the refresh token provided for a new set of tokens.
|
|
65
|
-
*
|
|
66
|
-
* This API is provided only for scenarios where you would like to migrate from ADAL to MSAL. Otherwise, it is
|
|
67
|
-
* recommended that you use `acquireTokenSilent()` for silent scenarios. When using `acquireTokenSilent()`, MSAL will
|
|
68
|
-
* handle the caching and refreshing of tokens automatically.
|
|
69
|
-
*/
|
|
70
|
-
acquireTokenByRefreshToken(request: RefreshTokenRequest): Promise<AuthenticationResult | null>;
|
|
71
|
-
/**
|
|
72
|
-
* Acquires a token silently when a user specifies the account the token is requested for.
|
|
73
|
-
*
|
|
74
|
-
* This API expects the user to provide an account object and looks into the cache to retrieve the token if present.
|
|
75
|
-
* There is also an optional "forceRefresh" boolean the user can send to bypass the cache for access_token and id_token.
|
|
76
|
-
* In case the refresh_token is expired or not found, an error is thrown
|
|
77
|
-
* and the guidance is for the user to call any interactive token acquisition API (eg: `acquireTokenByCode()`).
|
|
78
|
-
*/
|
|
79
|
-
acquireTokenSilent(request: SilentFlowRequest): Promise<AuthenticationResult>;
|
|
80
|
-
private acquireCachedTokenSilent;
|
|
81
|
-
/**
|
|
82
|
-
* Acquires tokens with password grant by exchanging client applications username and password for credentials
|
|
83
|
-
*
|
|
84
|
-
* The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely.
|
|
85
|
-
* More details on this recommendation at https://tools.ietf.org/html/draft-ietf-oauth-security-topics-13#section-3.4
|
|
86
|
-
* Microsoft's documentation and recommendations are at:
|
|
87
|
-
* https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#usernamepassword
|
|
88
|
-
*
|
|
89
|
-
* @param request - UsenamePasswordRequest
|
|
90
|
-
* @deprecated - Use a more secure flow instead
|
|
91
|
-
*/
|
|
92
|
-
acquireTokenByUsernamePassword(request: UsernamePasswordRequest): Promise<AuthenticationResult | null>;
|
|
93
|
-
/**
|
|
94
|
-
* Gets the token cache for the application.
|
|
95
|
-
*/
|
|
96
|
-
getTokenCache(): TokenCache;
|
|
97
|
-
/**
|
|
98
|
-
* Validates OIDC state by comparing the user cached state with the state received from the server.
|
|
99
|
-
*
|
|
100
|
-
* This API is provided for scenarios where you would use OAuth2.0 state parameter to mitigate against
|
|
101
|
-
* CSRF attacks.
|
|
102
|
-
* For more information about state, visit https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
|
|
103
|
-
* @param state - Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow
|
|
104
|
-
* @param cachedState - This string is sent back by the server with the authorization code
|
|
105
|
-
*/
|
|
106
|
-
protected validateState(state: string, cachedState: string): void;
|
|
107
|
-
/**
|
|
108
|
-
* Returns the logger instance
|
|
109
|
-
*/
|
|
110
|
-
getLogger(): Logger;
|
|
111
|
-
/**
|
|
112
|
-
* Replaces the default logger set in configurations with new Logger with new configurations
|
|
113
|
-
* @param logger - Logger instance
|
|
114
|
-
*/
|
|
115
|
-
setLogger(logger: Logger): void;
|
|
116
|
-
/**
|
|
117
|
-
* Builds the common configuration to be passed to the common component based on the platform configurarion
|
|
118
|
-
* @param authority - user passed authority in configuration
|
|
119
|
-
* @param serverTelemetryManager - initializes servertelemetry if passed
|
|
120
|
-
*/
|
|
121
|
-
protected buildOauthClientConfiguration(discoveredAuthority: Authority, requestCorrelationId: string, redirectUri: string, serverTelemetryManager?: ServerTelemetryManager): Promise<ClientConfiguration>;
|
|
122
|
-
private getClientAssertion;
|
|
123
|
-
/**
|
|
124
|
-
* Generates a request with the default scopes & generates a correlationId.
|
|
125
|
-
* @param authRequest - BaseAuthRequest for initialization
|
|
126
|
-
*/
|
|
127
|
-
protected initializeBaseRequest(authRequest: Partial<BaseAuthRequest>): Promise<BaseAuthRequest>;
|
|
128
|
-
/**
|
|
129
|
-
* Initializes the server telemetry payload
|
|
130
|
-
* @param apiId - Id for a specific request
|
|
131
|
-
* @param correlationId - GUID
|
|
132
|
-
* @param forceRefresh - boolean to indicate network call
|
|
133
|
-
*/
|
|
134
|
-
protected initializeServerTelemetryManager(apiId: number, correlationId: string, forceRefresh?: boolean): ServerTelemetryManager;
|
|
135
|
-
/**
|
|
136
|
-
* Create authority instance. If authority not passed in request, default to authority set on the application
|
|
137
|
-
* object. If no authority set in application object, then default to common authority.
|
|
138
|
-
* @param authorityString - authority from user configuration
|
|
139
|
-
*/
|
|
140
|
-
protected createAuthority(authorityString: string, requestCorrelationId: string, azureRegionConfiguration?: AzureRegionConfiguration, azureCloudOptions?: AzureCloudOptions): Promise<Authority>;
|
|
141
|
-
/**
|
|
142
|
-
* Clear the cache
|
|
143
|
-
*/
|
|
144
|
-
clearCache(): void;
|
|
145
|
-
}
|
|
146
|
-
//# sourceMappingURL=ClientApplication.d.ts.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { AuthenticationResult, IAppTokenProvider, Logger } from "@azure/msal-common/node";
|
|
2
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
3
|
-
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
|
|
4
|
-
import { ClientCredentialRequest } from "../request/ClientCredentialRequest.js";
|
|
5
|
-
import { OnBehalfOfRequest } from "../request/OnBehalfOfRequest.js";
|
|
6
|
-
import { RefreshTokenRequest } from "../request/RefreshTokenRequest.js";
|
|
7
|
-
import { SilentFlowRequest } from "../request/SilentFlowRequest.js";
|
|
8
|
-
import { UsernamePasswordRequest } from "../request/UsernamePasswordRequest.js";
|
|
9
|
-
import { TokenCache } from "../cache/TokenCache.js";
|
|
10
|
-
/**
|
|
11
|
-
* Interface for the ConfidentialClientApplication class defining the public API signatures
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export interface IConfidentialClientApplication {
|
|
15
|
-
/** Creates the URL of the authorization request */
|
|
16
|
-
getAuthCodeUrl(request: AuthorizationUrlRequest): Promise<string>;
|
|
17
|
-
/** Acquires a token by exchanging the authorization code received from the first step of OAuth 2.0 Authorization Code Flow */
|
|
18
|
-
acquireTokenByCode(request: AuthorizationCodeRequest): Promise<AuthenticationResult>;
|
|
19
|
-
/** Acquires a token silently when a user specifies the account the token is requested for */
|
|
20
|
-
acquireTokenSilent(request: SilentFlowRequest): Promise<AuthenticationResult | null>;
|
|
21
|
-
/** Acquires a token by exchanging the refresh token provided for a new set of tokens */
|
|
22
|
-
acquireTokenByRefreshToken(request: RefreshTokenRequest): Promise<AuthenticationResult | null>;
|
|
23
|
-
/** Acquires tokens from the authority for the application (not for an end user) */
|
|
24
|
-
acquireTokenByClientCredential(request: ClientCredentialRequest): Promise<AuthenticationResult | null>;
|
|
25
|
-
/** Acquires tokens from the authority for the application */
|
|
26
|
-
acquireTokenOnBehalfOf(request: OnBehalfOfRequest): Promise<AuthenticationResult | null>;
|
|
27
|
-
/**
|
|
28
|
-
* Acquires tokens with password grant by exchanging client applications username and password for credentials
|
|
29
|
-
* @deprecated - Use a more secure flow instead
|
|
30
|
-
*/
|
|
31
|
-
acquireTokenByUsernamePassword(request: UsernamePasswordRequest): Promise<AuthenticationResult | null>;
|
|
32
|
-
/** Gets the token cache for the application */
|
|
33
|
-
getTokenCache(): TokenCache;
|
|
34
|
-
/** Returns the logger instance */
|
|
35
|
-
getLogger(): Logger;
|
|
36
|
-
/** Replaces the default logger set in configurations with new Logger with new configurations */
|
|
37
|
-
setLogger(logger: Logger): void;
|
|
38
|
-
/** Clear the cache */
|
|
39
|
-
clearCache(): void;
|
|
40
|
-
/** This extensibility point is meant for Azure SDK to enhance Managed Identity support */
|
|
41
|
-
SetAppTokenProvider(provider: IAppTokenProvider): void;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=IConfidentialClientApplication.d.ts.map
|