@azure/msal-node 5.1.5 → 5.2.1
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/TokenCache.mjs +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
- package/dist/cache/serializer/Deserializer.mjs +1 -1
- package/dist/cache/serializer/Serializer.mjs +1 -1
- package/dist/client/BaseClient.mjs +1 -1
- package/dist/client/ClientApplication.mjs +1 -1
- package/dist/client/ClientAssertion.mjs +1 -1
- package/dist/client/ClientCredentialClient.mjs +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +1 -1
- package/dist/client/DeviceCodeClient.mjs +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +1 -1
- package/dist/client/ManagedIdentityClient.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +9 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +8 -2
- package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
- package/dist/client/OnBehalfOfClient.mjs +1 -1
- package/dist/client/PublicClientApplication.mjs +1 -1
- package/dist/client/UsernamePasswordClient.mjs +1 -1
- package/dist/config/Configuration.mjs +1 -1
- package/dist/config/ManagedIdentityId.mjs +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
- package/dist/crypto/CryptoProvider.mjs +1 -1
- package/dist/crypto/GuidGenerator.mjs +1 -1
- package/dist/crypto/HashUtils.mjs +1 -1
- package/dist/crypto/PkceGenerator.mjs +1 -1
- package/dist/error/ClientAuthErrorCodes.mjs +1 -1
- package/dist/error/ManagedIdentityError.mjs +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/dist/error/NodeAuthError.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internals.mjs +1 -1
- package/dist/network/HttpClient.mjs +1 -1
- package/dist/network/HttpClientWithRetries.mjs +1 -1
- package/dist/network/LoopbackClient.mjs +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.mjs +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs +1 -1
- package/dist/retry/LinearRetryStrategy.mjs +1 -1
- package/dist/utils/Constants.mjs +6 -1
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/EncodingUtils.mjs +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/lib/msal-node.cjs +228 -66
- package/lib/msal-node.cjs.map +1 -1
- package/package.json +9 -7
- package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -0
- package/src/client/ManagedIdentitySources/Imds.ts +7 -0
- package/src/packageMetadata.ts +1 -1
- package/src/utils/Constants.ts +4 -0
- package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +6 -0
- package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/types/index.d.cts +1 -0
- package/types/packageMetadata.d.ts +3 -0
- package/{lib/types → types}/utils/Constants.d.ts +3 -0
- package/{lib/types → types}/utils/Constants.d.ts.map +1 -1
- package/dist/packageMetadata.d.ts +0 -3
- package/dist/utils/Constants.d.ts +0 -156
- package/dist/utils/Constants.d.ts.map +0 -1
- package/lib/types/cache/CacheHelpers.d.ts +0 -4
- package/lib/types/cache/CacheHelpers.d.ts.map +0 -1
- package/lib/types/cache/ITokenCache.d.ts +0 -16
- package/lib/types/cache/ITokenCache.d.ts.map +0 -1
- package/lib/types/cache/NodeStorage.d.ts +0 -191
- package/lib/types/cache/NodeStorage.d.ts.map +0 -1
- package/lib/types/cache/TokenCache.d.ts +0 -99
- package/lib/types/cache/TokenCache.d.ts.map +0 -1
- package/lib/types/cache/distributed/DistributedCachePlugin.d.ts +0 -23
- package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +0 -1
- package/lib/types/cache/distributed/ICacheClient.d.ts +0 -22
- package/lib/types/cache/distributed/ICacheClient.d.ts.map +0 -1
- package/lib/types/cache/distributed/IPartitionManager.d.ts +0 -33
- package/lib/types/cache/distributed/IPartitionManager.d.ts.map +0 -1
- package/lib/types/cache/serializer/Deserializer.d.ts +0 -44
- package/lib/types/cache/serializer/Deserializer.d.ts.map +0 -1
- package/lib/types/cache/serializer/Serializer.d.ts +0 -44
- package/lib/types/cache/serializer/Serializer.d.ts.map +0 -1
- package/lib/types/cache/serializer/SerializerTypes.d.ts +0 -102
- package/lib/types/cache/serializer/SerializerTypes.d.ts.map +0 -1
- package/lib/types/client/BaseClient.d.ts +0 -42
- package/lib/types/client/BaseClient.d.ts.map +0 -1
- package/lib/types/client/ClientApplication.d.ts +0 -146
- package/lib/types/client/ClientApplication.d.ts.map +0 -1
- package/lib/types/client/ClientAssertion.d.ts +0 -56
- package/lib/types/client/ClientAssertion.d.ts.map +0 -1
- package/lib/types/client/ClientCredentialClient.d.ts +0 -37
- package/lib/types/client/ClientCredentialClient.d.ts.map +0 -1
- package/lib/types/client/ConfidentialClientApplication.d.ts +0 -58
- package/lib/types/client/ConfidentialClientApplication.d.ts.map +0 -1
- package/lib/types/client/DeviceCodeClient.d.ts +0 -60
- package/lib/types/client/DeviceCodeClient.d.ts.map +0 -1
- package/lib/types/client/IConfidentialClientApplication.d.ts +0 -43
- package/lib/types/client/IConfidentialClientApplication.d.ts.map +0 -1
- package/lib/types/client/IPublicClientApplication.d.ts +0 -46
- package/lib/types/client/IPublicClientApplication.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentityApplication.d.ts +0 -42
- package/lib/types/client/ManagedIdentityApplication.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentityClient.d.ts +0 -29
- package/lib/types/client/ManagedIdentityClient.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts +0 -72
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +0 -109
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +0 -125
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +0 -71
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts +0 -67
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +0 -81
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -1
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -82
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -1
- package/lib/types/client/OnBehalfOfClient.d.ts +0 -50
- package/lib/types/client/OnBehalfOfClient.d.ts.map +0 -1
- package/lib/types/client/PublicClientApplication.d.ts +0 -85
- package/lib/types/client/PublicClientApplication.d.ts.map +0 -1
- package/lib/types/client/UsernamePasswordClient.d.ts +0 -30
- package/lib/types/client/UsernamePasswordClient.d.ts.map +0 -1
- package/lib/types/config/Configuration.d.ts +0 -131
- package/lib/types/config/Configuration.d.ts.map +0 -1
- package/lib/types/config/ManagedIdentityId.d.ts +0 -12
- package/lib/types/config/ManagedIdentityId.d.ts.map +0 -1
- package/lib/types/config/ManagedIdentityRequestParameters.d.ts +0 -13
- package/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +0 -1
- package/lib/types/crypto/CryptoProvider.d.ts +0 -63
- package/lib/types/crypto/CryptoProvider.d.ts.map +0 -1
- package/lib/types/crypto/GuidGenerator.d.ts +0 -14
- package/lib/types/crypto/GuidGenerator.d.ts.map +0 -1
- package/lib/types/crypto/HashUtils.d.ts +0 -10
- package/lib/types/crypto/HashUtils.d.ts.map +0 -1
- package/lib/types/crypto/PkceGenerator.d.ts +0 -23
- package/lib/types/crypto/PkceGenerator.d.ts.map +0 -1
- package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +0 -1
- package/lib/types/error/ManagedIdentityError.d.ts +0 -31
- package/lib/types/error/ManagedIdentityError.d.ts.map +0 -1
- package/lib/types/error/ManagedIdentityErrorCodes.d.ts +0 -23
- package/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +0 -1
- package/lib/types/error/NodeAuthError.d.ts +0 -82
- package/lib/types/error/NodeAuthError.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -54
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/internals.d.ts +0 -7
- package/lib/types/internals.d.ts.map +0 -1
- package/lib/types/network/HttpClient.d.ts +0 -66
- package/lib/types/network/HttpClient.d.ts.map +0 -1
- package/lib/types/network/HttpClientWithRetries.d.ts +0 -13
- package/lib/types/network/HttpClientWithRetries.d.ts.map +0 -1
- package/lib/types/network/ILoopbackClient.d.ts +0 -11
- package/lib/types/network/ILoopbackClient.d.ts.map +0 -1
- package/lib/types/network/LoopbackClient.d.ts +0 -22
- package/lib/types/network/LoopbackClient.d.ts.map +0 -1
- package/lib/types/packageMetadata.d.ts +0 -3
- package/lib/types/packageMetadata.d.ts.map +0 -1
- package/lib/types/protocol/Authorize.d.ts +0 -12
- package/lib/types/protocol/Authorize.d.ts.map +0 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts +0 -24
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +0 -1
- package/lib/types/request/AuthorizationUrlRequest.d.ts +0 -16
- package/lib/types/request/AuthorizationUrlRequest.d.ts.map +0 -1
- package/lib/types/request/ClientCredentialRequest.d.ts +0 -13
- package/lib/types/request/ClientCredentialRequest.d.ts.map +0 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -19
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -23
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -15
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -16
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/lib/types/request/DeviceCodeRequest.d.ts +0 -17
- package/lib/types/request/DeviceCodeRequest.d.ts.map +0 -1
- package/lib/types/request/InteractiveRequest.d.ts +0 -35
- package/lib/types/request/InteractiveRequest.d.ts.map +0 -1
- package/lib/types/request/ManagedIdentityRequest.d.ts +0 -16
- package/lib/types/request/ManagedIdentityRequest.d.ts.map +0 -1
- package/lib/types/request/ManagedIdentityRequestParams.d.ts +0 -19
- package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +0 -1
- package/lib/types/request/OnBehalfOfRequest.d.ts +0 -16
- package/lib/types/request/OnBehalfOfRequest.d.ts.map +0 -1
- package/lib/types/request/RefreshTokenRequest.d.ts +0 -20
- package/lib/types/request/RefreshTokenRequest.d.ts.map +0 -1
- package/lib/types/request/SignOutRequest.d.ts +0 -7
- package/lib/types/request/SignOutRequest.d.ts.map +0 -1
- package/lib/types/request/SilentFlowRequest.d.ts +0 -16
- package/lib/types/request/SilentFlowRequest.d.ts.map +0 -1
- package/lib/types/request/UsernamePasswordRequest.d.ts +0 -21
- package/lib/types/request/UsernamePasswordRequest.d.ts.map +0 -1
- package/lib/types/response/ManagedIdentityTokenResponse.d.ts +0 -35
- package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +0 -1
- package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -11
- package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -1
- package/lib/types/retry/ExponentialRetryStrategy.d.ts +0 -23
- package/lib/types/retry/ExponentialRetryStrategy.d.ts.map +0 -1
- package/lib/types/retry/IHttpRetryPolicy.d.ts +0 -16
- package/lib/types/retry/IHttpRetryPolicy.d.ts.map +0 -1
- package/lib/types/retry/ImdsRetryPolicy.d.ts +0 -22
- package/lib/types/retry/ImdsRetryPolicy.d.ts.map +0 -1
- package/lib/types/retry/LinearRetryStrategy.d.ts +0 -14
- package/lib/types/retry/LinearRetryStrategy.d.ts.map +0 -1
- package/lib/types/utils/EncodingUtils.d.ts +0 -27
- package/lib/types/utils/EncodingUtils.d.ts.map +0 -1
- package/lib/types/utils/NetworkUtils.d.ts +0 -17
- package/lib/types/utils/NetworkUtils.d.ts.map +0 -1
- package/lib/types/utils/TimeUtils.d.ts +0 -9
- package/lib/types/utils/TimeUtils.d.ts.map +0 -1
- /package/{dist → types}/cache/CacheHelpers.d.ts +0 -0
- /package/{dist → types}/cache/CacheHelpers.d.ts.map +0 -0
- /package/{dist → types}/cache/ITokenCache.d.ts +0 -0
- /package/{dist → types}/cache/ITokenCache.d.ts.map +0 -0
- /package/{dist → types}/cache/NodeStorage.d.ts +0 -0
- /package/{dist → types}/cache/NodeStorage.d.ts.map +0 -0
- /package/{dist → types}/cache/TokenCache.d.ts +0 -0
- /package/{dist → types}/cache/TokenCache.d.ts.map +0 -0
- /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts +0 -0
- /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts.map +0 -0
- /package/{dist → types}/cache/distributed/ICacheClient.d.ts +0 -0
- /package/{dist → types}/cache/distributed/ICacheClient.d.ts.map +0 -0
- /package/{dist → types}/cache/distributed/IPartitionManager.d.ts +0 -0
- /package/{dist → types}/cache/distributed/IPartitionManager.d.ts.map +0 -0
- /package/{dist → types}/cache/serializer/Deserializer.d.ts +0 -0
- /package/{dist → types}/cache/serializer/Deserializer.d.ts.map +0 -0
- /package/{dist → types}/cache/serializer/Serializer.d.ts +0 -0
- /package/{dist → types}/cache/serializer/Serializer.d.ts.map +0 -0
- /package/{dist → types}/cache/serializer/SerializerTypes.d.ts +0 -0
- /package/{dist → types}/cache/serializer/SerializerTypes.d.ts.map +0 -0
- /package/{dist → types}/client/BaseClient.d.ts +0 -0
- /package/{dist → types}/client/BaseClient.d.ts.map +0 -0
- /package/{dist → types}/client/ClientApplication.d.ts +0 -0
- /package/{dist → types}/client/ClientApplication.d.ts.map +0 -0
- /package/{dist → types}/client/ClientAssertion.d.ts +0 -0
- /package/{dist → types}/client/ClientAssertion.d.ts.map +0 -0
- /package/{dist → types}/client/ClientCredentialClient.d.ts +0 -0
- /package/{dist → types}/client/ClientCredentialClient.d.ts.map +0 -0
- /package/{dist → types}/client/ConfidentialClientApplication.d.ts +0 -0
- /package/{dist → types}/client/ConfidentialClientApplication.d.ts.map +0 -0
- /package/{dist → types}/client/DeviceCodeClient.d.ts +0 -0
- /package/{dist → types}/client/DeviceCodeClient.d.ts.map +0 -0
- /package/{dist → types}/client/IConfidentialClientApplication.d.ts +0 -0
- /package/{dist → types}/client/IConfidentialClientApplication.d.ts.map +0 -0
- /package/{dist → types}/client/IPublicClientApplication.d.ts +0 -0
- /package/{dist → types}/client/IPublicClientApplication.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentityApplication.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentityApplication.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentityClient.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentityClient.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -0
- /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -0
- /package/{dist → types}/client/OnBehalfOfClient.d.ts +0 -0
- /package/{dist → types}/client/OnBehalfOfClient.d.ts.map +0 -0
- /package/{dist → types}/client/PublicClientApplication.d.ts +0 -0
- /package/{dist → types}/client/PublicClientApplication.d.ts.map +0 -0
- /package/{dist → types}/client/UsernamePasswordClient.d.ts +0 -0
- /package/{dist → types}/client/UsernamePasswordClient.d.ts.map +0 -0
- /package/{dist → types}/config/Configuration.d.ts +0 -0
- /package/{dist → types}/config/Configuration.d.ts.map +0 -0
- /package/{dist → types}/config/ManagedIdentityId.d.ts +0 -0
- /package/{dist → types}/config/ManagedIdentityId.d.ts.map +0 -0
- /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts +0 -0
- /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts.map +0 -0
- /package/{dist → types}/crypto/CryptoProvider.d.ts +0 -0
- /package/{dist → types}/crypto/CryptoProvider.d.ts.map +0 -0
- /package/{dist → types}/crypto/GuidGenerator.d.ts +0 -0
- /package/{dist → types}/crypto/GuidGenerator.d.ts.map +0 -0
- /package/{dist → types}/crypto/HashUtils.d.ts +0 -0
- /package/{dist → types}/crypto/HashUtils.d.ts.map +0 -0
- /package/{dist → types}/crypto/PkceGenerator.d.ts +0 -0
- /package/{dist → types}/crypto/PkceGenerator.d.ts.map +0 -0
- /package/{dist → types}/error/ClientAuthErrorCodes.d.ts +0 -0
- /package/{dist → types}/error/ClientAuthErrorCodes.d.ts.map +0 -0
- /package/{dist → types}/error/ManagedIdentityError.d.ts +0 -0
- /package/{dist → types}/error/ManagedIdentityError.d.ts.map +0 -0
- /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts +0 -0
- /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts.map +0 -0
- /package/{dist → types}/error/NodeAuthError.d.ts +0 -0
- /package/{dist → types}/error/NodeAuthError.d.ts.map +0 -0
- /package/{dist → types}/index.d.ts +0 -0
- /package/{dist → types}/index.d.ts.map +0 -0
- /package/{dist → types}/internals.d.ts +0 -0
- /package/{dist → types}/internals.d.ts.map +0 -0
- /package/{dist → types}/network/HttpClient.d.ts +0 -0
- /package/{dist → types}/network/HttpClient.d.ts.map +0 -0
- /package/{dist → types}/network/HttpClientWithRetries.d.ts +0 -0
- /package/{dist → types}/network/HttpClientWithRetries.d.ts.map +0 -0
- /package/{dist → types}/network/ILoopbackClient.d.ts +0 -0
- /package/{dist → types}/network/ILoopbackClient.d.ts.map +0 -0
- /package/{dist → types}/network/LoopbackClient.d.ts +0 -0
- /package/{dist → types}/network/LoopbackClient.d.ts.map +0 -0
- /package/{dist → types}/packageMetadata.d.ts.map +0 -0
- /package/{dist → types}/protocol/Authorize.d.ts +0 -0
- /package/{dist → types}/protocol/Authorize.d.ts.map +0 -0
- /package/{dist → types}/request/AuthorizationCodeRequest.d.ts +0 -0
- /package/{dist → types}/request/AuthorizationCodeRequest.d.ts.map +0 -0
- /package/{dist → types}/request/AuthorizationUrlRequest.d.ts +0 -0
- /package/{dist → types}/request/AuthorizationUrlRequest.d.ts.map +0 -0
- /package/{dist → types}/request/ClientCredentialRequest.d.ts +0 -0
- /package/{dist → types}/request/ClientCredentialRequest.d.ts.map +0 -0
- /package/{dist → types}/request/CommonClientCredentialRequest.d.ts +0 -0
- /package/{dist → types}/request/CommonClientCredentialRequest.d.ts.map +0 -0
- /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts +0 -0
- /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts.map +0 -0
- /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts +0 -0
- /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts.map +0 -0
- /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts +0 -0
- /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts.map +0 -0
- /package/{dist → types}/request/DeviceCodeRequest.d.ts +0 -0
- /package/{dist → types}/request/DeviceCodeRequest.d.ts.map +0 -0
- /package/{dist → types}/request/InteractiveRequest.d.ts +0 -0
- /package/{dist → types}/request/InteractiveRequest.d.ts.map +0 -0
- /package/{dist → types}/request/ManagedIdentityRequest.d.ts +0 -0
- /package/{dist → types}/request/ManagedIdentityRequest.d.ts.map +0 -0
- /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts +0 -0
- /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts.map +0 -0
- /package/{dist → types}/request/OnBehalfOfRequest.d.ts +0 -0
- /package/{dist → types}/request/OnBehalfOfRequest.d.ts.map +0 -0
- /package/{dist → types}/request/RefreshTokenRequest.d.ts +0 -0
- /package/{dist → types}/request/RefreshTokenRequest.d.ts.map +0 -0
- /package/{dist → types}/request/SignOutRequest.d.ts +0 -0
- /package/{dist → types}/request/SignOutRequest.d.ts.map +0 -0
- /package/{dist → types}/request/SilentFlowRequest.d.ts +0 -0
- /package/{dist → types}/request/SilentFlowRequest.d.ts.map +0 -0
- /package/{dist → types}/request/UsernamePasswordRequest.d.ts +0 -0
- /package/{dist → types}/request/UsernamePasswordRequest.d.ts.map +0 -0
- /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts +0 -0
- /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts.map +0 -0
- /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -0
- /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -0
- /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts +0 -0
- /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts.map +0 -0
- /package/{dist → types}/retry/IHttpRetryPolicy.d.ts +0 -0
- /package/{dist → types}/retry/IHttpRetryPolicy.d.ts.map +0 -0
- /package/{dist → types}/retry/ImdsRetryPolicy.d.ts +0 -0
- /package/{dist → types}/retry/ImdsRetryPolicy.d.ts.map +0 -0
- /package/{dist → types}/retry/LinearRetryStrategy.d.ts +0 -0
- /package/{dist → types}/retry/LinearRetryStrategy.d.ts.map +0 -0
- /package/{dist → types}/utils/EncodingUtils.d.ts +0 -0
- /package/{dist → types}/utils/EncodingUtils.d.ts.map +0 -0
- /package/{dist → types}/utils/NetworkUtils.d.ts +0 -0
- /package/{dist → types}/utils/NetworkUtils.d.ts.map +0 -0
- /package/{dist → types}/utils/TimeUtils.d.ts +0 -0
- /package/{dist → types}/utils/TimeUtils.d.ts.map +0 -0
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { NodeStorage } from "./NodeStorage.js";
|
|
2
|
-
import { AccountInfo, Logger, ISerializableTokenCache, ICachePlugin } from "@azure/msal-common/node";
|
|
3
|
-
import { CacheKVStore } from "./serializer/SerializerTypes.js";
|
|
4
|
-
import { ITokenCache } from "./ITokenCache.js";
|
|
5
|
-
/**
|
|
6
|
-
* In-memory token cache manager
|
|
7
|
-
* @public
|
|
8
|
-
*/
|
|
9
|
-
export declare class TokenCache implements ISerializableTokenCache, ITokenCache {
|
|
10
|
-
private storage;
|
|
11
|
-
private cacheHasChanged;
|
|
12
|
-
private cacheSnapshot;
|
|
13
|
-
readonly persistence: ICachePlugin;
|
|
14
|
-
private logger;
|
|
15
|
-
constructor(storage: NodeStorage, logger: Logger, cachePlugin?: ICachePlugin);
|
|
16
|
-
/**
|
|
17
|
-
* Set to true if cache state has changed since last time serialize or writeToPersistence was called
|
|
18
|
-
*/
|
|
19
|
-
hasChanged(): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Serializes in memory cache to JSON
|
|
22
|
-
*/
|
|
23
|
-
serialize(): string;
|
|
24
|
-
/**
|
|
25
|
-
* Deserializes JSON to in-memory cache. JSON should be in MSAL cache schema format
|
|
26
|
-
* @param cache - blob formatted cache
|
|
27
|
-
*/
|
|
28
|
-
deserialize(cache: string): void;
|
|
29
|
-
/**
|
|
30
|
-
* Fetches the cache key-value map
|
|
31
|
-
*/
|
|
32
|
-
getKVStore(): CacheKVStore;
|
|
33
|
-
/**
|
|
34
|
-
* Gets cache snapshot in CacheKVStore format
|
|
35
|
-
*/
|
|
36
|
-
getCacheSnapshot(): CacheKVStore;
|
|
37
|
-
/**
|
|
38
|
-
* API that retrieves all accounts currently in cache to the user
|
|
39
|
-
*/
|
|
40
|
-
getAllAccounts(correlationId?: string): Promise<AccountInfo[]>;
|
|
41
|
-
/**
|
|
42
|
-
* Returns the signed in account matching homeAccountId.
|
|
43
|
-
* (the account object is created at the time of successful login)
|
|
44
|
-
* or null when no matching account is found
|
|
45
|
-
* @param homeAccountId - unique identifier for an account (uid.utid)
|
|
46
|
-
*/
|
|
47
|
-
getAccountByHomeId(homeAccountId: string): Promise<AccountInfo | null>;
|
|
48
|
-
/**
|
|
49
|
-
* Returns the signed in account matching localAccountId.
|
|
50
|
-
* (the account object is created at the time of successful login)
|
|
51
|
-
* or null when no matching account is found
|
|
52
|
-
* @param localAccountId - unique identifier of an account (sub/obj when homeAccountId cannot be populated)
|
|
53
|
-
*/
|
|
54
|
-
getAccountByLocalId(localAccountId: string): Promise<AccountInfo | null>;
|
|
55
|
-
/**
|
|
56
|
-
* API to remove a specific account and the relevant data from cache
|
|
57
|
-
* @param account - AccountInfo passed by the user
|
|
58
|
-
*/
|
|
59
|
-
removeAccount(account: AccountInfo, correlationId?: string): Promise<void>;
|
|
60
|
-
/**
|
|
61
|
-
* Overwrites in-memory cache with persistent cache
|
|
62
|
-
*/
|
|
63
|
-
overwriteCache(): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* Called when the cache has changed state.
|
|
66
|
-
*/
|
|
67
|
-
private handleChangeEvent;
|
|
68
|
-
/**
|
|
69
|
-
* Merge in memory cache with the cache snapshot.
|
|
70
|
-
* @param oldState - cache before changes
|
|
71
|
-
* @param currentState - current cache state in the library
|
|
72
|
-
*/
|
|
73
|
-
private mergeState;
|
|
74
|
-
/**
|
|
75
|
-
* Deep update of oldState based on newState values
|
|
76
|
-
* @param oldState - cache before changes
|
|
77
|
-
* @param newState - updated cache
|
|
78
|
-
*/
|
|
79
|
-
private mergeUpdates;
|
|
80
|
-
/**
|
|
81
|
-
* Removes entities in oldState that the were removed from newState. If there are any unknown values in root of
|
|
82
|
-
* oldState that are not recognized, they are left untouched.
|
|
83
|
-
* @param oldState - cache before changes
|
|
84
|
-
* @param newState - updated cache
|
|
85
|
-
*/
|
|
86
|
-
private mergeRemovals;
|
|
87
|
-
/**
|
|
88
|
-
* Helper to merge new cache with the old one
|
|
89
|
-
* @param oldState - cache before changes
|
|
90
|
-
* @param newState - updated cache
|
|
91
|
-
*/
|
|
92
|
-
private mergeRemovalsDict;
|
|
93
|
-
/**
|
|
94
|
-
* Helper to overlay as a part of cache merge
|
|
95
|
-
* @param passedInCache - cache read from the blob
|
|
96
|
-
*/
|
|
97
|
-
private overlayDefaults;
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=TokenCache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TokenCache.d.ts","sourceRoot":"","sources":["../../../src/cache/TokenCache.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACH,WAAW,EACX,MAAM,EACN,uBAAuB,EACvB,YAAY,EAEf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAQH,YAAY,EACf,MAAM,iCAAiC,CAAC;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GG;IACH,OAAO,CAAC,eAAe;CAyB1B"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ICachePlugin, TokenCacheContext } from "@azure/msal-common/node";
|
|
2
|
-
import { IPartitionManager } from "./IPartitionManager.js";
|
|
3
|
-
import { ICacheClient } from "./ICacheClient.js";
|
|
4
|
-
/**
|
|
5
|
-
* Cache plugin that serializes data to the cache and deserializes data from the cache
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare class DistributedCachePlugin implements ICachePlugin {
|
|
9
|
-
private client;
|
|
10
|
-
private partitionManager;
|
|
11
|
-
constructor(client: ICacheClient, partitionManager: IPartitionManager);
|
|
12
|
-
/**
|
|
13
|
-
* Deserializes the cache before accessing it
|
|
14
|
-
* @param cacheContext - TokenCacheContext
|
|
15
|
-
*/
|
|
16
|
-
beforeCacheAccess(cacheContext: TokenCacheContext): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* Serializes the cache after accessing it
|
|
19
|
-
* @param cacheContext - TokenCacheContext
|
|
20
|
-
*/
|
|
21
|
-
afterCacheAccess(cacheContext: TokenCacheContext): Promise<void>;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=DistributedCachePlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DistributedCachePlugin.d.ts","sourceRoot":"","sources":["../../../../src/cache/distributed/DistributedCachePlugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,YAAY,EAEZ,iBAAiB,EACpB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD;;;GAGG;AACH,qBAAa,sBAAuB,YAAW,YAAY;IACvD,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,gBAAgB,CAAoB;gBAEhC,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB;IAKrE;;;OAGG;IACU,iBAAiB,CAC1B,YAAY,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC;IAMhB;;;OAGG;IACU,gBAAgB,CACzB,YAAY,EAAE,iBAAiB,GAChC,OAAO,CAAC,IAAI,CAAC;CAyBnB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interface for the cache that defines a getter and setter
|
|
3
|
-
* @public
|
|
4
|
-
*/
|
|
5
|
-
export interface ICacheClient {
|
|
6
|
-
/**
|
|
7
|
-
* Retrieve the value from the cache
|
|
8
|
-
*
|
|
9
|
-
* @param key - key of item in the cache
|
|
10
|
-
* @returns Promise<string>
|
|
11
|
-
*/
|
|
12
|
-
get(key: string): Promise<string>;
|
|
13
|
-
/**
|
|
14
|
-
* Save the required value using the provided key to cache
|
|
15
|
-
*
|
|
16
|
-
* @param key - key of item in the cache
|
|
17
|
-
* @param value - value of item to be saved in the cache
|
|
18
|
-
* @returns Promise<string>
|
|
19
|
-
*/
|
|
20
|
-
set(key: string, value: string): Promise<string>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=ICacheClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICacheClient.d.ts","sourceRoot":"","sources":["../../../../src/cache/distributed/ICacheClient.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAElC;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACpD"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { AccountEntity } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* Interface that defines getter methods to get keys used to identity data in the cache
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export interface IPartitionManager {
|
|
7
|
-
/**
|
|
8
|
-
* This function should return the correct key from which to read
|
|
9
|
-
* the specific user's information from cache.
|
|
10
|
-
*
|
|
11
|
-
* Example: Your application may be partitioning the user's cache
|
|
12
|
-
* information for each user using the homeAccountId and thus
|
|
13
|
-
* this function would return the homeAccountId for
|
|
14
|
-
* the user in question
|
|
15
|
-
*
|
|
16
|
-
* @returns Promise<string>
|
|
17
|
-
*/
|
|
18
|
-
getKey(): Promise<string>;
|
|
19
|
-
/**
|
|
20
|
-
* This function should return the correct key being used to save each
|
|
21
|
-
* user's cache information to cache - given an AccountEntity
|
|
22
|
-
*
|
|
23
|
-
* Example: Your application may be partitioning the user's cache
|
|
24
|
-
* information for each user using the homeAccountId thus
|
|
25
|
-
* this function would return the homeAccountId from
|
|
26
|
-
* the provided AccountEntity
|
|
27
|
-
*
|
|
28
|
-
* @param accountEntity - AccountEntity
|
|
29
|
-
* @returns Promise<string>
|
|
30
|
-
*/
|
|
31
|
-
extractKey(accountEntity: AccountEntity): Promise<string>;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=IPartitionManager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IPartitionManager.d.ts","sourceRoot":"","sources":["../../../../src/cache/distributed/IPartitionManager.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;;;;OAUG;IACH,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE1B;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7D"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache } from "@azure/msal-common/node";
|
|
2
|
-
import { JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedRefreshTokenEntity, SerializedAppMetadataEntity } from "./SerializerTypes.js";
|
|
3
|
-
/**
|
|
4
|
-
* This class deserializes cache entities read from the file into in-memory object types defined internally
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class Deserializer {
|
|
8
|
-
/**
|
|
9
|
-
* Parse the JSON blob in memory and deserialize the content
|
|
10
|
-
* @param cachedJson - JSON blob cache
|
|
11
|
-
*/
|
|
12
|
-
static deserializeJSONBlob(jsonFile: string): JsonCache;
|
|
13
|
-
/**
|
|
14
|
-
* Deserializes accounts to AccountEntity objects
|
|
15
|
-
* @param accounts - accounts of type SerializedAccountEntity
|
|
16
|
-
*/
|
|
17
|
-
static deserializeAccounts(accounts: Record<string, SerializedAccountEntity>): AccountCache;
|
|
18
|
-
/**
|
|
19
|
-
* Deserializes id tokens to IdTokenEntity objects
|
|
20
|
-
* @param idTokens - credentials of type SerializedIdTokenEntity
|
|
21
|
-
*/
|
|
22
|
-
static deserializeIdTokens(idTokens: Record<string, SerializedIdTokenEntity>): IdTokenCache;
|
|
23
|
-
/**
|
|
24
|
-
* Deserializes access tokens to AccessTokenEntity objects
|
|
25
|
-
* @param accessTokens - access tokens of type SerializedAccessTokenEntity
|
|
26
|
-
*/
|
|
27
|
-
static deserializeAccessTokens(accessTokens: Record<string, SerializedAccessTokenEntity>): AccessTokenCache;
|
|
28
|
-
/**
|
|
29
|
-
* Deserializes refresh tokens to RefreshTokenEntity objects
|
|
30
|
-
* @param refreshTokens - refresh tokens of type SerializedRefreshTokenEntity
|
|
31
|
-
*/
|
|
32
|
-
static deserializeRefreshTokens(refreshTokens: Record<string, SerializedRefreshTokenEntity>): RefreshTokenCache;
|
|
33
|
-
/**
|
|
34
|
-
* Deserializes appMetadata to AppMetaData objects
|
|
35
|
-
* @param appMetadata - app metadata of type SerializedAppMetadataEntity
|
|
36
|
-
*/
|
|
37
|
-
static deserializeAppMetadata(appMetadata: Record<string, SerializedAppMetadataEntity>): AppMetadataCache;
|
|
38
|
-
/**
|
|
39
|
-
* Deserialize an inMemory Cache
|
|
40
|
-
* @param jsonCache - JSON blob cache
|
|
41
|
-
*/
|
|
42
|
-
static deserializeAllCache(jsonCache: JsonCache): InMemoryCache;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=Deserializer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Deserializer.d.ts","sourceRoot":"","sources":["../../../../src/cache/serializer/Deserializer.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAOnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,SAAS,EACT,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC9B,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,qBAAa,YAAY;IACrB;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS;IAKvD;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,GAClD,YAAY;IAgCf;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,GAClD,YAAY;IAqBf;;;OAGG;IACH,MAAM,CAAC,uBAAuB,CAC1B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,GAC1D,gBAAgB;IAgCnB;;;OAGG;IACH,MAAM,CAAC,wBAAwB,CAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,GAC5D,iBAAiB;IAwBpB;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CACzB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,GACzD,gBAAgB;IAgBnB;;;OAGG;IACH,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,GAAG,aAAa;CAmBlE"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache } from "@azure/msal-common/node";
|
|
2
|
-
import { InMemoryCache, JsonCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedRefreshTokenEntity, SerializedAppMetadataEntity } from "./SerializerTypes.js";
|
|
3
|
-
/**
|
|
4
|
-
* This class serializes cache entities to be saved into in-memory object types defined internally
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class Serializer {
|
|
8
|
-
/**
|
|
9
|
-
* serialize the JSON blob
|
|
10
|
-
* @param data - JSON blob cache
|
|
11
|
-
*/
|
|
12
|
-
static serializeJSONBlob(data: JsonCache): string;
|
|
13
|
-
/**
|
|
14
|
-
* Serialize Accounts
|
|
15
|
-
* @param accCache - cache of accounts
|
|
16
|
-
*/
|
|
17
|
-
static serializeAccounts(accCache: AccountCache): Record<string, SerializedAccountEntity>;
|
|
18
|
-
/**
|
|
19
|
-
* Serialize IdTokens
|
|
20
|
-
* @param idTCache - cache of ID tokens
|
|
21
|
-
*/
|
|
22
|
-
static serializeIdTokens(idTCache: IdTokenCache): Record<string, SerializedIdTokenEntity>;
|
|
23
|
-
/**
|
|
24
|
-
* Serializes AccessTokens
|
|
25
|
-
* @param atCache - cache of access tokens
|
|
26
|
-
*/
|
|
27
|
-
static serializeAccessTokens(atCache: AccessTokenCache): Record<string, SerializedAccessTokenEntity>;
|
|
28
|
-
/**
|
|
29
|
-
* Serialize refreshTokens
|
|
30
|
-
* @param rtCache - cache of refresh tokens
|
|
31
|
-
*/
|
|
32
|
-
static serializeRefreshTokens(rtCache: RefreshTokenCache): Record<string, SerializedRefreshTokenEntity>;
|
|
33
|
-
/**
|
|
34
|
-
* Serialize amdtCache
|
|
35
|
-
* @param amdtCache - cache of app metadata
|
|
36
|
-
*/
|
|
37
|
-
static serializeAppMetadata(amdtCache: AppMetadataCache): Record<string, SerializedAppMetadataEntity>;
|
|
38
|
-
/**
|
|
39
|
-
* Serialize the cache
|
|
40
|
-
* @param inMemCache - itemised cache read from the JSON
|
|
41
|
-
*/
|
|
42
|
-
static serializeAllCache(inMemCache: InMemoryCache): JsonCache;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=Serializer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Serializer.d.ts","sourceRoot":"","sources":["../../../../src/cache/serializer/Serializer.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,aAAa,EACb,SAAS,EACT,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC9B,MAAM,sBAAsB,CAAC;AAE9B;;;GAGG;AACH,qBAAa,UAAU;IACnB;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;IAIjD;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CACpB,QAAQ,EAAE,YAAY,GACvB,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC;IA0B1C;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CACpB,QAAQ,EAAE,YAAY,GACvB,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC;IAiB1C;;;OAGG;IACH,MAAM,CAAC,qBAAqB,CACxB,OAAO,EAAE,gBAAgB,GAC1B,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC;IA0B9C;;;OAGG;IACH,MAAM,CAAC,sBAAsB,CACzB,OAAO,EAAE,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC;IAmB/C;;;OAGG;IACH,MAAM,CAAC,oBAAoB,CACvB,SAAS,EAAE,gBAAgB,GAC5B,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC;IAc9C;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,UAAU,EAAE,aAAa,GAAG,SAAS;CASjE"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { AccountCache, IdTokenCache, AccessTokenCache, RefreshTokenCache, AppMetadataCache, ValidCacheType } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* Key value store for in-memory cache
|
|
4
|
-
* @public
|
|
5
|
-
*/
|
|
6
|
-
export type CacheKVStore = Record<string, ValidCacheType>;
|
|
7
|
-
/**
|
|
8
|
-
* Cache format read from the cache blob provided to the configuration during app instantiation
|
|
9
|
-
* @public
|
|
10
|
-
*/
|
|
11
|
-
export type JsonCache = {
|
|
12
|
-
Account: Record<string, SerializedAccountEntity>;
|
|
13
|
-
IdToken: Record<string, SerializedIdTokenEntity>;
|
|
14
|
-
AccessToken: Record<string, SerializedAccessTokenEntity>;
|
|
15
|
-
RefreshToken: Record<string, SerializedRefreshTokenEntity>;
|
|
16
|
-
AppMetadata: Record<string, SerializedAppMetadataEntity>;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Intermittent type to handle in-memory data objects with defined types
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
|
-
export type InMemoryCache = {
|
|
23
|
-
accounts: AccountCache;
|
|
24
|
-
idTokens: IdTokenCache;
|
|
25
|
-
accessTokens: AccessTokenCache;
|
|
26
|
-
refreshTokens: RefreshTokenCache;
|
|
27
|
-
appMetadata: AppMetadataCache;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Account type
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
export type SerializedAccountEntity = {
|
|
34
|
-
home_account_id: string;
|
|
35
|
-
environment: string;
|
|
36
|
-
realm: string;
|
|
37
|
-
local_account_id: string;
|
|
38
|
-
username: string;
|
|
39
|
-
authority_type: string;
|
|
40
|
-
name?: string;
|
|
41
|
-
client_info?: string;
|
|
42
|
-
last_modification_time?: string;
|
|
43
|
-
last_modification_app?: string;
|
|
44
|
-
tenantProfiles?: string[];
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Idtoken credential type
|
|
48
|
-
* @public
|
|
49
|
-
*/
|
|
50
|
-
export type SerializedIdTokenEntity = {
|
|
51
|
-
home_account_id: string;
|
|
52
|
-
environment: string;
|
|
53
|
-
credential_type: string;
|
|
54
|
-
client_id: string;
|
|
55
|
-
secret: string;
|
|
56
|
-
realm: string;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Access token credential type
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
62
|
-
export type SerializedAccessTokenEntity = {
|
|
63
|
-
home_account_id: string;
|
|
64
|
-
environment: string;
|
|
65
|
-
credential_type: string;
|
|
66
|
-
client_id: string;
|
|
67
|
-
secret: string;
|
|
68
|
-
realm: string;
|
|
69
|
-
target: string;
|
|
70
|
-
cached_at: string;
|
|
71
|
-
expires_on: string;
|
|
72
|
-
extended_expires_on?: string;
|
|
73
|
-
refresh_on?: string;
|
|
74
|
-
key_id?: string;
|
|
75
|
-
token_type?: string;
|
|
76
|
-
userAssertionHash?: string;
|
|
77
|
-
resource?: string;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Refresh token credential type
|
|
81
|
-
* @public
|
|
82
|
-
*/
|
|
83
|
-
export type SerializedRefreshTokenEntity = {
|
|
84
|
-
home_account_id: string;
|
|
85
|
-
environment: string;
|
|
86
|
-
credential_type: string;
|
|
87
|
-
client_id: string;
|
|
88
|
-
secret: string;
|
|
89
|
-
family_id?: string;
|
|
90
|
-
target?: string;
|
|
91
|
-
realm?: string;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* AppMetadata type
|
|
95
|
-
* @public
|
|
96
|
-
*/
|
|
97
|
-
export type SerializedAppMetadataEntity = {
|
|
98
|
-
client_id: string;
|
|
99
|
-
environment: string;
|
|
100
|
-
family_id?: string;
|
|
101
|
-
};
|
|
102
|
-
//# sourceMappingURL=SerializerTypes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SerializerTypes.d.ts","sourceRoot":"","sources":["../../../../src/cache/serializer/SerializerTypes.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACjB,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IACjD,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IACjD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;IACzD,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;IAC3D,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;CAC5D,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC;IACvB,YAAY,EAAE,gBAAgB,CAAC;IAC/B,aAAa,EAAE,iBAAiB,CAAC;IACjC,WAAW,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,E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AAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ClientConfiguration, CommonClientConfiguration, INetworkModule, NetworkRequestOptions, Logger, ICrypto, CacheManager, ServerTelemetryManager, Authority, CcsCredential, RequestThumbprint, ServerAuthorizationTokenResponse, NetworkResponse, BaseAuthRequest, StubPerformanceClient } from "@azure/msal-common/node";
|
|
2
|
-
/**
|
|
3
|
-
* Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class BaseClient {
|
|
7
|
-
logger: Logger;
|
|
8
|
-
protected config: CommonClientConfiguration;
|
|
9
|
-
protected cryptoUtils: ICrypto;
|
|
10
|
-
protected cacheManager: CacheManager;
|
|
11
|
-
protected networkClient: INetworkModule;
|
|
12
|
-
protected serverTelemetryManager: ServerTelemetryManager | null;
|
|
13
|
-
authority: Authority;
|
|
14
|
-
protected performanceClient: StubPerformanceClient;
|
|
15
|
-
protected constructor(configuration: ClientConfiguration);
|
|
16
|
-
/**
|
|
17
|
-
* Creates default headers for requests to token endpoint
|
|
18
|
-
*/
|
|
19
|
-
protected createTokenRequestHeaders(ccsCred?: CcsCredential): Record<string, string>;
|
|
20
|
-
/**
|
|
21
|
-
* Http post to token endpoint
|
|
22
|
-
* @param tokenEndpoint
|
|
23
|
-
* @param queryString
|
|
24
|
-
* @param headers
|
|
25
|
-
* @param thumbprint
|
|
26
|
-
*/
|
|
27
|
-
protected executePostToTokenEndpoint(tokenEndpoint: string, queryString: string, headers: Record<string, string>, thumbprint: RequestThumbprint, correlationId: string): Promise<NetworkResponse<ServerAuthorizationTokenResponse>>;
|
|
28
|
-
/**
|
|
29
|
-
* Wraps sendPostRequestAsync with necessary preflight and postflight logic
|
|
30
|
-
* @param thumbprint - Request thumbprint for throttling
|
|
31
|
-
* @param tokenEndpoint - Endpoint to make the POST to
|
|
32
|
-
* @param options - Body and Headers to include on the POST request
|
|
33
|
-
* @param correlationId - CorrelationId for telemetry
|
|
34
|
-
*/
|
|
35
|
-
sendPostRequest<T extends ServerAuthorizationTokenResponse>(thumbprint: RequestThumbprint, tokenEndpoint: string, options: NetworkRequestOptions, correlationId: string): Promise<NetworkResponse<T>>;
|
|
36
|
-
/**
|
|
37
|
-
* Creates query string for the /token request
|
|
38
|
-
* @param request
|
|
39
|
-
*/
|
|
40
|
-
createTokenQueryParameters(request: BaseAuthRequest): string;
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=BaseClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseClient.d.ts","sourceRoot":"","sources":["../../../src/client/BaseClient.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,mBAAmB,EAEnB,yBAAyB,EACzB,cAAc,EACd,qBAAqB,EACrB,MAAM,EACN,OAAO,EACP,YAAY,EACZ,sBAAsB,EACtB,SAAS,EACT,aAAa,EAEb,iBAAiB,EACjB,gCAAgC,EAChC,eAAe,EACf,eAAe,EACf,qBAAqB,EACxB,MAAM,yBAAyB,CAAC;AAGjC;;;GAGG;AACH,8BAAsB,UAAU;IAErB,MAAM,EAAE,MAAM,CAAC;IAGtB,SAAS,CAAC,MAAM,EAAE,yBAAyB,CAAC;IAG5C,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC;IAG/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,aAAa,EAAE,cAAc,CAAC;IAGxC,SAAS,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAGzD,SAAS,EAAE,SAAS,CAAC;IAE5B,SAAS,CAAC,iBAAiB,EAAE,qBAAqB,CAAC;IAEnD,SAAS,aAAa,aAAa,EAAE,mBAAmB;IAyBxD;;OAEG;IACH,SAAS,CAAC,yBAAyB,CAC/B,OAAO,CAAC,EAAE,aAAa,GACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAQzB;;;;;;OAMG;cACa,0BAA0B,CACtC,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,eAAe,CAAC,gCAAgC,CAAC,CAAC;IAe7D;;;;;;OAMG;IACG,eAAe,CAAC,CAAC,SAAS,gCAAgC,EAC5D,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,qBAAqB,EAC9B,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAa9B;;;OAGG;IACH,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM;CAQ/D"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { ClientConfiguration, AuthenticationResult, Authority, BaseAuthRequest, Logger, ServerTelemetryManager, AzureRegionConfiguration, AzureCloudOptions, AuthorizationCodePayload, ClientAssertionCallback } from "@azure/msal-common/node";
|
|
2
|
-
import { Configuration, NodeConfiguration } from "../config/Configuration.js";
|
|
3
|
-
import { CryptoProvider } from "../crypto/CryptoProvider.js";
|
|
4
|
-
import { NodeStorage } from "../cache/NodeStorage.js";
|
|
5
|
-
import { TokenCache } from "../cache/TokenCache.js";
|
|
6
|
-
import { ClientAssertion } from "./ClientAssertion.js";
|
|
7
|
-
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
|
|
8
|
-
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
9
|
-
import { RefreshTokenRequest } from "../request/RefreshTokenRequest.js";
|
|
10
|
-
import { SilentFlowRequest } from "../request/SilentFlowRequest.js";
|
|
11
|
-
import { UsernamePasswordRequest } from "../request/UsernamePasswordRequest.js";
|
|
12
|
-
/**
|
|
13
|
-
* Base abstract class for all ClientApplications - public and confidential
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
export declare abstract class ClientApplication {
|
|
17
|
-
protected readonly cryptoProvider: CryptoProvider;
|
|
18
|
-
private tokenCache;
|
|
19
|
-
/**
|
|
20
|
-
* Platform storage object
|
|
21
|
-
*/
|
|
22
|
-
protected storage: NodeStorage;
|
|
23
|
-
/**
|
|
24
|
-
* Logger object to log the application flow
|
|
25
|
-
*/
|
|
26
|
-
protected logger: Logger;
|
|
27
|
-
/**
|
|
28
|
-
* Platform configuration initialized by the application
|
|
29
|
-
*/
|
|
30
|
-
protected config: NodeConfiguration;
|
|
31
|
-
/**
|
|
32
|
-
* Client assertion passed by the user for confidential client flows
|
|
33
|
-
*/
|
|
34
|
-
protected clientAssertion: ClientAssertion;
|
|
35
|
-
protected developerProvidedClientAssertion: string | ClientAssertionCallback;
|
|
36
|
-
/**
|
|
37
|
-
* Client secret passed by the user for confidential client flows
|
|
38
|
-
*/
|
|
39
|
-
protected clientSecret: string;
|
|
40
|
-
/**
|
|
41
|
-
* Constructor for the ClientApplication
|
|
42
|
-
*/
|
|
43
|
-
protected constructor(configuration: Configuration);
|
|
44
|
-
/**
|
|
45
|
-
* Creates the URL of the authorization request, letting the user input credentials and consent to the
|
|
46
|
-
* application. The URL targets the /authorize endpoint of the authority configured in the
|
|
47
|
-
* application object.
|
|
48
|
-
*
|
|
49
|
-
* Once the user inputs their credentials and consents, the authority will send a response to the redirect URI
|
|
50
|
-
* sent in the request and should contain an authorization code, which can then be used to acquire tokens via
|
|
51
|
-
* `acquireTokenByCode(AuthorizationCodeRequest)`.
|
|
52
|
-
*/
|
|
53
|
-
getAuthCodeUrl(request: AuthorizationUrlRequest): Promise<string>;
|
|
54
|
-
/**
|
|
55
|
-
* Acquires a token by exchanging the Authorization Code received from the first step of OAuth2.0
|
|
56
|
-
* Authorization Code flow.
|
|
57
|
-
*
|
|
58
|
-
* `getAuthCodeUrl(AuthorizationCodeUrlRequest)` can be used to create the URL for the first step of OAuth2.0
|
|
59
|
-
* Authorization Code flow. Ensure that values for redirectUri and scopes in AuthorizationCodeUrlRequest and
|
|
60
|
-
* AuthorizationCodeRequest are the same.
|
|
61
|
-
*/
|
|
62
|
-
acquireTokenByCode(request: AuthorizationCodeRequest, authCodePayLoad?: AuthorizationCodePayload): Promise<AuthenticationResult>;
|
|
63
|
-
/**
|
|
64
|
-
* Acquires a token by exchanging the refresh token provided for a new set of tokens.
|
|
65
|
-
*
|
|
66
|
-
* This API is provided only for scenarios where you would like to migrate from ADAL to MSAL. Otherwise, it is
|
|
67
|
-
* recommended that you use `acquireTokenSilent()` for silent scenarios. When using `acquireTokenSilent()`, MSAL will
|
|
68
|
-
* handle the caching and refreshing of tokens automatically.
|
|
69
|
-
*/
|
|
70
|
-
acquireTokenByRefreshToken(request: RefreshTokenRequest): Promise<AuthenticationResult | null>;
|
|
71
|
-
/**
|
|
72
|
-
* Acquires a token silently when a user specifies the account the token is requested for.
|
|
73
|
-
*
|
|
74
|
-
* This API expects the user to provide an account object and looks into the cache to retrieve the token if present.
|
|
75
|
-
* There is also an optional "forceRefresh" boolean the user can send to bypass the cache for access_token and id_token.
|
|
76
|
-
* In case the refresh_token is expired or not found, an error is thrown
|
|
77
|
-
* and the guidance is for the user to call any interactive token acquisition API (eg: `acquireTokenByCode()`).
|
|
78
|
-
*/
|
|
79
|
-
acquireTokenSilent(request: SilentFlowRequest): Promise<AuthenticationResult>;
|
|
80
|
-
private acquireCachedTokenSilent;
|
|
81
|
-
/**
|
|
82
|
-
* Acquires tokens with password grant by exchanging client applications username and password for credentials
|
|
83
|
-
*
|
|
84
|
-
* The latest OAuth 2.0 Security Best Current Practice disallows the password grant entirely.
|
|
85
|
-
* More details on this recommendation at https://tools.ietf.org/html/draft-ietf-oauth-security-topics-13#section-3.4
|
|
86
|
-
* Microsoft's documentation and recommendations are at:
|
|
87
|
-
* https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-authentication-flows#usernamepassword
|
|
88
|
-
*
|
|
89
|
-
* @param request - UsenamePasswordRequest
|
|
90
|
-
* @deprecated - Use a more secure flow instead
|
|
91
|
-
*/
|
|
92
|
-
acquireTokenByUsernamePassword(request: UsernamePasswordRequest): Promise<AuthenticationResult | null>;
|
|
93
|
-
/**
|
|
94
|
-
* Gets the token cache for the application.
|
|
95
|
-
*/
|
|
96
|
-
getTokenCache(): TokenCache;
|
|
97
|
-
/**
|
|
98
|
-
* Validates OIDC state by comparing the user cached state with the state received from the server.
|
|
99
|
-
*
|
|
100
|
-
* This API is provided for scenarios where you would use OAuth2.0 state parameter to mitigate against
|
|
101
|
-
* CSRF attacks.
|
|
102
|
-
* For more information about state, visit https://datatracker.ietf.org/doc/html/rfc6819#section-3.6.
|
|
103
|
-
* @param state - Unique GUID generated by the user that is cached by the user and sent to the server during the first leg of the flow
|
|
104
|
-
* @param cachedState - This string is sent back by the server with the authorization code
|
|
105
|
-
*/
|
|
106
|
-
protected validateState(state: string, cachedState: string): void;
|
|
107
|
-
/**
|
|
108
|
-
* Returns the logger instance
|
|
109
|
-
*/
|
|
110
|
-
getLogger(): Logger;
|
|
111
|
-
/**
|
|
112
|
-
* Replaces the default logger set in configurations with new Logger with new configurations
|
|
113
|
-
* @param logger - Logger instance
|
|
114
|
-
*/
|
|
115
|
-
setLogger(logger: Logger): void;
|
|
116
|
-
/**
|
|
117
|
-
* Builds the common configuration to be passed to the common component based on the platform configurarion
|
|
118
|
-
* @param authority - user passed authority in configuration
|
|
119
|
-
* @param serverTelemetryManager - initializes servertelemetry if passed
|
|
120
|
-
*/
|
|
121
|
-
protected buildOauthClientConfiguration(discoveredAuthority: Authority, requestCorrelationId: string, redirectUri: string, serverTelemetryManager?: ServerTelemetryManager): Promise<ClientConfiguration>;
|
|
122
|
-
private getClientAssertion;
|
|
123
|
-
/**
|
|
124
|
-
* Generates a request with the default scopes & generates a correlationId.
|
|
125
|
-
* @param authRequest - BaseAuthRequest for initialization
|
|
126
|
-
*/
|
|
127
|
-
protected initializeBaseRequest(authRequest: Partial<BaseAuthRequest>): Promise<BaseAuthRequest>;
|
|
128
|
-
/**
|
|
129
|
-
* Initializes the server telemetry payload
|
|
130
|
-
* @param apiId - Id for a specific request
|
|
131
|
-
* @param correlationId - GUID
|
|
132
|
-
* @param forceRefresh - boolean to indicate network call
|
|
133
|
-
*/
|
|
134
|
-
protected initializeServerTelemetryManager(apiId: number, correlationId: string, forceRefresh?: boolean): ServerTelemetryManager;
|
|
135
|
-
/**
|
|
136
|
-
* Create authority instance. If authority not passed in request, default to authority set on the application
|
|
137
|
-
* object. If no authority set in application object, then default to common authority.
|
|
138
|
-
* @param authorityString - authority from user configuration
|
|
139
|
-
*/
|
|
140
|
-
protected createAuthority(authorityString: string, requestCorrelationId: string, azureRegionConfiguration?: AzureRegionConfiguration, azureCloudOptions?: AzureCloudOptions): Promise<Authority>;
|
|
141
|
-
/**
|
|
142
|
-
* Clear the cache except for authority metadata.
|
|
143
|
-
*/
|
|
144
|
-
clearCache(): void;
|
|
145
|
-
}
|
|
146
|
-
//# sourceMappingURL=ClientApplication.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClientApplication.d.ts","sourceRoot":"","sources":["../../../src/client/ClientApplication.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,mBAAmB,EAEnB,oBAAoB,EACpB,SAAS,EAET,eAAe,EAEf,MAAM,EACN,sBAAsB,EAOtB,wBAAwB,EAExB,iBAAiB,EACjB,wBAAwB,EAMxB,uBAAuB,EAI1B,MAAM,yBAAyB,CAAC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