@azure/msal-node 2.13.0 → 2.14.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/ITokenCache.d.ts +1 -1
- package/dist/cache/ITokenCache.d.ts.map +1 -1
- package/dist/cache/NodeStorage.d.ts +1 -1
- package/dist/cache/NodeStorage.d.ts.map +1 -1
- package/dist/cache/NodeStorage.mjs +2 -2
- package/dist/cache/TokenCache.d.ts +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +2 -2
- package/dist/cache/distributed/DistributedCachePlugin.d.ts +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +2 -2
- package/dist/cache/distributed/IPartitionManager.d.ts +1 -1
- package/dist/cache/distributed/IPartitionManager.d.ts.map +1 -1
- package/dist/cache/serializer/Deserializer.d.ts +1 -1
- package/dist/cache/serializer/Deserializer.d.ts.map +1 -1
- package/dist/cache/serializer/Deserializer.mjs +2 -2
- package/dist/cache/serializer/Serializer.d.ts +1 -1
- package/dist/cache/serializer/Serializer.d.ts.map +1 -1
- package/dist/cache/serializer/Serializer.mjs +1 -1
- package/dist/cache/serializer/SerializerTypes.d.ts +1 -1
- package/dist/cache/serializer/SerializerTypes.d.ts.map +1 -1
- package/dist/client/ClientApplication.d.ts +1 -1
- package/dist/client/ClientApplication.d.ts.map +1 -1
- package/dist/client/ClientApplication.mjs +2 -2
- package/dist/client/ClientAssertion.mjs +2 -2
- package/dist/client/ClientCredentialClient.d.ts +2 -2
- package/dist/client/ClientCredentialClient.d.ts.map +1 -1
- package/dist/client/ClientCredentialClient.mjs +2 -2
- package/dist/client/ConfidentialClientApplication.d.ts +1 -1
- package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +3 -2
- package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
- package/dist/client/DeviceCodeClient.d.ts +1 -1
- package/dist/client/DeviceCodeClient.d.ts.map +1 -1
- package/dist/client/DeviceCodeClient.mjs +2 -2
- package/dist/client/IConfidentialClientApplication.d.ts +1 -1
- package/dist/client/IConfidentialClientApplication.d.ts.map +1 -1
- package/dist/client/IPublicClientApplication.d.ts +1 -1
- package/dist/client/IPublicClientApplication.d.ts.map +1 -1
- package/dist/client/ManagedIdentityApplication.d.ts +4 -4
- package/dist/client/ManagedIdentityApplication.d.ts.map +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +2 -2
- package/dist/client/ManagedIdentityClient.d.ts +6 -6
- package/dist/client/ManagedIdentityClient.d.ts.map +1 -1
- package/dist/client/ManagedIdentityClient.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AppService.d.ts +6 -6
- package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +2 -2
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts +7 -7
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +2 -2
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +8 -8
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +2 -2
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts +6 -6
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +2 -2
- package/dist/client/ManagedIdentitySources/Imds.d.ts +6 -6
- package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +2 -2
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +6 -6
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +2 -2
- package/dist/client/OnBehalfOfClient.d.ts +1 -1
- package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
- package/dist/client/OnBehalfOfClient.mjs +2 -2
- package/dist/client/PublicClientApplication.d.ts +1 -1
- package/dist/client/PublicClientApplication.d.ts.map +1 -1
- package/dist/client/PublicClientApplication.mjs +2 -2
- package/dist/client/UsernamePasswordClient.d.ts +1 -1
- package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
- package/dist/client/UsernamePasswordClient.mjs +2 -2
- package/dist/config/Configuration.d.ts +3 -3
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +2 -2
- package/dist/config/ManagedIdentityId.d.ts +2 -2
- package/dist/config/ManagedIdentityId.d.ts.map +1 -1
- package/dist/config/ManagedIdentityId.mjs +1 -1
- package/dist/config/ManagedIdentityRequestParameters.d.ts +1 -1
- package/dist/config/ManagedIdentityRequestParameters.d.ts.map +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +2 -2
- package/dist/crypto/CryptoProvider.d.ts +1 -1
- package/dist/crypto/CryptoProvider.d.ts.map +1 -1
- package/dist/crypto/CryptoProvider.mjs +1 -1
- package/dist/crypto/GuidGenerator.d.ts +1 -1
- package/dist/crypto/GuidGenerator.d.ts.map +1 -1
- package/dist/crypto/GuidGenerator.mjs +1 -1
- package/dist/crypto/HashUtils.d.ts +1 -1
- package/dist/crypto/HashUtils.mjs +1 -1
- package/dist/crypto/PkceGenerator.d.ts +1 -1
- package/dist/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +2 -2
- package/dist/error/ManagedIdentityError.d.ts +2 -2
- package/dist/error/ManagedIdentityError.d.ts.map +1 -1
- package/dist/error/ManagedIdentityError.mjs +2 -2
- package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/dist/error/NodeAuthError.d.ts +1 -1
- package/dist/error/NodeAuthError.d.ts.map +1 -1
- package/dist/error/NodeAuthError.mjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/internals.mjs +5 -1
- package/dist/internals.mjs.map +1 -1
- package/dist/network/HttpClient.d.ts +3 -3
- package/dist/network/HttpClient.d.ts.map +1 -1
- package/dist/network/HttpClient.mjs +2 -2
- package/dist/network/HttpClientWithRetries.d.ts +2 -2
- package/dist/network/HttpClientWithRetries.d.ts.map +1 -1
- package/dist/network/HttpClientWithRetries.mjs +2 -2
- package/dist/network/ILoopbackClient.d.ts +1 -1
- package/dist/network/ILoopbackClient.d.ts.map +1 -1
- package/dist/network/LoopbackClient.d.ts +1 -1
- package/dist/network/LoopbackClient.d.ts.map +1 -1
- package/dist/network/LoopbackClient.mjs +3 -3
- package/dist/network/LoopbackClient.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/ClientCredentialRequest.d.ts +1 -1
- package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/DeviceCodeRequest.d.ts +1 -1
- package/dist/request/DeviceCodeRequest.d.ts.map +1 -1
- package/dist/request/InteractiveRequest.d.ts +1 -1
- package/dist/request/ManagedIdentityRequest.d.ts +2 -2
- package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
- package/dist/request/OnBehalfOfRequest.d.ts +1 -1
- package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/RefreshTokenRequest.d.ts +1 -1
- package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/SignOutRequest.d.ts +1 -1
- package/dist/request/SignOutRequest.d.ts.map +1 -1
- package/dist/request/SilentFlowRequest.d.ts +1 -1
- package/dist/request/SilentFlowRequest.d.ts.map +1 -1
- package/dist/request/UsernamePasswordRequest.d.ts +1 -1
- package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/dist/response/ManagedIdentityTokenResponse.d.ts +1 -1
- package/dist/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
- package/dist/retry/IHttpRetryPolicy.d.ts +1 -1
- package/dist/retry/LinearRetryPolicy.d.ts +2 -2
- package/dist/retry/LinearRetryPolicy.d.ts.map +1 -1
- package/dist/retry/LinearRetryPolicy.mjs +1 -1
- package/dist/utils/Constants.mjs +2 -2
- package/dist/utils/EncodingUtils.d.ts +1 -1
- package/dist/utils/EncodingUtils.mjs +2 -2
- package/dist/utils/NetworkUtils.d.ts +1 -1
- package/dist/utils/NetworkUtils.d.ts.map +1 -1
- package/dist/utils/NetworkUtils.mjs +1 -1
- package/dist/utils/NetworkUtils.mjs.map +1 -1
- package/lib/msal-node.cjs +12362 -0
- package/lib/msal-node.cjs.map +1 -0
- package/lib/package.json +1 -0
- package/lib/types/cache/ITokenCache.d.ts +16 -0
- package/lib/types/cache/ITokenCache.d.ts.map +1 -0
- package/lib/types/cache/NodeStorage.d.ts +194 -0
- package/lib/types/cache/NodeStorage.d.ts.map +1 -0
- package/lib/types/cache/TokenCache.d.ts +91 -0
- package/lib/types/cache/TokenCache.d.ts.map +1 -0
- package/lib/types/cache/distributed/DistributedCachePlugin.d.ts +11 -0
- package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +1 -0
- package/lib/types/cache/distributed/ICacheClient.d.ts +18 -0
- package/lib/types/cache/distributed/ICacheClient.d.ts.map +1 -0
- package/lib/types/cache/distributed/IPartitionManager.d.ts +29 -0
- package/lib/types/cache/distributed/IPartitionManager.d.ts.map +1 -0
- package/lib/types/cache/serializer/Deserializer.d.ts +43 -0
- package/lib/types/cache/serializer/Deserializer.d.ts.map +1 -0
- package/lib/types/cache/serializer/Serializer.d.ts +40 -0
- package/lib/types/cache/serializer/Serializer.d.ts.map +1 -0
- package/lib/types/cache/serializer/SerializerTypes.d.ts +103 -0
- package/lib/types/cache/serializer/SerializerTypes.d.ts.map +1 -0
- package/lib/types/client/ClientApplication.d.ts +144 -0
- package/lib/types/client/ClientApplication.d.ts.map +1 -0
- package/lib/types/client/ClientAssertion.d.ts +56 -0
- package/lib/types/client/ClientAssertion.d.ts.map +1 -0
- package/lib/types/client/ClientCredentialClient.d.ts +34 -0
- package/lib/types/client/ClientCredentialClient.d.ts.map +1 -0
- package/lib/types/client/ConfidentialClientApplication.d.ts +59 -0
- package/lib/types/client/ConfidentialClientApplication.d.ts.map +1 -0
- package/lib/types/client/DeviceCodeClient.d.ts +54 -0
- package/lib/types/client/DeviceCodeClient.d.ts.map +1 -0
- package/lib/types/client/IConfidentialClientApplication.d.ts +40 -0
- package/lib/types/client/IConfidentialClientApplication.d.ts.map +1 -0
- package/lib/types/client/IPublicClientApplication.d.ts +43 -0
- package/lib/types/client/IPublicClientApplication.d.ts.map +1 -0
- package/lib/types/client/ManagedIdentityApplication.d.ts +31 -0
- package/lib/types/client/ManagedIdentityApplication.d.ts.map +1 -0
- package/lib/types/client/ManagedIdentityClient.d.ts +28 -0
- package/lib/types/client/ManagedIdentityClient.d.ts.map +1 -0
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts +18 -0
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -0
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +28 -0
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -0
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +31 -0
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -0
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +17 -0
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -0
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts +13 -0
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -0
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +18 -0
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -0
- package/lib/types/client/OnBehalfOfClient.d.ts +48 -0
- package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -0
- package/lib/types/client/PublicClientApplication.d.ts +73 -0
- package/lib/types/client/PublicClientApplication.d.ts.map +1 -0
- package/lib/types/client/UsernamePasswordClient.d.ts +26 -0
- package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -0
- package/lib/types/config/Configuration.d.ts +132 -0
- package/lib/types/config/Configuration.d.ts.map +1 -0
- package/lib/types/config/ManagedIdentityId.d.ts +12 -0
- package/lib/types/config/ManagedIdentityId.d.ts.map +1 -0
- package/lib/types/config/ManagedIdentityRequestParameters.d.ts +12 -0
- package/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +1 -0
- package/lib/types/crypto/CryptoProvider.d.ts +63 -0
- package/lib/types/crypto/CryptoProvider.d.ts.map +1 -0
- package/lib/types/crypto/GuidGenerator.d.ts +15 -0
- package/lib/types/crypto/GuidGenerator.d.ts.map +1 -0
- package/lib/types/crypto/HashUtils.d.ts +9 -0
- package/lib/types/crypto/HashUtils.d.ts.map +1 -0
- package/lib/types/crypto/PkceGenerator.d.ts +23 -0
- package/lib/types/crypto/PkceGenerator.d.ts.map +1 -0
- package/lib/types/error/ManagedIdentityError.d.ts +31 -0
- package/lib/types/error/ManagedIdentityError.d.ts.map +1 -0
- package/lib/types/error/ManagedIdentityErrorCodes.d.ts +23 -0
- package/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +1 -0
- package/lib/types/error/NodeAuthError.d.ts +74 -0
- package/lib/types/error/NodeAuthError.d.ts.map +1 -0
- package/lib/types/index.d.ts +46 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/internals.d.ts +7 -0
- package/lib/types/internals.d.ts.map +1 -0
- package/lib/types/network/HttpClient.d.ts +26 -0
- package/lib/types/network/HttpClient.d.ts.map +1 -0
- package/lib/types/network/HttpClientWithRetries.d.ts +12 -0
- package/lib/types/network/HttpClientWithRetries.d.ts.map +1 -0
- package/lib/types/network/ILoopbackClient.d.ts +11 -0
- package/lib/types/network/ILoopbackClient.d.ts.map +1 -0
- package/lib/types/network/LoopbackClient.d.ts +22 -0
- package/lib/types/network/LoopbackClient.d.ts.map +1 -0
- package/lib/types/packageMetadata.d.ts +3 -0
- package/lib/types/packageMetadata.d.ts.map +1 -0
- package/lib/types/request/AuthorizationCodeRequest.d.ts +22 -0
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -0
- package/lib/types/request/AuthorizationUrlRequest.d.ts +34 -0
- package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -0
- package/lib/types/request/ClientCredentialRequest.d.ts +15 -0
- package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -0
- package/lib/types/request/DeviceCodeRequest.d.ts +16 -0
- package/lib/types/request/DeviceCodeRequest.d.ts.map +1 -0
- package/lib/types/request/InteractiveRequest.d.ts +23 -0
- package/lib/types/request/InteractiveRequest.d.ts.map +1 -0
- package/lib/types/request/ManagedIdentityRequest.d.ts +9 -0
- package/lib/types/request/ManagedIdentityRequest.d.ts.map +1 -0
- package/lib/types/request/ManagedIdentityRequestParams.d.ts +10 -0
- package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +1 -0
- package/lib/types/request/OnBehalfOfRequest.d.ts +15 -0
- package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -0
- package/lib/types/request/RefreshTokenRequest.d.ts +18 -0
- package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -0
- package/lib/types/request/SignOutRequest.d.ts +6 -0
- package/lib/types/request/SignOutRequest.d.ts.map +1 -0
- package/lib/types/request/SilentFlowRequest.d.ts +17 -0
- package/lib/types/request/SilentFlowRequest.d.ts.map +1 -0
- package/lib/types/request/UsernamePasswordRequest.d.ts +20 -0
- package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -0
- package/lib/types/response/ManagedIdentityTokenResponse.d.ts +35 -0
- package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +1 -0
- package/lib/types/retry/IHttpRetryPolicy.d.ts +6 -0
- package/lib/types/retry/IHttpRetryPolicy.d.ts.map +1 -0
- package/lib/types/retry/LinearRetryPolicy.d.ts +12 -0
- package/lib/types/retry/LinearRetryPolicy.d.ts.map +1 -0
- package/lib/types/utils/Constants.d.ts +142 -0
- package/lib/types/utils/Constants.d.ts.map +1 -0
- package/lib/types/utils/EncodingUtils.d.ts +27 -0
- package/lib/types/utils/EncodingUtils.d.ts.map +1 -0
- package/lib/types/utils/NetworkUtils.d.ts +6 -0
- package/lib/types/utils/NetworkUtils.d.ts.map +1 -0
- package/package.json +13 -10
- package/src/cache/ITokenCache.ts +1 -1
- package/src/cache/NodeStorage.ts +1 -1
- package/src/cache/TokenCache.ts +1 -1
- package/src/cache/distributed/DistributedCachePlugin.ts +1 -1
- package/src/cache/distributed/IPartitionManager.ts +1 -1
- package/src/cache/serializer/Deserializer.ts +1 -1
- package/src/cache/serializer/Serializer.ts +1 -1
- package/src/cache/serializer/SerializerTypes.ts +1 -1
- package/src/client/ClientApplication.ts +1 -1
- package/src/client/ClientAssertion.ts +1 -1
- package/src/client/ClientCredentialClient.ts +2 -2
- package/src/client/ConfidentialClientApplication.ts +1 -1
- package/src/client/DeviceCodeClient.ts +1 -1
- package/src/client/IConfidentialClientApplication.ts +1 -1
- package/src/client/IPublicClientApplication.ts +5 -1
- package/src/client/ManagedIdentityApplication.ts +9 -9
- package/src/client/ManagedIdentityClient.ts +13 -13
- package/src/client/ManagedIdentitySources/AppService.ts +7 -7
- package/src/client/ManagedIdentitySources/AzureArc.ts +9 -9
- package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -9
- package/src/client/ManagedIdentitySources/CloudShell.ts +8 -8
- package/src/client/ManagedIdentitySources/Imds.ts +7 -7
- package/src/client/ManagedIdentitySources/ServiceFabric.ts +7 -7
- package/src/client/OnBehalfOfClient.ts +2 -2
- package/src/client/PublicClientApplication.ts +2 -2
- package/src/client/UsernamePasswordClient.ts +1 -1
- package/src/config/Configuration.ts +1 -1
- package/src/config/ManagedIdentityId.ts +3 -3
- package/src/config/ManagedIdentityRequestParameters.ts +2 -2
- package/src/crypto/CryptoProvider.ts +1 -1
- package/src/crypto/GuidGenerator.ts +1 -1
- package/src/crypto/PkceGenerator.ts +1 -1
- package/src/error/ManagedIdentityError.ts +3 -3
- package/src/error/ManagedIdentityErrorCodes.ts +1 -1
- package/src/error/NodeAuthError.ts +1 -1
- package/src/index.ts +1 -1
- package/src/network/HttpClient.ts +1 -1
- package/src/network/HttpClientWithRetries.ts +3 -3
- package/src/network/ILoopbackClient.ts +1 -1
- package/src/network/LoopbackClient.ts +2 -2
- package/src/packageMetadata.ts +1 -1
- package/src/request/AuthorizationCodeRequest.ts +1 -1
- package/src/request/AuthorizationUrlRequest.ts +1 -1
- package/src/request/ClientCredentialRequest.ts +1 -1
- package/src/request/DeviceCodeRequest.ts +1 -1
- package/src/request/ManagedIdentityRequest.ts +2 -2
- package/src/request/OnBehalfOfRequest.ts +1 -1
- package/src/request/RefreshTokenRequest.ts +1 -1
- package/src/request/SignOutRequest.ts +1 -1
- package/src/request/SilentFlowRequest.ts +1 -1
- package/src/request/UsernamePasswordRequest.ts +1 -1
- package/src/response/ManagedIdentityTokenResponse.ts +1 -1
- package/src/retry/LinearRetryPolicy.ts +1 -1
- package/src/utils/Constants.ts +1 -1
- package/src/utils/EncodingUtils.ts +1 -1
- package/src/utils/NetworkUtils.ts +4 -1
- package/dist/cache/NodeStorage.cjs +0 -436
- package/dist/cache/NodeStorage.cjs.map +0 -1
- package/dist/cache/TokenCache.cjs +0 -278
- package/dist/cache/TokenCache.cjs.map +0 -1
- package/dist/cache/distributed/DistributedCachePlugin.cjs +0 -37
- package/dist/cache/distributed/DistributedCachePlugin.cjs.map +0 -1
- package/dist/cache/serializer/Deserializer.cjs +0 -178
- package/dist/cache/serializer/Deserializer.cjs.map +0 -1
- package/dist/cache/serializer/Serializer.cjs +0 -146
- package/dist/cache/serializer/Serializer.cjs.map +0 -1
- package/dist/client/ClientApplication.cjs +0 -354
- package/dist/client/ClientApplication.cjs.map +0 -1
- package/dist/client/ClientAssertion.cjs +0 -161
- package/dist/client/ClientAssertion.cjs.map +0 -1
- package/dist/client/ClientCredentialClient.cjs +0 -205
- package/dist/client/ClientCredentialClient.cjs.map +0 -1
- package/dist/client/ConfidentialClientApplication.cjs +0 -184
- package/dist/client/ConfidentialClientApplication.cjs.map +0 -1
- package/dist/client/DeviceCodeClient.cjs +0 -218
- package/dist/client/DeviceCodeClient.cjs.map +0 -1
- package/dist/client/ManagedIdentityApplication.cjs +0 -102
- package/dist/client/ManagedIdentityApplication.cjs.map +0 -1
- package/dist/client/ManagedIdentityClient.cjs +0 -78
- package/dist/client/ManagedIdentityClient.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/AppService.cjs +0 -58
- package/dist/client/ManagedIdentitySources/AppService.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/AzureArc.cjs +0 -179
- package/dist/client/ManagedIdentitySources/AzureArc.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs +0 -137
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/CloudShell.cjs +0 -53
- package/dist/client/ManagedIdentitySources/CloudShell.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/Imds.cjs +0 -56
- package/dist/client/ManagedIdentitySources/Imds.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.cjs +0 -67
- package/dist/client/ManagedIdentitySources/ServiceFabric.cjs.map +0 -1
- package/dist/client/OnBehalfOfClient.cjs +0 -214
- package/dist/client/OnBehalfOfClient.cjs.map +0 -1
- package/dist/client/PublicClientApplication.cjs +0 -254
- package/dist/client/PublicClientApplication.cjs.map +0 -1
- package/dist/client/UsernamePasswordClient.cjs +0 -106
- package/dist/client/UsernamePasswordClient.cjs.map +0 -1
- package/dist/config/Configuration.cjs +0 -124
- package/dist/config/Configuration.cjs.map +0 -1
- package/dist/config/ManagedIdentityId.cjs +0 -61
- package/dist/config/ManagedIdentityId.cjs.map +0 -1
- package/dist/config/ManagedIdentityRequestParameters.cjs +0 -39
- package/dist/config/ManagedIdentityRequestParameters.cjs.map +0 -1
- package/dist/crypto/CryptoProvider.cjs +0 -103
- package/dist/crypto/CryptoProvider.cjs.map +0 -1
- package/dist/crypto/GuidGenerator.cjs +0 -33
- package/dist/crypto/GuidGenerator.cjs.map +0 -1
- package/dist/crypto/HashUtils.cjs +0 -29
- package/dist/crypto/HashUtils.cjs.map +0 -1
- package/dist/crypto/PkceGenerator.cjs +0 -68
- package/dist/crypto/PkceGenerator.cjs.map +0 -1
- package/dist/error/ManagedIdentityError.cjs +0 -56
- package/dist/error/ManagedIdentityError.cjs.map +0 -1
- package/dist/error/ManagedIdentityErrorCodes.cjs +0 -49
- package/dist/error/ManagedIdentityErrorCodes.cjs.map +0 -1
- package/dist/error/NodeAuthError.cjs +0 -107
- package/dist/error/NodeAuthError.cjs.map +0 -1
- package/dist/index.cjs +0 -125
- package/dist/index.cjs.map +0 -1
- package/dist/internals.cjs +0 -17
- package/dist/internals.cjs.map +0 -1
- package/dist/network/HttpClient.cjs +0 -301
- package/dist/network/HttpClient.cjs.map +0 -1
- package/dist/network/HttpClientWithRetries.cjs +0 -46
- package/dist/network/HttpClientWithRetries.cjs.map +0 -1
- package/dist/network/LoopbackClient.cjs +0 -99
- package/dist/network/LoopbackClient.cjs.map +0 -1
- package/dist/packageMetadata.cjs +0 -13
- package/dist/packageMetadata.cjs.map +0 -1
- package/dist/retry/LinearRetryPolicy.cjs +0 -49
- package/dist/retry/LinearRetryPolicy.cjs.map +0 -1
- package/dist/utils/Constants.cjs +0 -172
- package/dist/utils/Constants.cjs.map +0 -1
- package/dist/utils/EncodingUtils.cjs +0 -55
- package/dist/utils/EncodingUtils.cjs.map +0 -1
- package/dist/utils/NetworkUtils.cjs +0 -47
- package/dist/utils/NetworkUtils.cjs.map +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
import http from "http";
|
|
3
|
+
export interface IHttpRetryPolicy {
|
|
4
|
+
pauseForRetry(httpStatusCode: number, currentRetry: number, retryAfterHeader: http.IncomingHttpHeaders["retry-after"]): Promise<boolean>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=IHttpRetryPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IHttpRetryPolicy.d.ts","sourceRoot":"","sources":["../../../src/retry/IHttpRetryPolicy.ts"],"names":[],"mappings":";AAKA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,MAAM,WAAW,gBAAgB;IAK7B,aAAa,CACT,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,GAC1D,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
import http from "http";
|
|
3
|
+
import { IHttpRetryPolicy } from "./IHttpRetryPolicy.js";
|
|
4
|
+
export declare class LinearRetryPolicy implements IHttpRetryPolicy {
|
|
5
|
+
maxRetries: number;
|
|
6
|
+
retryDelay: number;
|
|
7
|
+
httpStatusCodesToRetryOn: Array<number>;
|
|
8
|
+
constructor(maxRetries: number, retryDelay: number, httpStatusCodesToRetryOn: Array<number>);
|
|
9
|
+
private retryAfterMillisecondsToSleep;
|
|
10
|
+
pauseForRetry(httpStatusCode: number, currentRetry: number, retryAfterHeader: http.IncomingHttpHeaders["retry-after"]): Promise<boolean>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=LinearRetryPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinearRetryPolicy.d.ts","sourceRoot":"","sources":["../../../src/retry/LinearRetryPolicy.ts"],"names":[],"mappings":";AAKA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,qBAAa,iBAAkB,YAAW,gBAAgB;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAGpC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,wBAAwB,EAAE,KAAK,CAAC,MAAM,CAAC;IAO3C,OAAO,CAAC,6BAA6B;IAyB/B,aAAa,CACf,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,GAC1D,OAAO,CAAC,OAAO,CAAC;CAkBtB"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export declare const AUTHORIZATION_HEADER_NAME: string;
|
|
2
|
+
export declare const METADATA_HEADER_NAME: string;
|
|
3
|
+
export declare const APP_SERVICE_SECRET_HEADER_NAME: string;
|
|
4
|
+
export declare const SERVICE_FABRIC_SECRET_HEADER_NAME: string;
|
|
5
|
+
export declare const API_VERSION_QUERY_PARAMETER_NAME: string;
|
|
6
|
+
export declare const RESOURCE_BODY_OR_QUERY_PARAMETER_NAME: string;
|
|
7
|
+
export declare const DEFAULT_MANAGED_IDENTITY_ID = "system_assigned_managed_identity";
|
|
8
|
+
export declare const MANAGED_IDENTITY_DEFAULT_TENANT = "managed_identity";
|
|
9
|
+
export declare const DEFAULT_AUTHORITY_FOR_MANAGED_IDENTITY: string;
|
|
10
|
+
/**
|
|
11
|
+
* Managed Identity Environment Variable Names
|
|
12
|
+
*/
|
|
13
|
+
export declare const ManagedIdentityEnvironmentVariableNames: {
|
|
14
|
+
readonly AZURE_POD_IDENTITY_AUTHORITY_HOST: "AZURE_POD_IDENTITY_AUTHORITY_HOST";
|
|
15
|
+
readonly IDENTITY_ENDPOINT: "IDENTITY_ENDPOINT";
|
|
16
|
+
readonly IDENTITY_HEADER: "IDENTITY_HEADER";
|
|
17
|
+
readonly IDENTITY_SERVER_THUMBPRINT: "IDENTITY_SERVER_THUMBPRINT";
|
|
18
|
+
readonly IMDS_ENDPOINT: "IMDS_ENDPOINT";
|
|
19
|
+
readonly MSI_ENDPOINT: "MSI_ENDPOINT";
|
|
20
|
+
};
|
|
21
|
+
export type ManagedIdentityEnvironmentVariableNames = (typeof ManagedIdentityEnvironmentVariableNames)[keyof typeof ManagedIdentityEnvironmentVariableNames];
|
|
22
|
+
/**
|
|
23
|
+
* Managed Identity Source Names
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare const ManagedIdentitySourceNames: {
|
|
27
|
+
readonly APP_SERVICE: "AppService";
|
|
28
|
+
readonly AZURE_ARC: "AzureArc";
|
|
29
|
+
readonly CLOUD_SHELL: "CloudShell";
|
|
30
|
+
readonly DEFAULT_TO_IMDS: "DefaultToImds";
|
|
31
|
+
readonly IMDS: "Imds";
|
|
32
|
+
readonly SERVICE_FABRIC: "ServiceFabric";
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The ManagedIdentitySourceNames type
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export type ManagedIdentitySourceNames = (typeof ManagedIdentitySourceNames)[keyof typeof ManagedIdentitySourceNames];
|
|
39
|
+
/**
|
|
40
|
+
* Managed Identity Ids
|
|
41
|
+
*/
|
|
42
|
+
export declare const ManagedIdentityIdType: {
|
|
43
|
+
readonly SYSTEM_ASSIGNED: "system-assigned";
|
|
44
|
+
readonly USER_ASSIGNED_CLIENT_ID: "user-assigned-client-id";
|
|
45
|
+
readonly USER_ASSIGNED_RESOURCE_ID: "user-assigned-resource-id";
|
|
46
|
+
readonly USER_ASSIGNED_OBJECT_ID: "user-assigned-object-id";
|
|
47
|
+
};
|
|
48
|
+
export type ManagedIdentityIdType = (typeof ManagedIdentityIdType)[keyof typeof ManagedIdentityIdType];
|
|
49
|
+
/**
|
|
50
|
+
* http methods
|
|
51
|
+
*/
|
|
52
|
+
export declare const HttpMethod: {
|
|
53
|
+
readonly GET: "get";
|
|
54
|
+
readonly POST: "post";
|
|
55
|
+
};
|
|
56
|
+
export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
|
|
57
|
+
export declare const ProxyStatus: {
|
|
58
|
+
readonly SUCCESS: 200;
|
|
59
|
+
readonly SUCCESS_RANGE_START: 200;
|
|
60
|
+
readonly SUCCESS_RANGE_END: 299;
|
|
61
|
+
readonly SERVER_ERROR: 500;
|
|
62
|
+
};
|
|
63
|
+
export type ProxyStatus = (typeof ProxyStatus)[keyof typeof ProxyStatus];
|
|
64
|
+
/**
|
|
65
|
+
* Constants used for region discovery
|
|
66
|
+
*/
|
|
67
|
+
export declare const REGION_ENVIRONMENT_VARIABLE = "REGION_NAME";
|
|
68
|
+
/**
|
|
69
|
+
* Constant used for PKCE
|
|
70
|
+
*/
|
|
71
|
+
export declare const RANDOM_OCTET_SIZE = 32;
|
|
72
|
+
/**
|
|
73
|
+
* Constants used in PKCE
|
|
74
|
+
*/
|
|
75
|
+
export declare const Hash: {
|
|
76
|
+
SHA256: string;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Constants for encoding schemes
|
|
80
|
+
*/
|
|
81
|
+
export declare const CharSet: {
|
|
82
|
+
CV_CHARSET: string;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Cache Constants
|
|
86
|
+
*/
|
|
87
|
+
export declare const CACHE: {
|
|
88
|
+
FILE_CACHE: string;
|
|
89
|
+
EXTENSION_LIB: string;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Constants
|
|
93
|
+
*/
|
|
94
|
+
export declare const Constants: {
|
|
95
|
+
MSAL_SKU: string;
|
|
96
|
+
JWT_BEARER_ASSERTION_TYPE: string;
|
|
97
|
+
AUTHORIZATION_PENDING: string;
|
|
98
|
+
HTTP_PROTOCOL: string;
|
|
99
|
+
LOCALHOST: string;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* API Codes for Telemetry purposes.
|
|
103
|
+
* Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
|
|
104
|
+
* 0-99 Silent Flow
|
|
105
|
+
* 600-699 Device Code Flow
|
|
106
|
+
* 800-899 Auth Code Flow
|
|
107
|
+
*/
|
|
108
|
+
export declare const ApiId: {
|
|
109
|
+
acquireTokenSilent: number;
|
|
110
|
+
acquireTokenByUsernamePassword: number;
|
|
111
|
+
acquireTokenByDeviceCode: number;
|
|
112
|
+
acquireTokenByClientCredential: number;
|
|
113
|
+
acquireTokenByCode: number;
|
|
114
|
+
acquireTokenByRefreshToken: number;
|
|
115
|
+
};
|
|
116
|
+
export type ApiId = (typeof ApiId)[keyof typeof ApiId];
|
|
117
|
+
/**
|
|
118
|
+
* JWT constants
|
|
119
|
+
*/
|
|
120
|
+
export declare const JwtConstants: {
|
|
121
|
+
ALGORITHM: string;
|
|
122
|
+
RSA_256: string;
|
|
123
|
+
PSS_256: string;
|
|
124
|
+
X5T_256: string;
|
|
125
|
+
X5T: string;
|
|
126
|
+
X5C: string;
|
|
127
|
+
AUDIENCE: string;
|
|
128
|
+
EXPIRATION_TIME: string;
|
|
129
|
+
ISSUER: string;
|
|
130
|
+
SUBJECT: string;
|
|
131
|
+
NOT_BEFORE: string;
|
|
132
|
+
JWT_ID: string;
|
|
133
|
+
};
|
|
134
|
+
export declare const LOOPBACK_SERVER_CONSTANTS: {
|
|
135
|
+
INTERVAL_MS: number;
|
|
136
|
+
TIMEOUT_MS: number;
|
|
137
|
+
};
|
|
138
|
+
export declare const AZURE_ARC_SECRET_FILE_MAX_SIZE_BYTES = 4096;
|
|
139
|
+
export declare const MANAGED_IDENTITY_MAX_RETRIES = 3;
|
|
140
|
+
export declare const MANAGED_IDENTITY_RETRY_DELAY = 1000;
|
|
141
|
+
export declare const MANAGED_IDENTITY_HTTP_STATUS_CODES_TO_RETRY_ON: (500 | 404 | 408 | 429 | 503 | 504)[];
|
|
142
|
+
//# sourceMappingURL=Constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../src/utils/Constants.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,yBAAyB,EAAE,MAAwB,CAAC;AACjE,eAAO,MAAM,oBAAoB,EAAE,MAAmB,CAAC;AACvD,eAAO,MAAM,8BAA8B,EAAE,MAA4B,CAAC;AAC1E,eAAO,MAAM,iCAAiC,EAAE,MAAiB,CAAC;AAClE,eAAO,MAAM,gCAAgC,EAAE,MAAsB,CAAC;AACtE,eAAO,MAAM,qCAAqC,EAAE,MAAmB,CAAC;AACxE,eAAO,MAAM,2BAA2B,qCAAqC,CAAC;AAC9E,eAAO,MAAM,+BAA+B,qBAAqB,CAAC;AAClE,eAAO,MAAM,sCAAsC,QAA0E,CAAC;AAE9H;;GAEG;AACH,eAAO,MAAM,uCAAuC;;;;;;;CAO1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAC/C,CAAC,OAAO,uCAAuC,CAAC,CAAC,MAAM,OAAO,uCAAuC,CAAC,CAAC;AAE3G;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;CAO7B,CAAC;AACX;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAClC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAC7B,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,UAAU;;;CAGb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAEtE,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,2BAA2B,gBAAgB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;GAEG;AACH,eAAO,MAAM,IAAI;;CAEhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO;;CAGnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK;;;CAGjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;CAOrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK;;;;;;;CAOjB,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,OAAO,CAAC;AAEzD,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,4BAA4B,OAAO,CAAC;AACjD,eAAO,MAAM,8CAA8C,uCAO1D,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
export declare class EncodingUtils {
|
|
3
|
+
/**
|
|
4
|
+
* 'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
|
|
5
|
+
* 'base64': Base64 encoding.
|
|
6
|
+
*
|
|
7
|
+
* @param str text
|
|
8
|
+
*/
|
|
9
|
+
static base64Encode(str: string, encoding?: BufferEncoding): string;
|
|
10
|
+
/**
|
|
11
|
+
* encode a URL
|
|
12
|
+
* @param str
|
|
13
|
+
*/
|
|
14
|
+
static base64EncodeUrl(str: string, encoding?: BufferEncoding): string;
|
|
15
|
+
/**
|
|
16
|
+
* 'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
|
|
17
|
+
* 'base64': Base64 encoding.
|
|
18
|
+
*
|
|
19
|
+
* @param base64Str Base64 encoded text
|
|
20
|
+
*/
|
|
21
|
+
static base64Decode(base64Str: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* @param base64Str Base64 encoded Url
|
|
24
|
+
*/
|
|
25
|
+
static base64DecodeUrl(base64Str: string): string;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=EncodingUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EncodingUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/EncodingUtils.ts"],"names":[],"mappings":";AAOA,qBAAa,aAAa;IACtB;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM;IAInE;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM;IAOtE;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAI9C;;OAEG;IACH,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;CAOpD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NetworkResponse, UrlToHttpRequestOptions } from "@azure/msal-common/node";
|
|
2
|
+
export declare class NetworkUtils {
|
|
3
|
+
static getNetworkResponse<T>(headers: Record<string, string>, body: T, statusCode: number): NetworkResponse<T>;
|
|
4
|
+
static urlToHttpOptions(url: URL): UrlToHttpRequestOptions;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=NetworkUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/NetworkUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,eAAe,EACf,uBAAuB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC,qBAAa,YAAY;IACrB,MAAM,CAAC,kBAAkB,CAAC,CAAC,EACvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,IAAI,EAAE,CAAC,EACP,UAAU,EAAE,MAAM,GACnB,eAAe,CAAC,CAAC,CAAC;IAarB,MAAM,CAAC,gBAAgB,CAAC,GAAG,EAAE,GAAG,GAAG,uBAAuB;CAuB7D"}
|
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": "2.
|
|
4
|
+
"version": "2.14.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Microsoft",
|
|
7
7
|
"email": "nugetaad@microsoft.com",
|
|
@@ -22,21 +22,25 @@
|
|
|
22
22
|
"oauth"
|
|
23
23
|
],
|
|
24
24
|
"type": "module",
|
|
25
|
-
"main": "
|
|
25
|
+
"main": "lib/msal-node.cjs",
|
|
26
26
|
"module": "dist/index.mjs",
|
|
27
27
|
"types": "dist/index.d.ts",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
30
|
+
"import": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.mjs"
|
|
33
|
+
},
|
|
34
|
+
"require": {
|
|
35
|
+
"types": "./lib/types/index.d.ts",
|
|
36
|
+
"default": "./lib/msal-node.cjs"
|
|
37
|
+
}
|
|
35
38
|
},
|
|
36
39
|
"./package.json": "./package.json"
|
|
37
40
|
},
|
|
38
41
|
"files": [
|
|
39
42
|
"dist",
|
|
43
|
+
"lib",
|
|
40
44
|
"src"
|
|
41
45
|
],
|
|
42
46
|
"scripts": {
|
|
@@ -66,20 +70,19 @@
|
|
|
66
70
|
"@types/jest": "^29.5.0",
|
|
67
71
|
"@types/jsonwebtoken": "^9.0.1",
|
|
68
72
|
"@types/node": "^20.3.1",
|
|
69
|
-
"@types/sinon": "^7.5.0",
|
|
70
73
|
"@types/uuid": "^7.0.0",
|
|
71
74
|
"eslint-config-msal": "file:../../shared-configs/eslint-config-msal",
|
|
72
75
|
"jest": "^29.5.0",
|
|
73
76
|
"prettier": "2.8.7",
|
|
74
77
|
"rollup": "^3.20.1",
|
|
75
|
-
"
|
|
78
|
+
"rollup-msal": "file:../../shared-configs/rollup-msal",
|
|
76
79
|
"ts-jest": "^29.1.0",
|
|
77
80
|
"tslib": "^1.10.0",
|
|
78
81
|
"typescript": "^4.9.5",
|
|
79
82
|
"yargs": "^17.3.1"
|
|
80
83
|
},
|
|
81
84
|
"dependencies": {
|
|
82
|
-
"@azure/msal-common": "14.
|
|
85
|
+
"@azure/msal-common": "14.15.0",
|
|
83
86
|
"jsonwebtoken": "^9.0.0",
|
|
84
87
|
"uuid": "^8.3.0"
|
|
85
88
|
},
|
package/src/cache/ITokenCache.ts
CHANGED
package/src/cache/NodeStorage.ts
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ValidCredentialType,
|
|
21
21
|
StaticAuthorityOptions,
|
|
22
22
|
CacheHelpers,
|
|
23
|
-
} from "@azure/msal-common";
|
|
23
|
+
} from "@azure/msal-common/node";
|
|
24
24
|
|
|
25
25
|
import { Deserializer } from "./serializer/Deserializer.js";
|
|
26
26
|
import { Serializer } from "./serializer/Serializer.js";
|
package/src/cache/TokenCache.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
AccountEntity,
|
|
8
8
|
ICachePlugin,
|
|
9
9
|
TokenCacheContext,
|
|
10
|
-
} from "@azure/msal-common";
|
|
10
|
+
} from "@azure/msal-common/node";
|
|
11
11
|
import { TokenCache } from "../TokenCache.js";
|
|
12
12
|
import { IPartitionManager } from "./IPartitionManager.js";
|
|
13
13
|
import { ICacheClient } from "./ICacheClient.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
Constants,
|
|
10
10
|
createClientAuthError,
|
|
11
11
|
ClientAuthErrorCodes,
|
|
12
|
-
} from "@azure/msal-common";
|
|
12
|
+
} from "@azure/msal-common/node";
|
|
13
13
|
import { CryptoProvider } from "../crypto/CryptoProvider.js";
|
|
14
14
|
import { EncodingUtils } from "../utils/EncodingUtils.js";
|
|
15
15
|
import { JwtConstants } from "../utils/Constants.js";
|
|
@@ -34,11 +34,11 @@ import {
|
|
|
34
34
|
createClientAuthError,
|
|
35
35
|
ClientAssertion,
|
|
36
36
|
getClientAssertion,
|
|
37
|
-
} from "@azure/msal-common";
|
|
37
|
+
} from "@azure/msal-common/node";
|
|
38
38
|
import {
|
|
39
39
|
ManagedIdentityConfiguration,
|
|
40
40
|
ManagedIdentityNodeConfiguration,
|
|
41
|
-
} from "../config/Configuration";
|
|
41
|
+
} from "../config/Configuration.js";
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* OAuth2.0 client credential grant
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
ClientAuthErrorCodes,
|
|
28
28
|
ClientAssertion as ClientAssertionType,
|
|
29
29
|
getClientAssertion,
|
|
30
|
-
} from "@azure/msal-common";
|
|
30
|
+
} from "@azure/msal-common/node";
|
|
31
31
|
import { IConfidentialClientApplication } from "./IConfidentialClientApplication.js";
|
|
32
32
|
import { OnBehalfOfRequest } from "../request/OnBehalfOfRequest.js";
|
|
33
33
|
import { ClientCredentialRequest } from "../request/ClientCredentialRequest.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
AuthenticationResult,
|
|
8
8
|
IAppTokenProvider,
|
|
9
9
|
Logger,
|
|
10
|
-
} from "@azure/msal-common";
|
|
10
|
+
} from "@azure/msal-common/node";
|
|
11
11
|
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
12
12
|
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
|
|
13
13
|
import { ClientCredentialRequest } from "../request/ClientCredentialRequest.js";
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
AccountInfo,
|
|
8
|
+
AuthenticationResult,
|
|
9
|
+
Logger,
|
|
10
|
+
} from "@azure/msal-common/node";
|
|
7
11
|
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
8
12
|
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
|
|
9
13
|
import { DeviceCodeRequest } from "../request/DeviceCodeRequest.js";
|
|
@@ -18,23 +18,23 @@ import {
|
|
|
18
18
|
AuthenticationResult,
|
|
19
19
|
createClientConfigurationError,
|
|
20
20
|
ClientConfigurationErrorCodes,
|
|
21
|
-
} from "@azure/msal-common";
|
|
21
|
+
} from "@azure/msal-common/node";
|
|
22
22
|
import {
|
|
23
23
|
ManagedIdentityConfiguration,
|
|
24
24
|
ManagedIdentityNodeConfiguration,
|
|
25
25
|
buildManagedIdentityConfiguration,
|
|
26
|
-
} from "../config/Configuration";
|
|
26
|
+
} from "../config/Configuration.js";
|
|
27
27
|
import { version, name } from "../packageMetadata.js";
|
|
28
|
-
import { ManagedIdentityRequest } from "../request/ManagedIdentityRequest";
|
|
29
|
-
import { CryptoProvider } from "../crypto/CryptoProvider";
|
|
30
|
-
import { ClientCredentialClient } from "./ClientCredentialClient";
|
|
31
|
-
import { ManagedIdentityClient } from "./ManagedIdentityClient";
|
|
32
|
-
import { ManagedIdentityRequestParams } from "../request/ManagedIdentityRequestParams";
|
|
33
|
-
import { NodeStorage } from "../cache/NodeStorage";
|
|
28
|
+
import { ManagedIdentityRequest } from "../request/ManagedIdentityRequest.js";
|
|
29
|
+
import { CryptoProvider } from "../crypto/CryptoProvider.js";
|
|
30
|
+
import { ClientCredentialClient } from "./ClientCredentialClient.js";
|
|
31
|
+
import { ManagedIdentityClient } from "./ManagedIdentityClient.js";
|
|
32
|
+
import { ManagedIdentityRequestParams } from "../request/ManagedIdentityRequestParams.js";
|
|
33
|
+
import { NodeStorage } from "../cache/NodeStorage.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_AUTHORITY_FOR_MANAGED_IDENTITY,
|
|
36
36
|
ManagedIdentitySourceNames,
|
|
37
|
-
} from "../utils/Constants";
|
|
37
|
+
} from "../utils/Constants.js";
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Class to initialize a managed identity and identify the service
|
|
@@ -8,22 +8,22 @@ import {
|
|
|
8
8
|
INetworkModule,
|
|
9
9
|
Logger,
|
|
10
10
|
AuthenticationResult,
|
|
11
|
-
} from "@azure/msal-common";
|
|
12
|
-
import { AppService } from "./ManagedIdentitySources/AppService";
|
|
13
|
-
import { AzureArc } from "./ManagedIdentitySources/AzureArc";
|
|
14
|
-
import { CloudShell } from "./ManagedIdentitySources/CloudShell";
|
|
15
|
-
import { Imds } from "./ManagedIdentitySources/Imds";
|
|
16
|
-
import { ServiceFabric } from "./ManagedIdentitySources/ServiceFabric";
|
|
17
|
-
import { CryptoProvider } from "../crypto/CryptoProvider";
|
|
11
|
+
} from "@azure/msal-common/node";
|
|
12
|
+
import { AppService } from "./ManagedIdentitySources/AppService.js";
|
|
13
|
+
import { AzureArc } from "./ManagedIdentitySources/AzureArc.js";
|
|
14
|
+
import { CloudShell } from "./ManagedIdentitySources/CloudShell.js";
|
|
15
|
+
import { Imds } from "./ManagedIdentitySources/Imds.js";
|
|
16
|
+
import { ServiceFabric } from "./ManagedIdentitySources/ServiceFabric.js";
|
|
17
|
+
import { CryptoProvider } from "../crypto/CryptoProvider.js";
|
|
18
18
|
import {
|
|
19
19
|
ManagedIdentityErrorCodes,
|
|
20
20
|
createManagedIdentityError,
|
|
21
|
-
} from "../error/ManagedIdentityError";
|
|
22
|
-
import { ManagedIdentityRequest } from "../request/ManagedIdentityRequest";
|
|
23
|
-
import { ManagedIdentityId } from "../config/ManagedIdentityId";
|
|
24
|
-
import { NodeStorage } from "../cache/NodeStorage";
|
|
25
|
-
import { BaseManagedIdentitySource } from "./ManagedIdentitySources/BaseManagedIdentitySource";
|
|
26
|
-
import { ManagedIdentitySourceNames } from "../utils/Constants";
|
|
21
|
+
} from "../error/ManagedIdentityError.js";
|
|
22
|
+
import { ManagedIdentityRequest } from "../request/ManagedIdentityRequest.js";
|
|
23
|
+
import { ManagedIdentityId } from "../config/ManagedIdentityId.js";
|
|
24
|
+
import { NodeStorage } from "../cache/NodeStorage.js";
|
|
25
|
+
import { BaseManagedIdentitySource } from "./ManagedIdentitySources/BaseManagedIdentitySource.js";
|
|
26
|
+
import { ManagedIdentitySourceNames } from "../utils/Constants.js";
|
|
27
27
|
|
|
28
28
|
/*
|
|
29
29
|
* Class to initialize a managed identity and identify the service.
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { INetworkModule, Logger } from "@azure/msal-common";
|
|
7
|
-
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource";
|
|
6
|
+
import { INetworkModule, Logger } from "@azure/msal-common/node";
|
|
7
|
+
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
|
|
8
8
|
import {
|
|
9
9
|
HttpMethod,
|
|
10
10
|
APP_SERVICE_SECRET_HEADER_NAME,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ManagedIdentityEnvironmentVariableNames,
|
|
14
14
|
ManagedIdentitySourceNames,
|
|
15
15
|
ManagedIdentityIdType,
|
|
16
|
-
} from "../../utils/Constants";
|
|
17
|
-
import { CryptoProvider } from "../../crypto/CryptoProvider";
|
|
18
|
-
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
|
|
19
|
-
import { ManagedIdentityId } from "../../config/ManagedIdentityId";
|
|
20
|
-
import { NodeStorage } from "../../cache/NodeStorage";
|
|
16
|
+
} from "../../utils/Constants.js";
|
|
17
|
+
import { CryptoProvider } from "../../crypto/CryptoProvider.js";
|
|
18
|
+
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
|
|
19
|
+
import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
|
|
20
|
+
import { NodeStorage } from "../../cache/NodeStorage.js";
|
|
21
21
|
|
|
22
22
|
// MSI Constants. Docs for MSI are available here https://docs.microsoft.com/azure/app-service/overview-managed-identity
|
|
23
23
|
const APP_SERVICE_MSI_API_VERSION: string = "2019-08-01";
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
NetworkRequestOptions,
|
|
14
14
|
Logger,
|
|
15
15
|
ServerAuthorizationTokenResponse,
|
|
16
|
-
} from "@azure/msal-common";
|
|
17
|
-
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
|
|
18
|
-
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource";
|
|
19
|
-
import { CryptoProvider } from "../../crypto/CryptoProvider";
|
|
16
|
+
} from "@azure/msal-common/node";
|
|
17
|
+
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
|
|
18
|
+
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
|
|
19
|
+
import { CryptoProvider } from "../../crypto/CryptoProvider.js";
|
|
20
20
|
import {
|
|
21
21
|
ManagedIdentityErrorCodes,
|
|
22
22
|
createManagedIdentityError,
|
|
23
|
-
} from "../../error/ManagedIdentityError";
|
|
23
|
+
} from "../../error/ManagedIdentityError.js";
|
|
24
24
|
import {
|
|
25
25
|
API_VERSION_QUERY_PARAMETER_NAME,
|
|
26
26
|
AUTHORIZATION_HEADER_NAME,
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
ManagedIdentityIdType,
|
|
32
32
|
ManagedIdentitySourceNames,
|
|
33
33
|
RESOURCE_BODY_OR_QUERY_PARAMETER_NAME,
|
|
34
|
-
} from "../../utils/Constants";
|
|
35
|
-
import { NodeStorage } from "../../cache/NodeStorage";
|
|
34
|
+
} from "../../utils/Constants.js";
|
|
35
|
+
import { NodeStorage } from "../../cache/NodeStorage.js";
|
|
36
36
|
import {
|
|
37
37
|
accessSync,
|
|
38
38
|
constants as fsConstants,
|
|
39
39
|
readFileSync,
|
|
40
40
|
statSync,
|
|
41
41
|
} from "fs";
|
|
42
|
-
import { ManagedIdentityTokenResponse } from "../../response/ManagedIdentityTokenResponse";
|
|
43
|
-
import { ManagedIdentityId } from "../../config/ManagedIdentityId";
|
|
42
|
+
import { ManagedIdentityTokenResponse } from "../../response/ManagedIdentityTokenResponse.js";
|
|
43
|
+
import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
|
|
44
44
|
import path from "path";
|
|
45
45
|
|
|
46
46
|
export const ARC_API_VERSION: string = "2019-11-01";
|
|
@@ -19,18 +19,18 @@ import {
|
|
|
19
19
|
createClientAuthError,
|
|
20
20
|
AuthenticationResult,
|
|
21
21
|
UrlString,
|
|
22
|
-
} from "@azure/msal-common";
|
|
23
|
-
import { ManagedIdentityId } from "../../config/ManagedIdentityId";
|
|
24
|
-
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
|
|
25
|
-
import { CryptoProvider } from "../../crypto/CryptoProvider";
|
|
26
|
-
import { ManagedIdentityRequest } from "../../request/ManagedIdentityRequest";
|
|
27
|
-
import { HttpMethod, ManagedIdentityIdType } from "../../utils/Constants";
|
|
28
|
-
import { ManagedIdentityTokenResponse } from "../../response/ManagedIdentityTokenResponse";
|
|
29
|
-
import { NodeStorage } from "../../cache/NodeStorage";
|
|
22
|
+
} from "@azure/msal-common/node";
|
|
23
|
+
import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
|
|
24
|
+
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
|
|
25
|
+
import { CryptoProvider } from "../../crypto/CryptoProvider.js";
|
|
26
|
+
import { ManagedIdentityRequest } from "../../request/ManagedIdentityRequest.js";
|
|
27
|
+
import { HttpMethod, ManagedIdentityIdType } from "../../utils/Constants.js";
|
|
28
|
+
import { ManagedIdentityTokenResponse } from "../../response/ManagedIdentityTokenResponse.js";
|
|
29
|
+
import { NodeStorage } from "../../cache/NodeStorage.js";
|
|
30
30
|
import {
|
|
31
31
|
ManagedIdentityErrorCodes,
|
|
32
32
|
createManagedIdentityError,
|
|
33
|
-
} from "../../error/ManagedIdentityError";
|
|
33
|
+
} from "../../error/ManagedIdentityError.js";
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Managed Identity User Assigned Id Query Parameter Names
|