@azure/msal-node 2.13.1 → 2.15.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 +2 -2
- 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 +4 -3
- package/dist/client/ManagedIdentityApplication.mjs.map +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +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 +2 -2
- 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 +3 -3
- package/dist/request/InteractiveRequest.d.ts.map +1 -1
- package/dist/request/ManagedIdentityRequest.d.ts +2 -2
- package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
- package/dist/request/ManagedIdentityRequestParams.d.ts +3 -1
- package/dist/request/ManagedIdentityRequestParams.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 +2 -2
- 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 +12363 -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 +12 -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 +14 -11
- 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 +13 -10
- 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 +1 -1
- 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/InteractiveRequest.ts +6 -13
- package/src/request/ManagedIdentityRequest.ts +2 -2
- package/src/request/ManagedIdentityRequestParams.ts +3 -1
- 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 +2 -7
- 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 -434
- package/dist/cache/NodeStorage.cjs.map +0 -1
- package/dist/cache/TokenCache.cjs +0 -276
- package/dist/cache/TokenCache.cjs.map +0 -1
- package/dist/cache/distributed/DistributedCachePlugin.cjs +0 -35
- package/dist/cache/distributed/DistributedCachePlugin.cjs.map +0 -1
- package/dist/cache/serializer/Deserializer.cjs +0 -176
- package/dist/cache/serializer/Deserializer.cjs.map +0 -1
- package/dist/cache/serializer/Serializer.cjs +0 -144
- package/dist/cache/serializer/Serializer.cjs.map +0 -1
- package/dist/client/ClientApplication.cjs +0 -352
- package/dist/client/ClientApplication.cjs.map +0 -1
- package/dist/client/ClientAssertion.cjs +0 -155
- package/dist/client/ClientAssertion.cjs.map +0 -1
- package/dist/client/ClientCredentialClient.cjs +0 -203
- package/dist/client/ClientCredentialClient.cjs.map +0 -1
- package/dist/client/ConfidentialClientApplication.cjs +0 -183
- package/dist/client/ConfidentialClientApplication.cjs.map +0 -1
- package/dist/client/DeviceCodeClient.cjs +0 -216
- package/dist/client/DeviceCodeClient.cjs.map +0 -1
- package/dist/client/ManagedIdentityApplication.cjs +0 -100
- package/dist/client/ManagedIdentityApplication.cjs.map +0 -1
- package/dist/client/ManagedIdentityClient.cjs +0 -76
- package/dist/client/ManagedIdentityClient.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/AppService.cjs +0 -56
- package/dist/client/ManagedIdentitySources/AppService.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/AzureArc.cjs +0 -173
- package/dist/client/ManagedIdentitySources/AzureArc.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs +0 -135
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/CloudShell.cjs +0 -51
- package/dist/client/ManagedIdentitySources/CloudShell.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/Imds.cjs +0 -54
- package/dist/client/ManagedIdentitySources/Imds.cjs.map +0 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.cjs +0 -65
- package/dist/client/ManagedIdentitySources/ServiceFabric.cjs.map +0 -1
- package/dist/client/OnBehalfOfClient.cjs +0 -212
- package/dist/client/OnBehalfOfClient.cjs.map +0 -1
- package/dist/client/PublicClientApplication.cjs +0 -252
- package/dist/client/PublicClientApplication.cjs.map +0 -1
- package/dist/client/UsernamePasswordClient.cjs +0 -104
- package/dist/client/UsernamePasswordClient.cjs.map +0 -1
- package/dist/config/Configuration.cjs +0 -122
- package/dist/config/Configuration.cjs.map +0 -1
- package/dist/config/ManagedIdentityId.cjs +0 -59
- package/dist/config/ManagedIdentityId.cjs.map +0 -1
- package/dist/config/ManagedIdentityRequestParameters.cjs +0 -37
- package/dist/config/ManagedIdentityRequestParameters.cjs.map +0 -1
- package/dist/crypto/CryptoProvider.cjs +0 -101
- package/dist/crypto/CryptoProvider.cjs.map +0 -1
- package/dist/crypto/GuidGenerator.cjs +0 -31
- package/dist/crypto/GuidGenerator.cjs.map +0 -1
- package/dist/crypto/HashUtils.cjs +0 -23
- package/dist/crypto/HashUtils.cjs.map +0 -1
- package/dist/crypto/PkceGenerator.cjs +0 -62
- package/dist/crypto/PkceGenerator.cjs.map +0 -1
- package/dist/error/ManagedIdentityError.cjs +0 -54
- package/dist/error/ManagedIdentityError.cjs.map +0 -1
- package/dist/error/ManagedIdentityErrorCodes.cjs +0 -47
- package/dist/error/ManagedIdentityErrorCodes.cjs.map +0 -1
- package/dist/error/NodeAuthError.cjs +0 -105
- package/dist/error/NodeAuthError.cjs.map +0 -1
- package/dist/index.cjs +0 -123
- package/dist/index.cjs.map +0 -1
- package/dist/internals.cjs +0 -19
- package/dist/internals.cjs.map +0 -1
- package/dist/network/HttpClient.cjs +0 -294
- package/dist/network/HttpClient.cjs.map +0 -1
- package/dist/network/HttpClientWithRetries.cjs +0 -44
- package/dist/network/HttpClientWithRetries.cjs.map +0 -1
- package/dist/network/LoopbackClient.cjs +0 -93
- package/dist/network/LoopbackClient.cjs.map +0 -1
- package/dist/packageMetadata.cjs +0 -11
- package/dist/packageMetadata.cjs.map +0 -1
- package/dist/retry/LinearRetryPolicy.cjs +0 -47
- package/dist/retry/LinearRetryPolicy.cjs.map +0 -1
- package/dist/utils/Constants.cjs +0 -170
- package/dist/utils/Constants.cjs.map +0 -1
- package/dist/utils/EncodingUtils.cjs +0 -53
- package/dist/utils/EncodingUtils.cjs.map +0 -1
- package/dist/utils/NetworkUtils.cjs +0 -45
- package/dist/utils/NetworkUtils.cjs.map +0 -1
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { INetworkModule, Logger } from "@azure/msal-common";
|
|
7
|
-
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
|
|
8
|
-
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource";
|
|
9
|
-
import { NodeStorage } from "../../cache/NodeStorage";
|
|
10
|
-
import { CryptoProvider } from "../../crypto/CryptoProvider";
|
|
6
|
+
import { INetworkModule, Logger } from "@azure/msal-common/node";
|
|
7
|
+
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
|
|
8
|
+
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
|
|
9
|
+
import { NodeStorage } from "../../cache/NodeStorage.js";
|
|
10
|
+
import { CryptoProvider } from "../../crypto/CryptoProvider.js";
|
|
11
11
|
import {
|
|
12
12
|
HttpMethod,
|
|
13
13
|
METADATA_HEADER_NAME,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
ManagedIdentityIdType,
|
|
16
16
|
ManagedIdentitySourceNames,
|
|
17
17
|
RESOURCE_BODY_OR_QUERY_PARAMETER_NAME,
|
|
18
|
-
} from "../../utils/Constants";
|
|
18
|
+
} from "../../utils/Constants.js";
|
|
19
19
|
import {
|
|
20
20
|
ManagedIdentityErrorCodes,
|
|
21
21
|
createManagedIdentityError,
|
|
22
|
-
} from "../../error/ManagedIdentityError";
|
|
23
|
-
import { ManagedIdentityId } from "../../config/ManagedIdentityId";
|
|
22
|
+
} from "../../error/ManagedIdentityError.js";
|
|
23
|
+
import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Original source of code: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/CloudShellManagedIdentitySource.cs
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { INetworkModule, Logger } from "@azure/msal-common";
|
|
7
|
-
import { ManagedIdentityId } from "../../config/ManagedIdentityId";
|
|
8
|
-
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
|
|
9
|
-
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource";
|
|
10
|
-
import { CryptoProvider } from "../../crypto/CryptoProvider";
|
|
6
|
+
import { INetworkModule, Logger } from "@azure/msal-common/node";
|
|
7
|
+
import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
|
|
8
|
+
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
|
|
9
|
+
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
|
|
10
|
+
import { CryptoProvider } from "../../crypto/CryptoProvider.js";
|
|
11
11
|
import {
|
|
12
12
|
API_VERSION_QUERY_PARAMETER_NAME,
|
|
13
13
|
HttpMethod,
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
ManagedIdentityIdType,
|
|
17
17
|
ManagedIdentitySourceNames,
|
|
18
18
|
RESOURCE_BODY_OR_QUERY_PARAMETER_NAME,
|
|
19
|
-
} from "../../utils/Constants";
|
|
20
|
-
import { NodeStorage } from "../../cache/NodeStorage";
|
|
19
|
+
} from "../../utils/Constants.js";
|
|
20
|
+
import { NodeStorage } from "../../cache/NodeStorage.js";
|
|
21
21
|
|
|
22
22
|
// IMDS constants. Docs for IMDS are available here https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token#get-a-token-using-http
|
|
23
23
|
const IMDS_TOKEN_PATH: string = "/metadata/identity/oauth2/token";
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { INetworkModule, Logger } from "@azure/msal-common";
|
|
7
|
-
import { ManagedIdentityId } from "../../config/ManagedIdentityId";
|
|
8
|
-
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters";
|
|
9
|
-
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource";
|
|
10
|
-
import { NodeStorage } from "../../cache/NodeStorage";
|
|
11
|
-
import { CryptoProvider } from "../../crypto/CryptoProvider";
|
|
6
|
+
import { INetworkModule, Logger } from "@azure/msal-common/node";
|
|
7
|
+
import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
|
|
8
|
+
import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRequestParameters.js";
|
|
9
|
+
import { BaseManagedIdentitySource } from "./BaseManagedIdentitySource.js";
|
|
10
|
+
import { NodeStorage } from "../../cache/NodeStorage.js";
|
|
11
|
+
import { CryptoProvider } from "../../crypto/CryptoProvider.js";
|
|
12
12
|
import {
|
|
13
13
|
API_VERSION_QUERY_PARAMETER_NAME,
|
|
14
14
|
HttpMethod,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
ManagedIdentitySourceNames,
|
|
18
18
|
RESOURCE_BODY_OR_QUERY_PARAMETER_NAME,
|
|
19
19
|
SERVICE_FABRIC_SECRET_HEADER_NAME,
|
|
20
|
-
} from "../../utils/Constants";
|
|
20
|
+
} from "../../utils/Constants.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 SERVICE_FABRIC_MSI_API_VERSION: string = "2019-07-01-preview";
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
UrlString,
|
|
33
33
|
ClientAssertion,
|
|
34
34
|
getClientAssertion,
|
|
35
|
-
} from "@azure/msal-common";
|
|
36
|
-
import { EncodingUtils } from "../utils/EncodingUtils";
|
|
35
|
+
} from "@azure/msal-common/node";
|
|
36
|
+
import { EncodingUtils } from "../utils/EncodingUtils.js";
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* On-Behalf-Of client
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
ServerAuthorizationCodeResponse,
|
|
25
25
|
AADServerParamKeys,
|
|
26
26
|
ServerTelemetryManager,
|
|
27
|
-
} from "@azure/msal-common";
|
|
27
|
+
} from "@azure/msal-common/node";
|
|
28
28
|
import { Configuration } from "../config/Configuration.js";
|
|
29
29
|
import { ClientApplication } from "./ClientApplication.js";
|
|
30
30
|
import { IPublicClientApplication } from "./IPublicClientApplication.js";
|
|
@@ -38,7 +38,7 @@ import { SilentFlowRequest } from "../request/SilentFlowRequest.js";
|
|
|
38
38
|
import { SignOutRequest } from "../request/SignOutRequest.js";
|
|
39
39
|
import { ILoopbackClient } from "../network/ILoopbackClient.js";
|
|
40
40
|
import { DeviceCodeClient } from "./DeviceCodeClient.js";
|
|
41
|
-
import { version } from "../packageMetadata";
|
|
41
|
+
import { version } from "../packageMetadata.js";
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
ApplicationTelemetry,
|
|
16
16
|
INativeBrokerPlugin,
|
|
17
17
|
ClientAssertionCallback,
|
|
18
|
-
} from "@azure/msal-common";
|
|
18
|
+
} from "@azure/msal-common/node";
|
|
19
19
|
import { HttpClient } from "../network/HttpClient.js";
|
|
20
20
|
import http from "http";
|
|
21
21
|
import https from "https";
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
import {
|
|
7
7
|
ManagedIdentityErrorCodes,
|
|
8
8
|
createManagedIdentityError,
|
|
9
|
-
} from "../error/ManagedIdentityError";
|
|
9
|
+
} from "../error/ManagedIdentityError.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_MANAGED_IDENTITY_ID,
|
|
12
12
|
ManagedIdentityIdType,
|
|
13
|
-
} from "../utils/Constants";
|
|
14
|
-
import { ManagedIdentityIdParams } from "./Configuration";
|
|
13
|
+
} from "../utils/Constants.js";
|
|
14
|
+
import { ManagedIdentityIdParams } from "./Configuration.js";
|
|
15
15
|
|
|
16
16
|
export class ManagedIdentityId {
|
|
17
17
|
private _id: string;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { RequestParameterBuilder, UrlString } from "@azure/msal-common";
|
|
7
|
-
import { HttpMethod } from "../utils/Constants";
|
|
6
|
+
import { RequestParameterBuilder, UrlString } from "@azure/msal-common/node";
|
|
7
|
+
import { HttpMethod } from "../utils/Constants.js";
|
|
8
8
|
|
|
9
9
|
export class ManagedIdentityRequestParameters {
|
|
10
10
|
private _baseEndpoint: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ICrypto, PkceCodes } from "@azure/msal-common";
|
|
6
|
+
import { ICrypto, PkceCodes } from "@azure/msal-common/node";
|
|
7
7
|
import { GuidGenerator } from "./GuidGenerator.js";
|
|
8
8
|
import { EncodingUtils } from "../utils/EncodingUtils.js";
|
|
9
9
|
import { PkceGenerator } from "./PkceGenerator.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { Constants, PkceCodes } from "@azure/msal-common";
|
|
6
|
+
import { Constants, PkceCodes } from "@azure/msal-common/node";
|
|
7
7
|
import { CharSet, RANDOM_OCTET_SIZE } from "../utils/Constants.js";
|
|
8
8
|
import { EncodingUtils } from "../utils/EncodingUtils.js";
|
|
9
9
|
import { HashUtils } from "./HashUtils.js";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AuthError } from "@azure/msal-common";
|
|
7
|
-
import * as ManagedIdentityErrorCodes from "./ManagedIdentityErrorCodes";
|
|
8
|
-
import { ManagedIdentityEnvironmentVariableNames } from "../utils/Constants";
|
|
6
|
+
import { AuthError } from "@azure/msal-common/node";
|
|
7
|
+
import * as ManagedIdentityErrorCodes from "./ManagedIdentityErrorCodes.js";
|
|
8
|
+
import { ManagedIdentityEnvironmentVariableNames } from "../utils/Constants.js";
|
|
9
9
|
export { ManagedIdentityErrorCodes };
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ManagedIdentityEnvironmentVariableNames } from "../utils/Constants";
|
|
6
|
+
import { ManagedIdentityEnvironmentVariableNames } from "../utils/Constants.js";
|
|
7
7
|
|
|
8
8
|
export const invalidFileExtension = "invalid_file_extension";
|
|
9
9
|
export const invalidFilePath = "invalid_file_path";
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
NetworkRequestOptions,
|
|
9
9
|
NetworkResponse,
|
|
10
10
|
HttpStatus,
|
|
11
|
-
} from "@azure/msal-common";
|
|
11
|
+
} from "@azure/msal-common/node";
|
|
12
12
|
import { HttpMethod, Constants, ProxyStatus } from "../utils/Constants.js";
|
|
13
13
|
import { NetworkUtils } from "../utils/NetworkUtils.js";
|
|
14
14
|
import http from "http";
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
INetworkModule,
|
|
9
9
|
NetworkRequestOptions,
|
|
10
10
|
NetworkResponse,
|
|
11
|
-
} from "@azure/msal-common";
|
|
12
|
-
import { IHttpRetryPolicy } from "../retry/IHttpRetryPolicy";
|
|
13
|
-
import { HttpMethod } from "../utils/Constants";
|
|
11
|
+
} from "@azure/msal-common/node";
|
|
12
|
+
import { IHttpRetryPolicy } from "../retry/IHttpRetryPolicy.js";
|
|
13
|
+
import { HttpMethod } from "../utils/Constants.js";
|
|
14
14
|
|
|
15
15
|
export class HttpClientWithRetries implements INetworkModule {
|
|
16
16
|
private httpClientNoRetries: INetworkModule;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { ServerAuthorizationCodeResponse } from "@azure/msal-common";
|
|
6
|
+
import { ServerAuthorizationCodeResponse } from "@azure/msal-common/node";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Interface for LoopbackClient allowing to replace the default loopback server with a custom implementation.
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ServerAuthorizationCodeResponse,
|
|
9
9
|
HttpStatus,
|
|
10
10
|
UrlUtils,
|
|
11
|
-
} from "@azure/msal-common";
|
|
11
|
+
} from "@azure/msal-common/node";
|
|
12
12
|
import http from "http";
|
|
13
13
|
import { NodeAuthError } from "../error/NodeAuthError.js";
|
|
14
14
|
import { Constants } from "../utils/Constants.js";
|
package/src/packageMetadata.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { CommonAuthorizationCodeRequest } from "@azure/msal-common";
|
|
6
|
+
import { CommonAuthorizationCodeRequest } from "@azure/msal-common/node";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Request object passed by user to acquire a token from the server exchanging a valid authorization code (second leg of OAuth2.0 Authorization Code flow)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { CommonAuthorizationUrlRequest } from "@azure/msal-common";
|
|
6
|
+
import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Request object passed by user to retrieve a Code from the server (first leg of authorization code grant flow)
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
|
|
6
7
|
import { ILoopbackClient } from "../network/ILoopbackClient.js";
|
|
7
|
-
import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Request object passed by user to configure acquireTokenInteractive API
|
|
@@ -17,18 +17,11 @@ import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest.js";
|
|
|
17
17
|
* - loopbackClient - Custom implementation for a loopback server to listen for authorization code response.
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
|
-
export type InteractiveRequest =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
| "azureCloudOptions"
|
|
26
|
-
| "account"
|
|
27
|
-
| "extraQueryParameters"
|
|
28
|
-
| "tokenQueryParameters"
|
|
29
|
-
| "extraScopesToConsent"
|
|
30
|
-
| "loginHint"
|
|
31
|
-
| "prompt"
|
|
20
|
+
export type InteractiveRequest = Partial<
|
|
21
|
+
Omit<
|
|
22
|
+
CommonAuthorizationUrlRequest,
|
|
23
|
+
"scopes" | "redirectUri" | "requestedClaimsHash" | "storeInCache"
|
|
24
|
+
>
|
|
32
25
|
> & {
|
|
33
26
|
openBrowser: (url: string) => Promise<void>;
|
|
34
27
|
scopes?: Array<string>;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { CommonClientCredentialRequest } from "@azure/msal-common";
|
|
7
|
-
import { ManagedIdentityRequestParams } from "./ManagedIdentityRequestParams";
|
|
6
|
+
import { CommonClientCredentialRequest } from "@azure/msal-common/node";
|
|
7
|
+
import { ManagedIdentityRequestParams } from "./ManagedIdentityRequestParams.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* ManagedIdentityRequest
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* ManagedIdentityRequest
|
|
8
|
+
* - claims - a stringified claims request which will be used to determine whether or not the cache should be skipped
|
|
8
9
|
* - forceRefresh - forces managed identity requests to skip the cache and make network calls if true
|
|
9
|
-
* - resource
|
|
10
|
+
* - resource - resource requested to access the protected API. It should be of the form "{ResourceIdUri}" or {ResourceIdUri/.default}. For instance https://management.azure.net or, for Microsoft Graph, https://graph.microsoft.com/.default
|
|
10
11
|
*/
|
|
11
12
|
export type ManagedIdentityRequestParams = {
|
|
13
|
+
claims?: string;
|
|
12
14
|
forceRefresh?: boolean;
|
|
13
15
|
resource: string;
|
|
14
16
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common";
|
|
6
|
+
import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common/node";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* SilentFlow parameters passed by the user to retrieve credentials silently
|
|
@@ -19,12 +19,7 @@ import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common";
|
|
|
19
19
|
export type SilentFlowRequest = Partial<
|
|
20
20
|
Omit<
|
|
21
21
|
CommonSilentFlowRequest,
|
|
22
|
-
| "
|
|
23
|
-
| "scopes"
|
|
24
|
-
| "resourceRequestMethod"
|
|
25
|
-
| "resourceRequestUri"
|
|
26
|
-
| "requestedClaimsHash"
|
|
27
|
-
| "storeInCache"
|
|
22
|
+
"account" | "scopes" | "requestedClaimsHash" | "storeInCache"
|
|
28
23
|
>
|
|
29
24
|
> & {
|
|
30
25
|
account: AccountInfo;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { CommonUsernamePasswordRequest } from "@azure/msal-common";
|
|
6
|
+
import { CommonUsernamePasswordRequest } from "@azure/msal-common/node";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* UsernamePassword parameters passed by the user to retrieve credentials
|
package/src/utils/Constants.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { HttpStatus } from "@azure/msal-common";
|
|
6
|
+
import { HttpStatus } from "@azure/msal-common/node";
|
|
7
7
|
|
|
8
8
|
// MSI Constants. Docs for MSI are available here https://docs.microsoft.com/azure/app-service/overview-managed-identity
|
|
9
9
|
export const AUTHORIZATION_HEADER_NAME: string = "Authorization";
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
NetworkResponse,
|
|
8
|
+
UrlToHttpRequestOptions,
|
|
9
|
+
} from "@azure/msal-common/node";
|
|
7
10
|
|
|
8
11
|
export class NetworkUtils {
|
|
9
12
|
static getNetworkResponse<T>(
|