@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
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache } from "@azure/msal-common/node";
|
|
2
|
-
import { InMemoryCache, JsonCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedRefreshTokenEntity, SerializedAppMetadataEntity } from "./SerializerTypes.js";
|
|
3
|
-
/**
|
|
4
|
-
* This class serializes cache entities to be saved into in-memory object types defined internally
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class Serializer {
|
|
8
|
-
/**
|
|
9
|
-
* serialize the JSON blob
|
|
10
|
-
* @param data - JSON blob cache
|
|
11
|
-
*/
|
|
12
|
-
static serializeJSONBlob(data: JsonCache): string;
|
|
13
|
-
/**
|
|
14
|
-
* Serialize Accounts
|
|
15
|
-
* @param accCache - cache of accounts
|
|
16
|
-
*/
|
|
17
|
-
static serializeAccounts(accCache: AccountCache): Record<string, SerializedAccountEntity>;
|
|
18
|
-
/**
|
|
19
|
-
* Serialize IdTokens
|
|
20
|
-
* @param idTCache - cache of ID tokens
|
|
21
|
-
*/
|
|
22
|
-
static serializeIdTokens(idTCache: IdTokenCache): Record<string, SerializedIdTokenEntity>;
|
|
23
|
-
/**
|
|
24
|
-
* Serializes AccessTokens
|
|
25
|
-
* @param atCache - cache of access tokens
|
|
26
|
-
*/
|
|
27
|
-
static serializeAccessTokens(atCache: AccessTokenCache): Record<string, SerializedAccessTokenEntity>;
|
|
28
|
-
/**
|
|
29
|
-
* Serialize refreshTokens
|
|
30
|
-
* @param rtCache - cache of refresh tokens
|
|
31
|
-
*/
|
|
32
|
-
static serializeRefreshTokens(rtCache: RefreshTokenCache): Record<string, SerializedRefreshTokenEntity>;
|
|
33
|
-
/**
|
|
34
|
-
* Serialize amdtCache
|
|
35
|
-
* @param amdtCache - cache of app metadata
|
|
36
|
-
*/
|
|
37
|
-
static serializeAppMetadata(amdtCache: AppMetadataCache): Record<string, SerializedAppMetadataEntity>;
|
|
38
|
-
/**
|
|
39
|
-
* Serialize the cache
|
|
40
|
-
* @param inMemCache - itemised cache read from the JSON
|
|
41
|
-
*/
|
|
42
|
-
static serializeAllCache(inMemCache: InMemoryCache): JsonCache;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=Serializer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Serializer.d.ts","sourceRoot":"","sources":["../../../../src/cache/serializer/Serializer.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,aAAa,EACb,SAAS,EACT,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC9B,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,qBAAa,UAAU;IACnB;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;IAIjD;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CACpB,QAAQ,EAAE,YAAY,GACvB,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC;IA0B1C;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CACpB,QAAQ,EAAE,YAAY,GACvB,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC;IAiB1C;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CACxB,OAAO,EAAE,gBAAgB,GAC1B,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC;IA0B9C;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CACzB,OAAO,EAAE,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC;IAmB/C;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CACvB,SAAS,EAAE,gBAAgB,GAC5B,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC;IAc9C;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,UAAU,EAAE,aAAa,GAAG,SAAS;CASjE"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache, ValidCacheType } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* Key value store for in-memory cache
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export type CacheKVStore = Record<string, ValidCacheType>;
|
|
7
|
-
/**
|
|
8
|
-
* Cache format read from the cache blob provided to the configuration during app instantiation
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
export type JsonCache = {
|
|
12
|
-
Account: Record<string, SerializedAccountEntity>;
|
|
13
|
-
IdToken: Record<string, SerializedIdTokenEntity>;
|
|
14
|
-
AccessToken: Record<string, SerializedAccessTokenEntity>;
|
|
15
|
-
RefreshToken: Record<string, SerializedRefreshTokenEntity>;
|
|
16
|
-
AppMetadata: Record<string, SerializedAppMetadataEntity>;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Intermittent type to handle in-memory data objects with defined types
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export type InMemoryCache = {
|
|
23
|
-
accounts: AccountCache;
|
|
24
|
-
idTokens: IdTokenCache;
|
|
25
|
-
accessTokens: AccessTokenCache;
|
|
26
|
-
refreshTokens: RefreshTokenCache;
|
|
27
|
-
appMetadata: AppMetadataCache;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Account type
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export type SerializedAccountEntity = {
|
|
34
|
-
home_account_id: string;
|
|
35
|
-
environment: string;
|
|
36
|
-
realm: string;
|
|
37
|
-
local_account_id: string;
|
|
38
|
-
username: string;
|
|
39
|
-
authority_type: string;
|
|
40
|
-
name?: string;
|
|
41
|
-
client_info?: string;
|
|
42
|
-
last_modification_time?: string;
|
|
43
|
-
last_modification_app?: string;
|
|
44
|
-
tenantProfiles?: string[];
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Idtoken credential type
|
|
48
|
-
* @public
|
|
49
|
-
*/
|
|
50
|
-
export type SerializedIdTokenEntity = {
|
|
51
|
-
home_account_id: string;
|
|
52
|
-
environment: string;
|
|
53
|
-
credential_type: string;
|
|
54
|
-
client_id: string;
|
|
55
|
-
secret: string;
|
|
56
|
-
realm: string;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Access token credential type
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
62
|
-
export type SerializedAccessTokenEntity = {
|
|
63
|
-
home_account_id: string;
|
|
64
|
-
environment: string;
|
|
65
|
-
credential_type: string;
|
|
66
|
-
client_id: string;
|
|
67
|
-
secret: string;
|
|
68
|
-
realm: string;
|
|
69
|
-
target: string;
|
|
70
|
-
cached_at: string;
|
|
71
|
-
expires_on: string;
|
|
72
|
-
extended_expires_on?: string;
|
|
73
|
-
refresh_on?: string;
|
|
74
|
-
key_id?: string;
|
|
75
|
-
token_type?: string;
|
|
76
|
-
userAssertionHash?: string;
|
|
77
|
-
resource?: string;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Refresh token credential type
|
|
81
|
-
* @public
|
|
82
|
-
*/
|
|
83
|
-
export type SerializedRefreshTokenEntity = {
|
|
84
|
-
home_account_id: string;
|
|
85
|
-
environment: string;
|
|
86
|
-
credential_type: string;
|
|
87
|
-
client_id: string;
|
|
88
|
-
secret: string;
|
|
89
|
-
family_id?: string;
|
|
90
|
-
target?: string;
|
|
91
|
-
realm?: string;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* AppMetadata type
|
|
95
|
-
* @public
|
|
96
|
-
*/
|
|
97
|
-
export type SerializedAppMetadataEntity = {
|
|
98
|
-
client_id: string;
|
|
99
|
-
environment: string;
|
|
100
|
-
family_id?: string;
|
|
101
|
-
};
|
|
102
|
-
//# sourceMappingURL=SerializerTypes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SerializerTypes.d.ts","sourceRoot":"","sources":["../../../../src/cache/serializer/SerializerTypes.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACjB,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IACjD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IACjD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;IACzD,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;IAC3D,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;CAC5D,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC;IACvB,YAAY,EAAE,gBAAgB,CAAC;IAC/B,aAAa,EAAE,iBAAiB,CAAC;IACjC,WAAW,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ClientConfiguration, CommonClientConfiguration, INetworkModule, NetworkRequestOptions, Logger, ICrypto, CacheManager, ServerTelemetryManager, Authority, CcsCredential, RequestThumbprint, ServerAuthorizationTokenResponse, NetworkResponse, BaseAuthRequest, StubPerformanceClient } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class BaseClient {
|
|
7
|
-
logger: Logger;
|
|
8
|
-
protected config: CommonClientConfiguration;
|
|
9
|
-
protected cryptoUtils: ICrypto;
|
|
10
|
-
protected cacheManager: CacheManager;
|
|
11
|
-
protected networkClient: INetworkModule;
|
|
12
|
-
protected serverTelemetryManager: ServerTelemetryManager | null;
|
|
13
|
-
authority: Authority;
|
|
14
|
-
protected performanceClient: StubPerformanceClient;
|
|
15
|
-
protected constructor(configuration: ClientConfiguration);
|
|
16
|
-
/**
|
|
17
|
-
* Creates default headers for requests to token endpoint
|
|
18
|
-
*/
|
|
19
|
-
protected createTokenRequestHeaders(ccsCred?: CcsCredential): Record<string, string>;
|
|
20
|
-
/**
|
|
21
|
-
* Http post to token endpoint
|
|
22
|
-
* @param tokenEndpoint
|
|
23
|
-
* @param queryString
|
|
24
|
-
* @param headers
|
|
25
|
-
* @param thumbprint
|
|
26
|
-
*/
|
|
27
|
-
protected executePostToTokenEndpoint(tokenEndpoint: string, queryString: string, headers: Record<string, string>, thumbprint: RequestThumbprint, correlationId: string): Promise<NetworkResponse<ServerAuthorizationTokenResponse>>;
|
|
28
|
-
/**
|
|
29
|
-
* Wraps sendPostRequestAsync with necessary preflight and postflight logic
|
|
30
|
-
* @param thumbprint - Request thumbprint for throttling
|
|
31
|
-
* @param tokenEndpoint - Endpoint to make the POST to
|
|
32
|
-
* @param options - Body and Headers to include on the POST request
|
|
33
|
-
* @param correlationId - CorrelationId for telemetry
|
|
34
|
-
*/
|
|
35
|
-
sendPostRequest<T extends ServerAuthorizationTokenResponse>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions, correlationId: string): Promise<NetworkResponse<T>>;
|
|
36
|
-
/**
|
|
37
|
-
* Creates query string for the /token request
|
|
38
|
-
* @param request
|
|
39
|
-
*/
|
|
40
|
-
createTokenQueryParameters(request: BaseAuthRequest): string;
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=BaseClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseClient.d.ts","sourceRoot":"","sources":["../../../src/client/BaseClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,mBAAmB,EAEnB,yBAAyB,EACzB,cAAc,EACd,qBAAqB,EACrB,MAAM,EACN,OAAO,EACP,YAAY,EACZ,sBAAsB,EACtB,SAAS,EACT,aAAa,EAEb,iBAAiB,EACjB,gCAAgC,EAChC,eAAe,EACf,eAAe,EACf,qBAAqB,EACxB,MAAM,yBAAyB,CAAC;AAGjC;;;GAGG;AACH,8BAAsB,UAAU;IAErB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAE5B,SAAS,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;IAEnD,SAAS,aAAa,aAAa,EAAE,mBAAmB;IAyBxD;;OAEG;IACH,SAAS,CAAC,yBAAyB,CAC/B,OAAO,CAAC,EAAE,aAAa,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAQzB;;;;;;OAMG;cACa,0BAA0B,CACtC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,eAAe,CAAC,gCAAgC,CAAC,CAAC;IAe7D;;;;;;OAMG;IACG,eAAe,CAAC,CAAC,SAAS,gCAAgC,EAC5D,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,qBAAqB,EAC9B,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAa9B;;;OAGG;IACH,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM;CAQ/D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientApplication.d.ts","sourceRoot":"","sources":["../../../src/client/ClientApplication.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { CryptoProvider } from "../crypto/CryptoProvider.js";
|
|
2
|
-
/**
|
|
3
|
-
* Client assertion of type jwt-bearer used in confidential client flows
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export declare class ClientAssertion {
|
|
7
|
-
private jwt;
|
|
8
|
-
private privateKey;
|
|
9
|
-
private thumbprint;
|
|
10
|
-
private useSha256;
|
|
11
|
-
private expirationTime;
|
|
12
|
-
private issuer;
|
|
13
|
-
private jwtAudience;
|
|
14
|
-
private publicCertificate;
|
|
15
|
-
/**
|
|
16
|
-
* Initialize the ClientAssertion class from the clientAssertion passed by the user
|
|
17
|
-
* @param assertion - refer https://tools.ietf.org/html/rfc7521
|
|
18
|
-
*/
|
|
19
|
-
static fromAssertion(assertion: string): ClientAssertion;
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Use fromCertificateWithSha256Thumbprint instead, with a SHA-256 thumprint
|
|
22
|
-
* Initialize the ClientAssertion class from the certificate passed by the user
|
|
23
|
-
* @param thumbprint - identifier of a certificate
|
|
24
|
-
* @param privateKey - secret key
|
|
25
|
-
* @param publicCertificate - electronic document provided to prove the ownership of the public key
|
|
26
|
-
*/
|
|
27
|
-
static fromCertificate(thumbprint: string, privateKey: string, publicCertificate?: string): ClientAssertion;
|
|
28
|
-
/**
|
|
29
|
-
* Initialize the ClientAssertion class from the certificate passed by the user
|
|
30
|
-
* @param thumbprint - identifier of a certificate
|
|
31
|
-
* @param privateKey - secret key
|
|
32
|
-
* @param publicCertificate - electronic document provided to prove the ownership of the public key
|
|
33
|
-
*/
|
|
34
|
-
static fromCertificateWithSha256Thumbprint(thumbprint: string, privateKey: string, publicCertificate?: string): ClientAssertion;
|
|
35
|
-
/**
|
|
36
|
-
* Update JWT for certificate based clientAssertion, if passed by the user, uses it as is
|
|
37
|
-
* @param cryptoProvider - library's crypto helper
|
|
38
|
-
* @param issuer - iss claim
|
|
39
|
-
* @param jwtAudience - aud claim
|
|
40
|
-
*/
|
|
41
|
-
getJwt(cryptoProvider: CryptoProvider, issuer: string, jwtAudience: string): string;
|
|
42
|
-
/**
|
|
43
|
-
* JWT format and required claims specified: https://tools.ietf.org/html/rfc7523#section-3
|
|
44
|
-
*/
|
|
45
|
-
private createJwt;
|
|
46
|
-
/**
|
|
47
|
-
* Utility API to check expiration
|
|
48
|
-
*/
|
|
49
|
-
private isExpired;
|
|
50
|
-
/**
|
|
51
|
-
* Extracts the raw certs from a given certificate string and returns them in an array.
|
|
52
|
-
* @param publicCertificate - electronic document provided to prove the ownership of the public key
|
|
53
|
-
*/
|
|
54
|
-
static parseCertificate(publicCertificate: string): Array<string>;
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=ClientAssertion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientAssertion.d.ts","sourceRoot":"","sources":["../../../src/client/ClientAssertion.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAK7D;;;GAGG;AACH,qBAAa,eAAe;IACxB,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,iBAAiB,CAAgB;IAEzC;;;OAGG;WACW,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe;IAM/D;;;;;;OAMG;WACW,eAAe,CACzB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,iBAAiB,CAAC,EAAE,MAAM,GAC3B,eAAe;IAYlB;;;;;OAKG;WACW,mCAAmC,CAC7C,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,iBAAiB,CAAC,EAAE,MAAM,GAC3B,eAAe;IAYlB;;;;;OAKG;IACI,MAAM,CACT,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GACpB,MAAM;IA0BT;;OAEG;IACH,OAAO,CAAC,SAAS;IA8CjB;;OAEG;IACH,OAAO,CAAC,SAAS;IAIjB;;;OAGG;WACW,gBAAgB,CAAC,iBAAiB,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;CAoB3E"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { AuthenticationResult, Authority, CacheManager, ClientConfiguration, Constants, IAppTokenProvider, ICrypto, ServerTelemetryManager } from "@azure/msal-common/node";
|
|
2
|
-
import { ManagedIdentityConfiguration } from "../config/Configuration.js";
|
|
3
|
-
import { CommonClientCredentialRequest } from "../request/CommonClientCredentialRequest.js";
|
|
4
|
-
import { BaseClient } from "./BaseClient.js";
|
|
5
|
-
/**
|
|
6
|
-
* OAuth2.0 client credential grant
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare class ClientCredentialClient extends BaseClient {
|
|
10
|
-
private readonly appTokenProvider?;
|
|
11
|
-
constructor(configuration: ClientConfiguration, appTokenProvider?: IAppTokenProvider);
|
|
12
|
-
/**
|
|
13
|
-
* Public API to acquire a token with ClientCredential Flow for Confidential clients
|
|
14
|
-
* @param request - CommonClientCredentialRequest provided by the developer
|
|
15
|
-
*/
|
|
16
|
-
acquireToken(request: CommonClientCredentialRequest): Promise<AuthenticationResult | null>;
|
|
17
|
-
/**
|
|
18
|
-
* looks up cache if the tokens are cached already
|
|
19
|
-
*/
|
|
20
|
-
getCachedAuthenticationResult(request: CommonClientCredentialRequest, config: ClientConfiguration | ManagedIdentityConfiguration, cryptoUtils: ICrypto, authority: Authority, cacheManager: CacheManager, serverTelemetryManager?: ServerTelemetryManager | null): Promise<[AuthenticationResult | null, Constants.CacheOutcome]>;
|
|
21
|
-
/**
|
|
22
|
-
* Reads access token from the cache
|
|
23
|
-
*/
|
|
24
|
-
private readAccessTokenFromCache;
|
|
25
|
-
/**
|
|
26
|
-
* Makes a network call to request the token from the service
|
|
27
|
-
* @param request - CommonClientCredentialRequest provided by the developer
|
|
28
|
-
* @param authority - authority object
|
|
29
|
-
*/
|
|
30
|
-
private executeTokenRequest;
|
|
31
|
-
/**
|
|
32
|
-
* generate the request to the server in the acceptable format
|
|
33
|
-
* @param request - CommonClientCredentialRequest provided by the developer
|
|
34
|
-
*/
|
|
35
|
-
private createTokenRequestBody;
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=ClientCredentialClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientCredentialClient.d.ts","sourceRoot":"","sources":["../../../src/client/ClientCredentialClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,oBAAoB,EACpB,SAAS,EACT,YAAY,EAEZ,mBAAmB,EACnB,SAAS,EAET,iBAAiB,EACjB,OAAO,EAMP,sBAAsB,EASzB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACH,4BAA4B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,qBAAa,sBAAuB,SAAQ,UAAU;IAClD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAoB;gBAGlD,aAAa,EAAE,mBAAmB,EAClC,gBAAgB,CAAC,EAAE,iBAAiB;IAMxC;;;OAGG;IACU,YAAY,CACrB,OAAO,EAAE,6BAA6B,GACvC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA0CvC;;OAEG;IACU,6BAA6B,CACtC,OAAO,EAAE,6BAA6B,EACtC,MAAM,EAAE,mBAAmB,GAAG,4BAA4B,EAC1D,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,sBAAsB,CAAC,EAAE,sBAAsB,GAAG,IAAI,GACvD,OAAO,CAAC,CAAC,oBAAoB,GAAG,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IA8FjE;;OAEG;IACH,OAAO,CAAC,wBAAwB;IA+BhC;;;;OAIG;YACW,mBAAmB;IAoGjC;;;OAGG;YACW,sBAAsB;CAiFvC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ClientApplication } from "./ClientApplication.js";
|
|
2
|
-
import { Configuration } from "../config/Configuration.js";
|
|
3
|
-
import { AuthenticationResult, IAppTokenProvider } from "@azure/msal-common/node";
|
|
4
|
-
import { IConfidentialClientApplication } from "./IConfidentialClientApplication.js";
|
|
5
|
-
import { OnBehalfOfRequest } from "../request/OnBehalfOfRequest.js";
|
|
6
|
-
import { ClientCredentialRequest } from "../request/ClientCredentialRequest.js";
|
|
7
|
-
/**
|
|
8
|
-
* This class is to be used to acquire tokens for confidential client applications (webApp, webAPI). Confidential client applications
|
|
9
|
-
* will configure application secrets, client certificates/assertions as applicable
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export declare class ConfidentialClientApplication extends ClientApplication implements IConfidentialClientApplication {
|
|
13
|
-
private appTokenProvider?;
|
|
14
|
-
/**
|
|
15
|
-
* Constructor for the ConfidentialClientApplication
|
|
16
|
-
*
|
|
17
|
-
* Required attributes in the Configuration object are:
|
|
18
|
-
* - clientID: the application ID of your application. You can obtain one by registering your application with our application registration portal
|
|
19
|
-
* - authority: the authority URL for your application.
|
|
20
|
-
* - client credential: Must set either client secret, certificate, or assertion for confidential clients. You can obtain a client secret from the application registration portal.
|
|
21
|
-
*
|
|
22
|
-
* In Azure AD, authority is a URL indicating of the form https://login.microsoftonline.com/\{Enter_the_Tenant_Info_Here\}.
|
|
23
|
-
* If your application supports Accounts in one organizational directory, replace "Enter_the_Tenant_Info_Here" value with the Tenant Id or Tenant name (for example, contoso.microsoft.com).
|
|
24
|
-
* If your application supports Accounts in any organizational directory, replace "Enter_the_Tenant_Info_Here" value with organizations.
|
|
25
|
-
* If your application supports Accounts in any organizational directory and personal Microsoft accounts, replace "Enter_the_Tenant_Info_Here" value with common.
|
|
26
|
-
* To restrict support to Personal Microsoft accounts only, replace "Enter_the_Tenant_Info_Here" value with consumers.
|
|
27
|
-
*
|
|
28
|
-
* In Azure B2C, authority is of the form https://\{instance\}/tfp/\{tenant\}/\{policyName\}/
|
|
29
|
-
* Full B2C functionality will be available in this library in future versions.
|
|
30
|
-
*
|
|
31
|
-
* @param Configuration - configuration object for the MSAL ConfidentialClientApplication instance
|
|
32
|
-
*/
|
|
33
|
-
constructor(configuration: Configuration);
|
|
34
|
-
/**
|
|
35
|
-
* This extensibility point only works for the client_credential flow, i.e. acquireTokenByClientCredential and
|
|
36
|
-
* is meant for Azure SDK to enhance Managed Identity support.
|
|
37
|
-
*
|
|
38
|
-
* @param IAppTokenProvider - Extensibility interface, which allows the app developer to return a token from a custom source.
|
|
39
|
-
*/
|
|
40
|
-
SetAppTokenProvider(provider: IAppTokenProvider): void;
|
|
41
|
-
/**
|
|
42
|
-
* Acquires tokens from the authority for the application (not for an end user).
|
|
43
|
-
*/
|
|
44
|
-
acquireTokenByClientCredential(request: ClientCredentialRequest): Promise<AuthenticationResult | null>;
|
|
45
|
-
/**
|
|
46
|
-
* Acquires tokens from the authority for the application.
|
|
47
|
-
*
|
|
48
|
-
* Used in scenarios where the current app is a middle-tier service which was called with a token
|
|
49
|
-
* representing an end user. The current app can use the token (oboAssertion) to request another
|
|
50
|
-
* token to access downstream web API, on behalf of that user.
|
|
51
|
-
*
|
|
52
|
-
* The current middle-tier app has no user interaction to obtain consent.
|
|
53
|
-
* See how to gain consent upfront for your middle-tier app from this article.
|
|
54
|
-
* https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow#gaining-consent-for-the-middle-tier-application
|
|
55
|
-
*/
|
|
56
|
-
acquireTokenOnBehalfOf(request: OnBehalfOfRequest): Promise<AuthenticationResult | null>;
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=ConfidentialClientApplication.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfidentialClientApplication.d.ts","sourceRoot":"","sources":["../../../src/client/ConfidentialClientApplication.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAQ3D,OAAO,EACH,oBAAoB,EAGpB,iBAAiB,EAOpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAKhF;;;;GAIG;AACH,qBAAa,6BACT,SAAQ,iBACR,YAAW,8BAA8B;IAEzC,OAAO,CAAC,gBAAgB,CAAC,CAAoB;IAE7C;;;;;;;;;;;;;;;;;;OAkBG;gBACS,aAAa,EAAE,aAAa;IA8DxC;;;;;OAKG;IACH,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;IAItD;;OAEG;IACU,8BAA8B,CACvC,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA8GvC;;;;;;;;;;OAUG;IACU,sBAAsB,CAC/B,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;CAmC1C"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { AuthenticationResult, ClientConfiguration } from "@azure/msal-common/node";
|
|
2
|
-
import { CommonDeviceCodeRequest } from "../request/CommonDeviceCodeRequest.js";
|
|
3
|
-
import { BaseClient } from "./BaseClient.js";
|
|
4
|
-
/**
|
|
5
|
-
* OAuth2.0 Device code client
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare class DeviceCodeClient extends BaseClient {
|
|
9
|
-
constructor(configuration: ClientConfiguration);
|
|
10
|
-
/**
|
|
11
|
-
* Gets device code from device code endpoint, calls back to with device code response, and
|
|
12
|
-
* polls token endpoint to exchange device code for tokens
|
|
13
|
-
* @param request - developer provided CommonDeviceCodeRequest
|
|
14
|
-
*/
|
|
15
|
-
acquireToken(request: CommonDeviceCodeRequest): Promise<AuthenticationResult | null>;
|
|
16
|
-
/**
|
|
17
|
-
* Creates device code request and executes http GET
|
|
18
|
-
* @param request - developer provided CommonDeviceCodeRequest
|
|
19
|
-
*/
|
|
20
|
-
private getDeviceCode;
|
|
21
|
-
/**
|
|
22
|
-
* Creates query string for the device code request
|
|
23
|
-
* @param request - developer provided CommonDeviceCodeRequest
|
|
24
|
-
*/
|
|
25
|
-
createExtraQueryParameters(request: CommonDeviceCodeRequest): string;
|
|
26
|
-
/**
|
|
27
|
-
* Executes POST request to device code endpoint
|
|
28
|
-
* @param deviceCodeEndpoint - token endpoint
|
|
29
|
-
* @param queryString - string to be used in the body of the request
|
|
30
|
-
* @param headers - headers for the request
|
|
31
|
-
* @param thumbprint - unique request thumbprint
|
|
32
|
-
* @param correlationId - correlation id to be used in the request
|
|
33
|
-
*/
|
|
34
|
-
private executePostRequestToDeviceCodeEndpoint;
|
|
35
|
-
/**
|
|
36
|
-
* Create device code endpoint query parameters and returns string
|
|
37
|
-
* @param request - developer provided CommonDeviceCodeRequest
|
|
38
|
-
*/
|
|
39
|
-
private createQueryString;
|
|
40
|
-
/**
|
|
41
|
-
* Breaks the polling with specific conditions
|
|
42
|
-
* @param deviceCodeExpirationTime - expiration time for the device code request
|
|
43
|
-
* @param userSpecifiedTimeout - developer provided timeout, to be compared against deviceCodeExpirationTime
|
|
44
|
-
* @param userSpecifiedCancelFlag - boolean indicating the developer would like to cancel the request
|
|
45
|
-
*/
|
|
46
|
-
private continuePolling;
|
|
47
|
-
/**
|
|
48
|
-
* Creates token request with device code response and polls token endpoint at interval set by the device code response
|
|
49
|
-
* @param request - developer provided CommonDeviceCodeRequest
|
|
50
|
-
* @param deviceCodeResponse - DeviceCodeResponse returned by the security token service device code endpoint
|
|
51
|
-
*/
|
|
52
|
-
private acquireTokenWithDeviceCode;
|
|
53
|
-
/**
|
|
54
|
-
* Creates query parameters and converts to string.
|
|
55
|
-
* @param request - developer provided CommonDeviceCodeRequest
|
|
56
|
-
* @param deviceCodeResponse - DeviceCodeResponse returned by the security token service device code endpoint
|
|
57
|
-
*/
|
|
58
|
-
private createTokenRequestBody;
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=DeviceCodeClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceCodeClient.d.ts","sourceRoot":"","sources":["../../../src/client/DeviceCodeClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,oBAAoB,EACpB,mBAAmB,EActB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;gBAChC,aAAa,EAAE,mBAAmB;IAI9C;;;;OAIG;IACU,YAAY,CACrB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA8BvC;;;OAGG;YACW,aAAa;IA+B3B;;;OAGG;IACI,0BAA0B,CAC7B,OAAO,EAAE,uBAAuB,GACjC,MAAM;IAaT;;;;;;;OAOG;YACW,sCAAsC;IAoCpD;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IA+BzB;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IA2CvB;;;;OAIG;YACW,0BAA0B;IA8FxC;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;CAqDjC"}
|
|
@@ -1 +0,0 @@
|
|
|
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,sBAAsB;IACtB,UAAU,IAAI,IAAI,CAAC;IAEnB,0FAA0F;IAC1F,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC1D"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { AccountInfo, AuthenticationResult, Logger } from "@azure/msal-common/node";
|
|
2
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
3
|
-
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
|
|
4
|
-
import { DeviceCodeRequest } from "../request/DeviceCodeRequest.js";
|
|
5
|
-
import { RefreshTokenRequest } from "../request/RefreshTokenRequest.js";
|
|
6
|
-
import { SilentFlowRequest } from "../request/SilentFlowRequest.js";
|
|
7
|
-
import { UsernamePasswordRequest } from "../request/UsernamePasswordRequest.js";
|
|
8
|
-
import { TokenCache } from "../cache/TokenCache.js";
|
|
9
|
-
import { InteractiveRequest } from "../request/InteractiveRequest.js";
|
|
10
|
-
import { SignOutRequest } from "../request/SignOutRequest.js";
|
|
11
|
-
/**
|
|
12
|
-
* Interface for the PublicClientApplication class defining the public API signatures
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export interface IPublicClientApplication {
|
|
16
|
-
/** Creates the URL of the authorization request */
|
|
17
|
-
getAuthCodeUrl(request: AuthorizationUrlRequest): Promise<string>;
|
|
18
|
-
/** Acquires a token by exchanging the authorization code received from the first step of OAuth 2.0 Authorization Code Flow */
|
|
19
|
-
acquireTokenByCode(request: AuthorizationCodeRequest): Promise<AuthenticationResult>;
|
|
20
|
-
/** Acquires a token interactively */
|
|
21
|
-
acquireTokenInteractive(request: InteractiveRequest): Promise<AuthenticationResult>;
|
|
22
|
-
/** Acquires a token silently when a user specifies the account the token is requested for */
|
|
23
|
-
acquireTokenSilent(request: SilentFlowRequest): Promise<AuthenticationResult>;
|
|
24
|
-
/** Acquires a token by exchanging the refresh token provided for a new set of tokens */
|
|
25
|
-
acquireTokenByRefreshToken(request: RefreshTokenRequest): Promise<AuthenticationResult | null>;
|
|
26
|
-
/** Acquires a token from the authority using OAuth2.0 device code flow */
|
|
27
|
-
acquireTokenByDeviceCode(request: DeviceCodeRequest): Promise<AuthenticationResult | null>;
|
|
28
|
-
/**
|
|
29
|
-
* Acquires tokens with password grant by exchanging client applications username and password for credentials
|
|
30
|
-
* @deprecated - Use a more secure flow instead
|
|
31
|
-
*/
|
|
32
|
-
acquireTokenByUsernamePassword(request: UsernamePasswordRequest): Promise<AuthenticationResult | null>;
|
|
33
|
-
/** Gets the token cache for the application */
|
|
34
|
-
getTokenCache(): TokenCache;
|
|
35
|
-
/** Returns the logger instance */
|
|
36
|
-
getLogger(): Logger;
|
|
37
|
-
/** Replaces the default logger set in configurations with new Logger with new configurations */
|
|
38
|
-
setLogger(logger: Logger): void;
|
|
39
|
-
/** Clear the cache */
|
|
40
|
-
clearCache(): void;
|
|
41
|
-
/** Gets all cached accounts */
|
|
42
|
-
getAllAccounts(): Promise<AccountInfo[]>;
|
|
43
|
-
/** Removes cache artifacts associated with the given account */
|
|
44
|
-
signOut(request: SignOutRequest): Promise<void>;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=IPublicClientApplication.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,sBAAsB;IACtB,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"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { AuthenticationResult } from "@azure/msal-common/node";
|
|
2
|
-
import { ManagedIdentityConfiguration } from "../config/Configuration.js";
|
|
3
|
-
import { ManagedIdentityRequestParams } from "../request/ManagedIdentityRequestParams.js";
|
|
4
|
-
import { ManagedIdentitySourceNames } from "../utils/Constants.js";
|
|
5
|
-
/**
|
|
6
|
-
* Class to initialize a managed identity and identify the service
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare class ManagedIdentityApplication {
|
|
10
|
-
private config;
|
|
11
|
-
private logger;
|
|
12
|
-
private static nodeStorage?;
|
|
13
|
-
private networkClient;
|
|
14
|
-
private cryptoProvider;
|
|
15
|
-
private fakeAuthority;
|
|
16
|
-
private fakeClientCredentialClient;
|
|
17
|
-
private managedIdentityClient;
|
|
18
|
-
private hashUtils;
|
|
19
|
-
constructor(configuration?: ManagedIdentityConfiguration);
|
|
20
|
-
/**
|
|
21
|
-
* Acquire an access token from the cache or the managed identity
|
|
22
|
-
* @param managedIdentityRequest - the ManagedIdentityRequestParams object passed in by the developer
|
|
23
|
-
* @returns the access token
|
|
24
|
-
*/
|
|
25
|
-
acquireToken(managedIdentityRequestParams: ManagedIdentityRequestParams): Promise<AuthenticationResult>;
|
|
26
|
-
/**
|
|
27
|
-
* Acquires a token from a managed identity endpoint.
|
|
28
|
-
*
|
|
29
|
-
* @param managedIdentityRequest - The request object containing parameters for the managed identity token request.
|
|
30
|
-
* @param managedIdentityId - The identifier for the managed identity (e.g., client ID or resource ID).
|
|
31
|
-
* @param fakeAuthority - A placeholder authority used for the token request.
|
|
32
|
-
* @param refreshAccessToken - Optional flag indicating whether to force a refresh of the access token.
|
|
33
|
-
* @returns A promise that resolves to an AuthenticationResult containing the acquired token and related information.
|
|
34
|
-
*/
|
|
35
|
-
private acquireTokenFromManagedIdentity;
|
|
36
|
-
/**
|
|
37
|
-
* Determine the Managed Identity Source based on available environment variables. This API is consumed by Azure Identity SDK.
|
|
38
|
-
* @returns ManagedIdentitySourceNames - The Managed Identity source's name
|
|
39
|
-
*/
|
|
40
|
-
getManagedIdentitySource(): ManagedIdentitySourceNames;
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=ManagedIdentityApplication.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityApplication.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentityApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAUH,oBAAoB,EAKvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,4BAA4B,EAG/B,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAE1F,OAAO,EAEH,0BAA0B,EAC7B,MAAM,uBAAuB,CAAC;AAO/B;;;GAGG;AACH,qBAAa,0BAA0B;IACnC,OAAO,CAAC,MAAM,CAAmC;IAEjD,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAc;IACzC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;IAGvC,OAAO,CAAC,aAAa,CAAY;IAGjC,OAAO,CAAC,0BAA0B,CAAyB;IAE3D,OAAO,CAAC,qBAAqB,CAAwB;IAErD,OAAO,CAAC,SAAS,CAAY;gBAEjB,aAAa,CAAC,EAAE,4BAA4B;IA8DxD;;;;OAIG;IACU,YAAY,CACrB,4BAA4B,EAAE,4BAA4B,GAC3D,OAAO,CAAC,oBAAoB,CAAC;IAoGhC;;;;;;;;OAQG;YACW,+BAA+B;IAe7C;;;OAGG;IACI,wBAAwB,IAAI,0BAA0B;CAMhE"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Authority, INetworkModule, Logger, AuthenticationResult } from "@azure/msal-common/node";
|
|
2
|
-
import { CryptoProvider } from "../crypto/CryptoProvider.js";
|
|
3
|
-
import { ManagedIdentityRequest } from "../request/ManagedIdentityRequest.js";
|
|
4
|
-
import { ManagedIdentityId } from "../config/ManagedIdentityId.js";
|
|
5
|
-
import { NodeStorage } from "../cache/NodeStorage.js";
|
|
6
|
-
import { ManagedIdentitySourceNames } from "../utils/Constants.js";
|
|
7
|
-
export declare class ManagedIdentityClient {
|
|
8
|
-
private logger;
|
|
9
|
-
private nodeStorage;
|
|
10
|
-
private networkClient;
|
|
11
|
-
private cryptoProvider;
|
|
12
|
-
private disableInternalRetries;
|
|
13
|
-
private static identitySource?;
|
|
14
|
-
static sourceName?: ManagedIdentitySourceNames;
|
|
15
|
-
constructor(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean);
|
|
16
|
-
sendManagedIdentityTokenRequest(managedIdentityRequest: ManagedIdentityRequest, managedIdentityId: ManagedIdentityId, fakeAuthority: Authority, refreshAccessToken?: boolean): Promise<AuthenticationResult>;
|
|
17
|
-
private allEnvironmentVariablesAreDefined;
|
|
18
|
-
/**
|
|
19
|
-
* Determine the Managed Identity Source based on available environment variables. This API is consumed by ManagedIdentityApplication's getManagedIdentitySource.
|
|
20
|
-
* @returns ManagedIdentitySourceNames - The Managed Identity source's name
|
|
21
|
-
*/
|
|
22
|
-
getManagedIdentitySource(): ManagedIdentitySourceNames;
|
|
23
|
-
/**
|
|
24
|
-
* Tries to create a managed identity source for all sources
|
|
25
|
-
* @returns the managed identity Source
|
|
26
|
-
*/
|
|
27
|
-
private selectManagedIdentitySource;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=ManagedIdentityClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityClient.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentityClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,SAAS,EACT,cAAc,EACd,MAAM,EACN,oBAAoB,EACvB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAK7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAOnE,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,sBAAsB,CAAU;IAExC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,CAA4B;IAC1D,OAAc,UAAU,CAAC,EAAE,0BAA0B,CAAC;gBAGlD,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO;IAStB,+BAA+B,CACxC,sBAAsB,EAAE,sBAAsB,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,SAAS,EACxB,kBAAkB,CAAC,EAAE,OAAO,GAC7B,OAAO,CAAC,oBAAoB,CAAC;IAqBhC,OAAO,CAAC,iCAAiC;IAUzC;;;OAGG;IACI,wBAAwB,IAAI,0BAA0B;IA2B7D;;;OAGG;IACH,OAAO,CAAC,2BAA2B;CA6DtC"}
|