@azure/msal-node 5.0.0-alpha.0 → 5.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cache/CacheHelpers.mjs +1 -1
- package/dist/cache/NodeStorage.mjs +1 -1
- package/dist/cache/NodeStorage.mjs.map +1 -1
- package/dist/cache/TokenCache.mjs +1 -1
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs.map +1 -1
- package/dist/cache/serializer/Deserializer.mjs +1 -1
- package/dist/cache/serializer/Deserializer.mjs.map +1 -1
- package/dist/cache/serializer/Serializer.mjs +1 -1
- package/dist/cache/serializer/Serializer.mjs.map +1 -1
- package/dist/client/BaseClient.d.ts +42 -0
- package/dist/client/BaseClient.d.ts.map +1 -0
- package/dist/client/BaseClient.mjs +68 -0
- package/dist/client/BaseClient.mjs.map +1 -0
- package/dist/client/ClientApplication.mjs +1 -1
- package/dist/client/ClientApplication.mjs.map +1 -1
- package/dist/client/ClientAssertion.mjs +1 -1
- package/dist/client/ClientAssertion.mjs.map +1 -1
- package/dist/client/ClientCredentialClient.d.ts +2 -1
- package/dist/client/ClientCredentialClient.d.ts.map +1 -1
- package/dist/client/ClientCredentialClient.mjs +4 -3
- package/dist/client/ClientCredentialClient.mjs.map +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
- package/dist/client/DeviceCodeClient.d.ts +2 -1
- package/dist/client/DeviceCodeClient.d.ts.map +1 -1
- package/dist/client/DeviceCodeClient.mjs +6 -5
- package/dist/client/DeviceCodeClient.mjs.map +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +1 -1
- package/dist/client/ManagedIdentityApplication.mjs.map +1 -1
- package/dist/client/ManagedIdentityClient.mjs +1 -1
- package/dist/client/ManagedIdentityClient.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.d.ts +54 -0
- package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +55 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts +81 -0
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +82 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +93 -2
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +81 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts +54 -0
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +55 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.d.ts +44 -22
- package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +44 -22
- package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.d.ts +65 -0
- package/dist/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs +66 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +56 -22
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +57 -23
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs.map +1 -1
- package/dist/client/OnBehalfOfClient.d.ts +2 -1
- package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
- package/dist/client/OnBehalfOfClient.mjs +4 -3
- package/dist/client/OnBehalfOfClient.mjs.map +1 -1
- package/dist/client/PublicClientApplication.d.ts.map +1 -1
- package/dist/client/PublicClientApplication.mjs +21 -5
- package/dist/client/PublicClientApplication.mjs.map +1 -1
- package/dist/client/UsernamePasswordClient.d.ts +2 -1
- package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
- package/dist/client/UsernamePasswordClient.mjs +4 -3
- package/dist/client/UsernamePasswordClient.mjs.map +1 -1
- package/dist/config/Configuration.d.ts +0 -6
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +3 -5
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/config/ManagedIdentityId.mjs +1 -1
- package/dist/config/ManagedIdentityId.mjs.map +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +3 -3
- package/dist/config/ManagedIdentityRequestParameters.mjs.map +1 -1
- package/dist/crypto/CryptoProvider.mjs +1 -1
- package/dist/crypto/CryptoProvider.mjs.map +1 -1
- package/dist/crypto/GuidGenerator.mjs +1 -1
- package/dist/crypto/GuidGenerator.mjs.map +1 -1
- package/dist/crypto/HashUtils.mjs +1 -1
- package/dist/crypto/HashUtils.mjs.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs.map +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs.map +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs.map +1 -1
- package/dist/error/NodeAuthError.d.ts +8 -0
- package/dist/error/NodeAuthError.d.ts.map +1 -1
- package/dist/error/NodeAuthError.mjs +11 -1
- package/dist/error/NodeAuthError.mjs.map +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -7
- package/dist/index.mjs.map +1 -1
- package/dist/internals.mjs +1 -1
- package/dist/network/HttpClient.d.ts +54 -14
- package/dist/network/HttpClient.d.ts.map +1 -1
- package/dist/network/HttpClient.mjs +140 -262
- package/dist/network/HttpClient.mjs.map +1 -1
- package/dist/network/HttpClientWithRetries.mjs +1 -1
- package/dist/network/HttpClientWithRetries.mjs.map +1 -1
- package/dist/network/LoopbackClient.mjs +1 -1
- package/dist/network/LoopbackClient.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +2 -2
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts +2 -1
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts +2 -2
- package/dist/request/ClientCredentialRequest.d.ts +0 -1
- package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +3 -2
- package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/CommonDeviceCodeRequest.d.ts +3 -2
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -1
- package/dist/request/CommonOnBehalfOfRequest.d.ts +1 -2
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts +2 -1
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
- package/dist/request/InteractiveRequest.d.ts +1 -1
- package/dist/request/InteractiveRequest.d.ts.map +1 -1
- package/dist/request/OnBehalfOfRequest.d.ts +0 -1
- package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/RefreshTokenRequest.d.ts +2 -1
- package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/SilentFlowRequest.d.ts +2 -1
- package/dist/request/SilentFlowRequest.d.ts.map +1 -1
- package/dist/request/UsernamePasswordRequest.d.ts +2 -1
- package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs.map +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs.map +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs.map +1 -1
- package/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/dist/retry/LinearRetryStrategy.mjs.map +1 -1
- package/dist/utils/Constants.d.ts +2 -9
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +4 -12
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/EncodingUtils.mjs +1 -1
- package/dist/utils/EncodingUtils.mjs.map +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs.map +1 -1
- package/lib/msal-node.cjs +5747 -5335
- package/lib/msal-node.cjs.map +1 -1
- package/lib/types/client/BaseClient.d.ts +42 -0
- package/lib/types/client/BaseClient.d.ts.map +1 -0
- package/lib/types/client/ClientCredentialClient.d.ts +2 -1
- package/lib/types/client/ClientCredentialClient.d.ts.map +1 -1
- package/lib/types/client/DeviceCodeClient.d.ts +2 -1
- package/lib/types/client/DeviceCodeClient.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts +54 -0
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +81 -0
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +93 -2
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +54 -0
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts +44 -22
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +65 -0
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +56 -22
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
- package/lib/types/client/OnBehalfOfClient.d.ts +2 -1
- package/lib/types/client/OnBehalfOfClient.d.ts.map +1 -1
- package/lib/types/client/PublicClientApplication.d.ts.map +1 -1
- package/lib/types/client/UsernamePasswordClient.d.ts +2 -1
- package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -1
- package/lib/types/config/Configuration.d.ts +0 -6
- package/lib/types/config/Configuration.d.ts.map +1 -1
- package/lib/types/error/NodeAuthError.d.ts +8 -0
- package/lib/types/error/NodeAuthError.d.ts.map +1 -1
- package/lib/types/index.d.ts +0 -6
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/network/HttpClient.d.ts +54 -14
- package/lib/types/network/HttpClient.d.ts.map +1 -1
- package/lib/types/packageMetadata.d.ts +1 -1
- package/lib/types/packageMetadata.d.ts.map +1 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts +2 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/lib/types/request/AuthorizationUrlRequest.d.ts +2 -2
- package/lib/types/request/ClientCredentialRequest.d.ts +0 -1
- package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +3 -2
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -1
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +3 -2
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -1
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +1 -2
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +2 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -1
- package/lib/types/request/InteractiveRequest.d.ts +1 -1
- package/lib/types/request/InteractiveRequest.d.ts.map +1 -1
- package/lib/types/request/OnBehalfOfRequest.d.ts +0 -1
- package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/lib/types/request/RefreshTokenRequest.d.ts +2 -1
- package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -1
- package/lib/types/request/SilentFlowRequest.d.ts +2 -1
- package/lib/types/request/SilentFlowRequest.d.ts.map +1 -1
- package/lib/types/request/UsernamePasswordRequest.d.ts +2 -1
- package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/lib/types/utils/Constants.d.ts +2 -9
- package/lib/types/utils/Constants.d.ts.map +1 -1
- package/package.json +88 -88
- package/src/client/BaseClient.ts +158 -0
- package/src/client/ClientCredentialClient.ts +2 -3
- package/src/client/DeviceCodeClient.ts +4 -5
- package/src/client/ManagedIdentitySources/AppService.ts +54 -0
- package/src/client/ManagedIdentitySources/AzureArc.ts +81 -0
- package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +92 -2
- package/src/client/ManagedIdentitySources/CloudShell.ts +54 -0
- package/src/client/ManagedIdentitySources/Imds.ts +43 -21
- package/src/client/ManagedIdentitySources/MachineLearning.ts +65 -0
- package/src/client/ManagedIdentitySources/ServiceFabric.ts +56 -22
- package/src/client/OnBehalfOfClient.ts +2 -3
- package/src/client/PublicClientApplication.ts +22 -4
- package/src/client/UsernamePasswordClient.ts +2 -3
- package/src/config/Configuration.ts +2 -14
- package/src/config/ManagedIdentityRequestParameters.ts +2 -2
- package/src/error/NodeAuthError.ts +14 -0
- package/src/index.ts +0 -8
- package/src/network/HttpClient.ts +166 -372
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +1 -1
- package/src/request/AuthorizationCodeRequest.ts +2 -1
- package/src/request/AuthorizationUrlRequest.ts +2 -2
- package/src/request/ClientCredentialRequest.ts +0 -1
- package/src/request/CommonClientCredentialRequest.ts +6 -2
- package/src/request/CommonDeviceCodeRequest.ts +3 -6
- package/src/request/CommonOnBehalfOfRequest.ts +4 -2
- package/src/request/CommonUsernamePasswordRequest.ts +2 -1
- package/src/request/InteractiveRequest.ts +1 -4
- package/src/request/OnBehalfOfRequest.ts +0 -1
- package/src/request/RefreshTokenRequest.ts +2 -1
- package/src/request/SilentFlowRequest.ts +2 -1
- package/src/request/UsernamePasswordRequest.ts +2 -1
- package/src/utils/Constants.ts +2 -11
- package/dist/utils/NetworkUtils.mjs +0 -43
- package/dist/utils/NetworkUtils.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceCodeClient.mjs","sources":["../../src/client/DeviceCodeClient.ts"],"sourcesContent":[null],"names":["NodeClientAuthErrorCodes.deviceCodePollingCancelled","NodeClientAuthErrorCodes.userTimeoutReached","NodeClientAuthErrorCodes.deviceCodeExpired","NodeClientAuthErrorCodes.deviceCodeUnknownError"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeviceCodeClient.mjs","sources":["../../src/client/DeviceCodeClient.ts"],"sourcesContent":[null],"names":["NodeClientAuthErrorCodes.deviceCodePollingCancelled","NodeClientAuthErrorCodes.userTimeoutReached","NodeClientAuthErrorCodes.deviceCodeExpired","NodeClientAuthErrorCodes.deviceCodeUnknownError"],"mappings":";;;;;;AAAA;;;AAGG;AAwBH;;;AAGG;AACG,MAAO,gBAAiB,SAAQ,UAAU,CAAA;AAC5C,IAAA,WAAA,CAAY,aAAkC,EAAA;QAC1C,KAAK,CAAC,aAAa,CAAC,CAAC;KACxB;AAED;;;;AAIG;IACI,MAAM,YAAY,CACrB,OAAgC,EAAA;QAEhC,MAAM,kBAAkB,GAAuB,MAAM,IAAI,CAAC,aAA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AClD,IAAI,IAAI,CAAC,sBAAsB,EAAE;YAC7B,uBAAuB,CAAC,kBAAkB,CACtC,UAAU,EACV,IAAI,CAAC,sBAAsB,CAC9B,CAAC;AACL,SAAA;QAED,IACI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC;AACvC,aAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,kBAAkB;gBACvC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC,EAC5D;AACE,YAAA,uBAAuB,CAAC,SAAS,CAC7B,UAAU,EACV,OAAO,CAAC,MAAM,EACd,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,kBAAkB,CAC7C,CAAC;AACL,SAAA;AACD,QAAA,OAAO,QAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;KAChD;AACJ;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.0.0-
|
|
1
|
+
/*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { Logger, DEFAULT_CRYPTO_IMPLEMENTATION, Constants, Authority, ProtocolMode, StubPerformanceClient, createClientConfigurationError, ClientConfigurationErrorCodes } from '@azure/msal-common/node';
|
|
4
4
|
import { buildManagedIdentityConfiguration } from '../config/Configuration.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityApplication.mjs","sources":["../../src/client/ManagedIdentityApplication.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;AAGG;AAqCH,MAAM,qCAAqC,GACvC,CAAC,0BAA0B,CAAC,cAAc,CAAC,CAAC;AAEhD;;;AAGG;MACU,0BAA0B,CAAA;AAkBnC,IAAA,WAAA,CAAY,aAA4C,EAAA;;QAEpD,IAAI,CAAC,MAAM,GAAG,iCAAiC,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC;AAErE,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CACpB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,EAChC,IAAI,EACJ,OAAO,CACV,CAAC;AAEF,QAAA,MAAM,0BAA0B,GAA2B;YACvD,kBAAkB,EAAE,SAAS,CAAC,iBAAiB;SAClD,CAAC;AAEF,QAAA,IAAI,CAAC,0BAA0B,CAAC,WAAW,EAAE;YACzC,0BAA0B,CAAC,WAAW,GAAG,IAAI,WAAW,CACpD,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,EAChC,6BAA6B,EAC7B,0BAA0B,CAC7B,CAAC;AACL,
|
|
1
|
+
{"version":3,"file":"ManagedIdentityApplication.mjs","sources":["../../src/client/ManagedIdentityApplication.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;AAGG;AAqCH,MAAM,qCAAqC,GACvC,CAAC,0BAA0B,CAAC,cAAc,CAAC,CAAC;AAEhD;;;AAGG;MACU,0BAA0B,CAAA;AAkBnC,IAAA,WAAA,CAAY,aAA4C,EAAA;;QAEpD,IAAI,CAAC,MAAM,GAAG,iCAAiC,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC;AAErE,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CACpB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,EAChC,IAAI,EACJ,OAAO,CACV,CAAC;AAEF,QAAA,MAAM,0BAA0B,GAA2B;YACvD,kBAAkB,EAAE,SAAS,CAAC,iBAAiB;SAClD,CAAC;AAEF,QAAA,IAAI,CAAC,0BAA0B,CAAC,WAAW,EAAE;YACzC,0BAA0B,CAAC,WAAW,GAAG,IAAI,WAAW,CACpD,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,EAChC,6BAA6B,EAC7B,0BAA0B,CAC7B,CAAC;AACL,SAAA;QAED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EAAE,EACvD;KACL;AACJ;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityClient.mjs","sources":["../../src/client/ManagedIdentityClient.ts"],"sourcesContent":[null],"names":["ManagedIdentityErrorCodes.unableToCreateSource"],"mappings":";;;;;;;;;;;;AAAA;;;AAGG;AAyBH;;;AAGG;MACU,qBAAqB,CAAA;IAU9B,
|
|
1
|
+
{"version":3,"file":"ManagedIdentityClient.mjs","sources":["../../src/client/ManagedIdentityClient.ts"],"sourcesContent":[null],"names":["ManagedIdentityErrorCodes.unableToCreateSource"],"mappings":";;;;;;;;;;;;AAAA;;;AAGG;AAyBH;;;AAGG;MACU,qBAAqB,CAAA;IAU9B,WACI,CAAA,MAAc,EACd,WAAwB,EACxB,aAA6B,EAC7B,cAA8B,EAC9B,sBAA+B,EAAA;AAE/B,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,QAAA,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;AACnC,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;AACrC,QAAA,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;KACxD;IAEM,MAAM,+BAA+B,CACxC,sBAA8C,EAC9C,iBAAoC,EACpC,aAAwB,EACxB,kBAA4B,EAAA;AAE5B,QAAA,IAAI,CAAC,qBAAqB,CAAC,cAAc,EAAE;AACvC,YAAA,qBAAqB,CAAC,cAAc;gBAChC,IAAI,CAAC,2BAA2B,CAC5B,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,sBAAsB,EAC3B,iBAAiB,CACpB,CAAC;AACT,SAAA;AAED,QAAA,OAAO,qBAAqB,CAAC,cAAc,CAAC,+BAA+B,CACvE,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EAC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,MAAM,EACN,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,CACzB;AACD,YAAA,UAAU,CAAC,SAAS,CAChB,MAAM,EACN,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,iBAAiB,CACpB;AACD,YAAA,QAAQ,CAAC,SAAS,CACd,MAAM,EACN,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,EACtB,iBAAiB,CACpB;AACD,YAAA,IAAI,CAAC,SAAS,CACV,MAAM,EACN,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,CACzB,CAAC;QACN,IAAI,CAAC,MAAM,EAAE;AACT,YAAA,MAAM,0BAA0B,CAC5BA,oBAA8C,CACjD,CAAC;AACL,SAAA;AACD,QAAA,OAAO,MAAM,CAAC;KACjB;AACJ;;;;"}
|
|
@@ -5,14 +5,68 @@ import { ManagedIdentityRequestParameters } from "../../config/ManagedIdentityRe
|
|
|
5
5
|
import { ManagedIdentityId } from "../../config/ManagedIdentityId.js";
|
|
6
6
|
import { NodeStorage } from "../../cache/NodeStorage.js";
|
|
7
7
|
/**
|
|
8
|
+
* Azure App Service Managed Identity Source implementation.
|
|
9
|
+
*
|
|
10
|
+
* This class provides managed identity authentication for applications running in Azure App Service.
|
|
11
|
+
* It uses the local metadata service endpoint available within App Service environments to obtain
|
|
12
|
+
* access tokens without requiring explicit credentials.
|
|
13
|
+
*
|
|
8
14
|
* Original source of code: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/AppServiceManagedIdentitySource.cs
|
|
9
15
|
*/
|
|
10
16
|
export declare class AppService extends BaseManagedIdentitySource {
|
|
11
17
|
private identityEndpoint;
|
|
12
18
|
private identityHeader;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new instance of the AppService managed identity source.
|
|
21
|
+
*
|
|
22
|
+
* @param logger - Logger instance for diagnostic output
|
|
23
|
+
* @param nodeStorage - Node.js storage implementation for caching
|
|
24
|
+
* @param networkClient - Network client for making HTTP requests
|
|
25
|
+
* @param cryptoProvider - Cryptographic operations provider
|
|
26
|
+
* @param disableInternalRetries - Whether to disable internal retry logic
|
|
27
|
+
* @param identityEndpoint - The App Service identity endpoint URL
|
|
28
|
+
* @param identityHeader - The secret header value required for authentication
|
|
29
|
+
*/
|
|
13
30
|
constructor(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean, identityEndpoint: string, identityHeader: string);
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves the required environment variables for App Service managed identity.
|
|
33
|
+
*
|
|
34
|
+
* App Service managed identity requires two environment variables:
|
|
35
|
+
* - IDENTITY_ENDPOINT: The URL of the local metadata service
|
|
36
|
+
* - IDENTITY_HEADER: A secret header value for authentication
|
|
37
|
+
*
|
|
38
|
+
* @returns An array containing [identityEndpoint, identityHeader] values from environment variables.
|
|
39
|
+
* Either value may be undefined if the environment variable is not set.
|
|
40
|
+
*/
|
|
14
41
|
static getEnvironmentVariables(): Array<string | undefined>;
|
|
42
|
+
/**
|
|
43
|
+
* Attempts to create an AppService managed identity source if the environment supports it.
|
|
44
|
+
*
|
|
45
|
+
* This method checks for the presence of required environment variables and validates
|
|
46
|
+
* the identity endpoint URL. If the environment is not suitable for App Service managed
|
|
47
|
+
* identity (missing environment variables or invalid endpoint), it returns null.
|
|
48
|
+
*
|
|
49
|
+
* @param logger - Logger instance for diagnostic output
|
|
50
|
+
* @param nodeStorage - Node.js storage implementation for caching
|
|
51
|
+
* @param networkClient - Network client for making HTTP requests
|
|
52
|
+
* @param cryptoProvider - Cryptographic operations provider
|
|
53
|
+
* @param disableInternalRetries - Whether to disable internal retry logic
|
|
54
|
+
*
|
|
55
|
+
* @returns A new AppService instance if the environment is suitable, null otherwise
|
|
56
|
+
*/
|
|
15
57
|
static tryCreate(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean): AppService | null;
|
|
58
|
+
/**
|
|
59
|
+
* Creates a managed identity token request for the App Service environment.
|
|
60
|
+
*
|
|
61
|
+
* This method constructs an HTTP GET request to the App Service identity endpoint
|
|
62
|
+
* with the required headers, query parameters, and managed identity configuration.
|
|
63
|
+
* The request includes the secret header for authentication and appropriate API version.
|
|
64
|
+
*
|
|
65
|
+
* @param resource - The target resource/scope for which to request an access token (e.g., "https://graph.microsoft.com/.default")
|
|
66
|
+
* @param managedIdentityId - The managed identity configuration specifying whether to use system-assigned or user-assigned identity
|
|
67
|
+
*
|
|
68
|
+
* @returns A configured ManagedIdentityRequestParameters object ready for network execution
|
|
69
|
+
*/
|
|
16
70
|
createRequest(resource: string, managedIdentityId: ManagedIdentityId): ManagedIdentityRequestParameters;
|
|
17
71
|
}
|
|
18
72
|
//# sourceMappingURL=AppService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppService.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/AppService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAS3E,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAKzD
|
|
1
|
+
{"version":3,"file":"AppService.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/AppService.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAS3E,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAKzD;;;;;;;;GAQG;AACH,qBAAa,UAAW,SAAQ,yBAAyB;IACrD,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,cAAc,CAAS;IAE/B;;;;;;;;;;OAUG;gBAEC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,gBAAgB,EAAE,MAAM,EACxB,cAAc,EAAE,MAAM;IAc1B;;;;;;;;;OASG;WACW,uBAAuB,IAAI,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;IAalE;;;;;;;;;;;;;;OAcG;WACW,SAAS,CACnB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,GAChC,UAAU,GAAG,IAAI;IAqCpB;;;;;;;;;;;OAWG;IACI,aAAa,CAChB,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,iBAAiB,GACrC,gCAAgC;CA6BtC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.0.0-
|
|
1
|
+
/*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { BaseManagedIdentitySource } from './BaseManagedIdentitySource.mjs';
|
|
4
4
|
import { ManagedIdentityEnvironmentVariableNames, ManagedIdentitySourceNames, ManagedIdentityHeaders, ManagedIdentityQueryParameters, ManagedIdentityIdType, HttpMethod } from '../../utils/Constants.mjs';
|
|
@@ -11,19 +11,61 @@ import { ManagedIdentityRequestParameters } from '../../config/ManagedIdentityRe
|
|
|
11
11
|
// MSI Constants. Docs for MSI are available here https://docs.microsoft.com/azure/app-service/overview-managed-identity
|
|
12
12
|
const APP_SERVICE_MSI_API_VERSION = "2019-08-01";
|
|
13
13
|
/**
|
|
14
|
+
* Azure App Service Managed Identity Source implementation.
|
|
15
|
+
*
|
|
16
|
+
* This class provides managed identity authentication for applications running in Azure App Service.
|
|
17
|
+
* It uses the local metadata service endpoint available within App Service environments to obtain
|
|
18
|
+
* access tokens without requiring explicit credentials.
|
|
19
|
+
*
|
|
14
20
|
* Original source of code: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/AppServiceManagedIdentitySource.cs
|
|
15
21
|
*/
|
|
16
22
|
class AppService extends BaseManagedIdentitySource {
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new instance of the AppService managed identity source.
|
|
25
|
+
*
|
|
26
|
+
* @param logger - Logger instance for diagnostic output
|
|
27
|
+
* @param nodeStorage - Node.js storage implementation for caching
|
|
28
|
+
* @param networkClient - Network client for making HTTP requests
|
|
29
|
+
* @param cryptoProvider - Cryptographic operations provider
|
|
30
|
+
* @param disableInternalRetries - Whether to disable internal retry logic
|
|
31
|
+
* @param identityEndpoint - The App Service identity endpoint URL
|
|
32
|
+
* @param identityHeader - The secret header value required for authentication
|
|
33
|
+
*/
|
|
17
34
|
constructor(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries, identityEndpoint, identityHeader) {
|
|
18
35
|
super(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries);
|
|
19
36
|
this.identityEndpoint = identityEndpoint;
|
|
20
37
|
this.identityHeader = identityHeader;
|
|
21
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves the required environment variables for App Service managed identity.
|
|
41
|
+
*
|
|
42
|
+
* App Service managed identity requires two environment variables:
|
|
43
|
+
* - IDENTITY_ENDPOINT: The URL of the local metadata service
|
|
44
|
+
* - IDENTITY_HEADER: A secret header value for authentication
|
|
45
|
+
*
|
|
46
|
+
* @returns An array containing [identityEndpoint, identityHeader] values from environment variables.
|
|
47
|
+
* Either value may be undefined if the environment variable is not set.
|
|
48
|
+
*/
|
|
22
49
|
static getEnvironmentVariables() {
|
|
23
50
|
const identityEndpoint = process.env[ManagedIdentityEnvironmentVariableNames.IDENTITY_ENDPOINT];
|
|
24
51
|
const identityHeader = process.env[ManagedIdentityEnvironmentVariableNames.IDENTITY_HEADER];
|
|
25
52
|
return [identityEndpoint, identityHeader];
|
|
26
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Attempts to create an AppService managed identity source if the environment supports it.
|
|
56
|
+
*
|
|
57
|
+
* This method checks for the presence of required environment variables and validates
|
|
58
|
+
* the identity endpoint URL. If the environment is not suitable for App Service managed
|
|
59
|
+
* identity (missing environment variables or invalid endpoint), it returns null.
|
|
60
|
+
*
|
|
61
|
+
* @param logger - Logger instance for diagnostic output
|
|
62
|
+
* @param nodeStorage - Node.js storage implementation for caching
|
|
63
|
+
* @param networkClient - Network client for making HTTP requests
|
|
64
|
+
* @param cryptoProvider - Cryptographic operations provider
|
|
65
|
+
* @param disableInternalRetries - Whether to disable internal retry logic
|
|
66
|
+
*
|
|
67
|
+
* @returns A new AppService instance if the environment is suitable, null otherwise
|
|
68
|
+
*/
|
|
27
69
|
static tryCreate(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries) {
|
|
28
70
|
const [identityEndpoint, identityHeader] = AppService.getEnvironmentVariables();
|
|
29
71
|
// if either of the identity endpoint or identity header variables are undefined, this MSI provider is unavailable.
|
|
@@ -35,6 +77,18 @@ class AppService extends BaseManagedIdentitySource {
|
|
|
35
77
|
logger.info(`[Managed Identity] Environment variables validation passed for ${ManagedIdentitySourceNames.APP_SERVICE} managed identity. Endpoint URI: ${validatedIdentityEndpoint}. Creating ${ManagedIdentitySourceNames.APP_SERVICE} managed identity.`, "");
|
|
36
78
|
return new AppService(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries, identityEndpoint, identityHeader);
|
|
37
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Creates a managed identity token request for the App Service environment.
|
|
82
|
+
*
|
|
83
|
+
* This method constructs an HTTP GET request to the App Service identity endpoint
|
|
84
|
+
* with the required headers, query parameters, and managed identity configuration.
|
|
85
|
+
* The request includes the secret header for authentication and appropriate API version.
|
|
86
|
+
*
|
|
87
|
+
* @param resource - The target resource/scope for which to request an access token (e.g., "https://graph.microsoft.com/.default")
|
|
88
|
+
* @param managedIdentityId - The managed identity configuration specifying whether to use system-assigned or user-assigned identity
|
|
89
|
+
*
|
|
90
|
+
* @returns A configured ManagedIdentityRequestParameters object ready for network execution
|
|
91
|
+
*/
|
|
38
92
|
createRequest(resource, managedIdentityId) {
|
|
39
93
|
const request = new ManagedIdentityRequestParameters(HttpMethod.GET, this.identityEndpoint);
|
|
40
94
|
request.headers[ManagedIdentityHeaders.APP_SERVICE_SECRET_HEADER_NAME] =
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppService.mjs","sources":["../../../src/client/ManagedIdentitySources/AppService.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AAiBH;AACA,MAAM,2BAA2B,GAAW,YAAY,CAAC;AAEzD
|
|
1
|
+
{"version":3,"file":"AppService.mjs","sources":["../../../src/client/ManagedIdentitySources/AppService.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;AAGG;AAiBH;AACA,MAAM,2BAA2B,GAAW,YAAY,CAAC;AAEzD;;;;;;;;AAQG;AACG,MAAO,UAAW,SAAQ,yBAAyB,CAAA;AAIrD;;;;;;;;;;AAUG;AACH,IAAA,WAAA,CACI,MAAc,EACd,WAAwB,EACxB,aAA6B,EAC7B,cAA8B,EAC9B,sBAA+B,EAC/B,gBAAwB,EACxB,cAAsB,EAAA;QAEtB,KAAK,CACD,MAAM,EACN,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,CACzB,CAAC;AAEF,QAAA,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,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BAAgB,EAChB,cAAc,CACjB,CAAC;KACL;AAED;;;;;;;;;;;AAWG;IACI,aAAa,CAChB,QAAgB,EAChB,iBAAoC,EAAA;AAEpC,QAAA,MAAM,OAAO,GACT,IAAI,gCAAgC,CAChC,UAAU,CAAC,GAAG,EACd,IAAI,CAAC,gBAAgB,CACxB,CAAC;AAEN,QAAA,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,8BAA8B,CAAC;YAClE,IAAI,CAAC,cAAc,CAAC;AAExB,QAAA,OAAO,CAAC,eAAe,CAAC,8BAA8B,CAAC,WAAW,CAAC;AAC/D,YAAA,2BAA2B,CAAC;AAChC,QAAA,OAAO,CAAC,eAAe,CAAC,8BAA8B,CAAC,QAAQ,CAAC;AAC5D,YAAA,QAAQ,CAAC;AAEb,QAAA,IACI,iBAAiB,CAAC,MAAM,KAAK,qBAAqB,CAAC,eAAe,EACpE;AACE,YAAA,OAAO,CAAC,eAAe,CACnB,IAAI,CAAC,iDAAiD,CAClD,iBAAiB,CAAC,MAAM,CAC3B,CACJ,GAAG,iBAAiB,CAAC,EAAE,CAAC;AAC5B,SAAA;;AAID,QAAA,OAAO,OAAO,CAAC;KAClB;AACJ;;;;"}
|
|
@@ -14,14 +14,95 @@ type FilePathMap = {
|
|
|
14
14
|
export declare const SUPPORTED_AZURE_ARC_PLATFORMS: FilePathMap;
|
|
15
15
|
export declare const AZURE_ARC_FILE_DETECTION: FilePathMap;
|
|
16
16
|
/**
|
|
17
|
+
* Azure Arc managed identity source implementation for acquiring tokens from Azure Arc-enabled servers.
|
|
18
|
+
*
|
|
19
|
+
* This class provides managed identity authentication for applications running on Azure Arc-enabled servers
|
|
20
|
+
* by communicating with the local Hybrid Instance Metadata Service (HIMDS). It supports both environment
|
|
21
|
+
* variable-based configuration and automatic detection through the HIMDS executable.
|
|
22
|
+
*
|
|
17
23
|
* Original source of code: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/AzureArcManagedIdentitySource.cs
|
|
18
24
|
*/
|
|
19
25
|
export declare class AzureArc extends BaseManagedIdentitySource {
|
|
20
26
|
private identityEndpoint;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new instance of the AzureArc managed identity source.
|
|
29
|
+
*
|
|
30
|
+
* @param logger - Logger instance for capturing telemetry and diagnostic information
|
|
31
|
+
* @param nodeStorage - Storage implementation for caching tokens and metadata
|
|
32
|
+
* @param networkClient - Network client for making HTTP requests to the identity endpoint
|
|
33
|
+
* @param cryptoProvider - Cryptographic operations provider for token validation and encryption
|
|
34
|
+
* @param disableInternalRetries - Flag to disable automatic retry logic for failed requests
|
|
35
|
+
* @param identityEndpoint - The Azure Arc identity endpoint URL for token requests
|
|
36
|
+
*/
|
|
21
37
|
constructor(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean, identityEndpoint: string);
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves and validates Azure Arc environment variables for managed identity configuration.
|
|
40
|
+
*
|
|
41
|
+
* This method checks for IDENTITY_ENDPOINT and IMDS_ENDPOINT environment variables.
|
|
42
|
+
* If either is missing, it attempts to detect the Azure Arc environment by checking for
|
|
43
|
+
* the HIMDS executable at platform-specific paths. On successful detection, it returns
|
|
44
|
+
* the default identity endpoint and a helper string indicating file-based detection.
|
|
45
|
+
*
|
|
46
|
+
* @returns An array containing [identityEndpoint, imdsEndpoint] where both values are
|
|
47
|
+
* strings if Azure Arc is available, or undefined if not available.
|
|
48
|
+
*/
|
|
22
49
|
static getEnvironmentVariables(): Array<string | undefined>;
|
|
50
|
+
/**
|
|
51
|
+
* Attempts to create an AzureArc managed identity source instance.
|
|
52
|
+
*
|
|
53
|
+
* Validates the Azure Arc environment by checking environment variables
|
|
54
|
+
* and performing file-based detection. It ensures that only system-assigned managed identities
|
|
55
|
+
* are supported for Azure Arc scenarios. The method performs comprehensive validation of
|
|
56
|
+
* endpoint URLs and logs detailed information about the detection process.
|
|
57
|
+
*
|
|
58
|
+
* @param logger - Logger instance for capturing creation and validation steps
|
|
59
|
+
* @param nodeStorage - Storage implementation for the managed identity source
|
|
60
|
+
* @param networkClient - Network client for HTTP communication
|
|
61
|
+
* @param cryptoProvider - Cryptographic operations provider
|
|
62
|
+
* @param disableInternalRetries - Whether to disable automatic retry mechanisms
|
|
63
|
+
* @param managedIdentityId - The managed identity configuration, must be system-assigned
|
|
64
|
+
*
|
|
65
|
+
* @returns AzureArc instance if the environment supports Azure Arc managed identity, null otherwise
|
|
66
|
+
*
|
|
67
|
+
* @throws {ManagedIdentityError} When a user-assigned managed identity is specified (not supported for Azure Arc)
|
|
68
|
+
*/
|
|
23
69
|
static tryCreate(logger: Logger, nodeStorage: NodeStorage, networkClient: INetworkModule, cryptoProvider: CryptoProvider, disableInternalRetries: boolean, managedIdentityId: ManagedIdentityId): AzureArc | null;
|
|
70
|
+
/**
|
|
71
|
+
* Creates a properly formatted HTTP request for acquiring tokens from the Azure Arc identity endpoint.
|
|
72
|
+
*
|
|
73
|
+
* This method constructs a GET request to the Azure Arc HIMDS endpoint with the required metadata header
|
|
74
|
+
* and query parameters. The endpoint URL is normalized to use 127.0.0.1 instead of localhost for
|
|
75
|
+
* consistency. Additional body parameters are calculated by the base class during token acquisition.
|
|
76
|
+
*
|
|
77
|
+
* @param resource - The target resource/scope for which to request an access token (e.g., "https://graph.microsoft.com/.default")
|
|
78
|
+
*
|
|
79
|
+
* @returns A configured ManagedIdentityRequestParameters object ready for network execution
|
|
80
|
+
*/
|
|
24
81
|
createRequest(resource: string): ManagedIdentityRequestParameters;
|
|
82
|
+
/**
|
|
83
|
+
* Processes the server response and handles Azure Arc-specific authentication challenges.
|
|
84
|
+
*
|
|
85
|
+
* This method implements the Azure Arc authentication flow which may require reading a secret file
|
|
86
|
+
* for authorization. When the initial request returns HTTP 401 Unauthorized, it extracts the file
|
|
87
|
+
* path from the WWW-Authenticate header, validates the file location and size, reads the secret,
|
|
88
|
+
* and retries the request with Basic authentication. The method includes comprehensive security
|
|
89
|
+
* validations to prevent path traversal and ensure file integrity.
|
|
90
|
+
*
|
|
91
|
+
* @param originalResponse - The initial HTTP response from the identity endpoint
|
|
92
|
+
* @param networkClient - Network client for making the retry request if needed
|
|
93
|
+
* @param networkRequest - The original request parameters (modified with auth header for retry)
|
|
94
|
+
* @param networkRequestOptions - Additional options for network requests
|
|
95
|
+
*
|
|
96
|
+
* @returns A promise that resolves to the server token response with access token and metadata
|
|
97
|
+
*
|
|
98
|
+
* @throws {ManagedIdentityError} When:
|
|
99
|
+
* - WWW-Authenticate header is missing or has unsupported format
|
|
100
|
+
* - Platform is not supported (not Windows or Linux)
|
|
101
|
+
* - Secret file has invalid extension (not .key)
|
|
102
|
+
* - Secret file path doesn't match expected platform path
|
|
103
|
+
* - Secret file cannot be read or is too large (>4096 bytes)
|
|
104
|
+
* @throws {ClientAuthError} When network errors occur during retry request
|
|
105
|
+
*/
|
|
25
106
|
getServerTokenResponseAsync(originalResponse: NetworkResponse<ManagedIdentityTokenResponse>, networkClient: INetworkModule, networkRequest: ManagedIdentityRequestParameters, networkRequestOptions: NetworkRequestOptions): Promise<ServerAuthorizationTokenResponse>;
|
|
26
107
|
}
|
|
27
108
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AzureArc.d.ts","sourceRoot":"","sources":["../../../src/client/ManagedIdentitySources/AzureArc.ts"],"names":[],"mappings":"AAKA,OAAO,EAIH,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,MAAM,EACN,gCAAgC,EAEnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAchE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAOzD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;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G;gBAEC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,gBAAgB,EAAE,MAAM;IAa5B;;;;;;;;;;OAUG;WACW,uBAAuB,IAAI,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;IAoClE;;;;;;;;;;;;;;;;;;OAkBG;WACW,SAAS,CACnB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,cAAc,EAC9B,sBAAsB,EAAE,OAAO,EAC/B,iBAAiB,EAAE,iBAAiB,GACrC,QAAQ,GAAG,IAAI;IAkElB;;;;;;;;;;OAUG;IACI,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,gCAAgC;IAmBxE;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACU,2BAA2B,CACpC,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,EAC/D,aAAa,EAAE,cAAc,EAC7B,cAAc,EAAE,gCAAgC,EAChD,qBAAqB,EAAE,qBAAqB,GAC7C,OAAO,CAAC,gCAAgC,CAAC;CAgH/C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v5.0.0-
|
|
1
|
+
/*! @azure/msal-node v5.0.0-beta.0 2025-12-05 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { Constants, AuthError, createClientAuthError, ClientAuthErrorCodes } from '@azure/msal-common/node';
|
|
4
4
|
import { ManagedIdentityRequestParameters } from '../../config/ManagedIdentityRequestParameters.mjs';
|
|
@@ -25,13 +25,40 @@ const AZURE_ARC_FILE_DETECTION = {
|
|
|
25
25
|
linux: "/opt/azcmagent/bin/himds",
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
+
* Azure Arc managed identity source implementation for acquiring tokens from Azure Arc-enabled servers.
|
|
29
|
+
*
|
|
30
|
+
* This class provides managed identity authentication for applications running on Azure Arc-enabled servers
|
|
31
|
+
* by communicating with the local Hybrid Instance Metadata Service (HIMDS). It supports both environment
|
|
32
|
+
* variable-based configuration and automatic detection through the HIMDS executable.
|
|
33
|
+
*
|
|
28
34
|
* Original source of code: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/AzureArcManagedIdentitySource.cs
|
|
29
35
|
*/
|
|
30
36
|
class AzureArc extends BaseManagedIdentitySource {
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new instance of the AzureArc managed identity source.
|
|
39
|
+
*
|
|
40
|
+
* @param logger - Logger instance for capturing telemetry and diagnostic information
|
|
41
|
+
* @param nodeStorage - Storage implementation for caching tokens and metadata
|
|
42
|
+
* @param networkClient - Network client for making HTTP requests to the identity endpoint
|
|
43
|
+
* @param cryptoProvider - Cryptographic operations provider for token validation and encryption
|
|
44
|
+
* @param disableInternalRetries - Flag to disable automatic retry logic for failed requests
|
|
45
|
+
* @param identityEndpoint - The Azure Arc identity endpoint URL for token requests
|
|
46
|
+
*/
|
|
31
47
|
constructor(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries, identityEndpoint) {
|
|
32
48
|
super(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries);
|
|
33
49
|
this.identityEndpoint = identityEndpoint;
|
|
34
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves and validates Azure Arc environment variables for managed identity configuration.
|
|
53
|
+
*
|
|
54
|
+
* This method checks for IDENTITY_ENDPOINT and IMDS_ENDPOINT environment variables.
|
|
55
|
+
* If either is missing, it attempts to detect the Azure Arc environment by checking for
|
|
56
|
+
* the HIMDS executable at platform-specific paths. On successful detection, it returns
|
|
57
|
+
* the default identity endpoint and a helper string indicating file-based detection.
|
|
58
|
+
*
|
|
59
|
+
* @returns An array containing [identityEndpoint, imdsEndpoint] where both values are
|
|
60
|
+
* strings if Azure Arc is available, or undefined if not available.
|
|
61
|
+
*/
|
|
35
62
|
static getEnvironmentVariables() {
|
|
36
63
|
let identityEndpoint = process.env[ManagedIdentityEnvironmentVariableNames.IDENTITY_ENDPOINT];
|
|
37
64
|
let imdsEndpoint = process.env[ManagedIdentityEnvironmentVariableNames.IMDS_ENDPOINT];
|
|
@@ -57,6 +84,25 @@ class AzureArc extends BaseManagedIdentitySource {
|
|
|
57
84
|
}
|
|
58
85
|
return [identityEndpoint, imdsEndpoint];
|
|
59
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Attempts to create an AzureArc managed identity source instance.
|
|
89
|
+
*
|
|
90
|
+
* Validates the Azure Arc environment by checking environment variables
|
|
91
|
+
* and performing file-based detection. It ensures that only system-assigned managed identities
|
|
92
|
+
* are supported for Azure Arc scenarios. The method performs comprehensive validation of
|
|
93
|
+
* endpoint URLs and logs detailed information about the detection process.
|
|
94
|
+
*
|
|
95
|
+
* @param logger - Logger instance for capturing creation and validation steps
|
|
96
|
+
* @param nodeStorage - Storage implementation for the managed identity source
|
|
97
|
+
* @param networkClient - Network client for HTTP communication
|
|
98
|
+
* @param cryptoProvider - Cryptographic operations provider
|
|
99
|
+
* @param disableInternalRetries - Whether to disable automatic retry mechanisms
|
|
100
|
+
* @param managedIdentityId - The managed identity configuration, must be system-assigned
|
|
101
|
+
*
|
|
102
|
+
* @returns AzureArc instance if the environment supports Azure Arc managed identity, null otherwise
|
|
103
|
+
*
|
|
104
|
+
* @throws {ManagedIdentityError} When a user-assigned managed identity is specified (not supported for Azure Arc)
|
|
105
|
+
*/
|
|
60
106
|
static tryCreate(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries, managedIdentityId) {
|
|
61
107
|
const [identityEndpoint, imdsEndpoint] = AzureArc.getEnvironmentVariables();
|
|
62
108
|
// if either of the identity or imds endpoints are undefined (even after himds file detection)
|
|
@@ -83,6 +129,17 @@ class AzureArc extends BaseManagedIdentitySource {
|
|
|
83
129
|
}
|
|
84
130
|
return new AzureArc(logger, nodeStorage, networkClient, cryptoProvider, disableInternalRetries, identityEndpoint);
|
|
85
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* Creates a properly formatted HTTP request for acquiring tokens from the Azure Arc identity endpoint.
|
|
134
|
+
*
|
|
135
|
+
* This method constructs a GET request to the Azure Arc HIMDS endpoint with the required metadata header
|
|
136
|
+
* and query parameters. The endpoint URL is normalized to use 127.0.0.1 instead of localhost for
|
|
137
|
+
* consistency. Additional body parameters are calculated by the base class during token acquisition.
|
|
138
|
+
*
|
|
139
|
+
* @param resource - The target resource/scope for which to request an access token (e.g., "https://graph.microsoft.com/.default")
|
|
140
|
+
*
|
|
141
|
+
* @returns A configured ManagedIdentityRequestParameters object ready for network execution
|
|
142
|
+
*/
|
|
86
143
|
createRequest(resource) {
|
|
87
144
|
const request = new ManagedIdentityRequestParameters(HttpMethod.GET, this.identityEndpoint.replace("localhost", "127.0.0.1"));
|
|
88
145
|
request.headers[ManagedIdentityHeaders.METADATA_HEADER_NAME] = "true";
|
|
@@ -93,6 +150,30 @@ class AzureArc extends BaseManagedIdentitySource {
|
|
|
93
150
|
// bodyParameters calculated in BaseManagedIdentity.acquireTokenWithManagedIdentity
|
|
94
151
|
return request;
|
|
95
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* Processes the server response and handles Azure Arc-specific authentication challenges.
|
|
155
|
+
*
|
|
156
|
+
* This method implements the Azure Arc authentication flow which may require reading a secret file
|
|
157
|
+
* for authorization. When the initial request returns HTTP 401 Unauthorized, it extracts the file
|
|
158
|
+
* path from the WWW-Authenticate header, validates the file location and size, reads the secret,
|
|
159
|
+
* and retries the request with Basic authentication. The method includes comprehensive security
|
|
160
|
+
* validations to prevent path traversal and ensure file integrity.
|
|
161
|
+
*
|
|
162
|
+
* @param originalResponse - The initial HTTP response from the identity endpoint
|
|
163
|
+
* @param networkClient - Network client for making the retry request if needed
|
|
164
|
+
* @param networkRequest - The original request parameters (modified with auth header for retry)
|
|
165
|
+
* @param networkRequestOptions - Additional options for network requests
|
|
166
|
+
*
|
|
167
|
+
* @returns A promise that resolves to the server token response with access token and metadata
|
|
168
|
+
*
|
|
169
|
+
* @throws {ManagedIdentityError} When:
|
|
170
|
+
* - WWW-Authenticate header is missing or has unsupported format
|
|
171
|
+
* - Platform is not supported (not Windows or Linux)
|
|
172
|
+
* - Secret file has invalid extension (not .key)
|
|
173
|
+
* - Secret file path doesn't match expected platform path
|
|
174
|
+
* - Secret file cannot be read or is too large (>4096 bytes)
|
|
175
|
+
* @throws {ClientAuthError} When network errors occur during retry request
|
|
176
|
+
*/
|
|
96
177
|
async getServerTokenResponseAsync(originalResponse, networkClient, networkRequest, networkRequestOptions) {
|
|
97
178
|
let retryResponse;
|
|
98
179
|
if (originalResponse.status === Constants.HTTP_UNAUTHORIZED) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AzureArc.mjs","sources":["../../../src/client/ManagedIdentitySources/AzureArc.ts"],"sourcesContent":[null],"names":["fsConstants","ManagedIdentityErrorCodes.unableToCreateAzureArc","ManagedIdentityErrorCodes.wwwAuthenticateHeaderMissing","ManagedIdentityErrorCodes.wwwAuthenticateHeaderUnsupportedFormat","ManagedIdentityErrorCodes.platformNotSupported","ManagedIdentityErrorCodes.invalidFileExtension","ManagedIdentityErrorCodes.invalidFilePath","ManagedIdentityErrorCodes.unableToReadSecretFile","ManagedIdentityErrorCodes.invalidSecret"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AAwCI,MAAM,eAAe,GAAW,aAAa;AAC7C,MAAM,mCAAmC,GAC5C,wDAAwD;AAC5D,MAAM,8BAA8B,GAAG,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"AzureArc.mjs","sources":["../../../src/client/ManagedIdentitySources/AzureArc.ts"],"sourcesContent":[null],"names":["fsConstants","ManagedIdentityErrorCodes.unableToCreateAzureArc","ManagedIdentityErrorCodes.wwwAuthenticateHeaderMissing","ManagedIdentityErrorCodes.wwwAuthenticateHeaderUnsupportedFormat","ManagedIdentityErrorCodes.platformNotSupported","ManagedIdentityErrorCodes.invalidFileExtension","ManagedIdentityErrorCodes.invalidFilePath","ManagedIdentityErrorCodes.unableToReadSecretFile","ManagedIdentityErrorCodes.invalidSecret"],"mappings":";;;;;;;;;;;AAAA;;;AAGG;AAwCI,MAAM,eAAe,GAAW,aAAa;AAC7C,MAAM,mCAAmC,GAC5C,wDAAwD;AAC5D,MAAM,8BAA8B,GAAG,8BAA8B,CAAC;AAOzD,MAAA,6BAA6B,GAAgB;IACtD,KAAK,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAwC,sCAAA,CAAA;AAC5E,IAAA,KAAK,EAAE,4BAA4B;EACrC;AAEW,MAAA,wBAAwB,GAAgB;IACjD,KAAK,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAyC,uCAAA,CAAA;AAC9E,IAAA,KAAK,EAAE,0BAA0B;EACnC;AAEF;;;;;;;;AAQG;AACG,MAAO,QAAS,SAAQ,yBAAyB,CAAA;AAGnD;;;;;;;;;AASG;IACH,WACI,CAAA,MAAc,EACd,WAAwB,EACxB,aAA6B,EAC7B,cAA8B,EAC9B,sBAA+B,EAC/B,gBAAwB,EAAA;QAExB,KAAK,CACD,MAAM,EACN,WAAW,EACX,aAAa,EACb,cAAc,EACd,sBAAsB,CACzB,CAAC;AAEF,QAAA,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;KAC5C;AAED;;;;;;;;;;AAUG;AACI,IAAA,OAAO,uBAAuB,GAAA;QACjC,IAAI,gBAAgB,GAChB,OAAO,CAAC,GAAG,CACP,uCAAuC,CAAC,iBAAiB,CAC5D,CAAC;QACN,IAAI,YAAY,GACZ,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,aAAa,CAAC,CAAC;;AAGvE,QAAA,IAAI,CAAC,gBAAgB,IAAI,CAAC,YAAY,EAAE;;YAEpC,MAAM,iBAAiB,GACnB,wBAAwB,CAAC,OAAO,CAAC,QAA6B,CAAC,CAAC;YACpE,IAAI;AAC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