@azure/msal-node 3.8.4 → 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/README.md +2 -1
- package/dist/cache/CacheHelpers.d.ts.map +1 -1
- package/dist/cache/CacheHelpers.mjs +4 -5
- package/dist/cache/CacheHelpers.mjs.map +1 -1
- package/dist/cache/NodeStorage.d.ts.map +1 -1
- package/dist/cache/NodeStorage.mjs +17 -18
- package/dist/cache/NodeStorage.mjs.map +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.mjs +15 -15
- package/dist/cache/TokenCache.mjs.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
- package/dist/cache/distributed/DistributedCachePlugin.mjs +3 -3
- package/dist/cache/distributed/DistributedCachePlugin.mjs.map +1 -1
- package/dist/cache/serializer/Deserializer.d.ts.map +1 -1
- package/dist/cache/serializer/Deserializer.mjs +3 -5
- package/dist/cache/serializer/Deserializer.mjs.map +1 -1
- package/dist/cache/serializer/Serializer.d.ts.map +1 -1
- package/dist/cache/serializer/Serializer.mjs +1 -3
- package/dist/cache/serializer/Serializer.mjs.map +1 -1
- package/dist/cache/serializer/SerializerTypes.d.ts +0 -2
- package/dist/cache/serializer/SerializerTypes.d.ts.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.d.ts.map +1 -1
- package/dist/client/ClientApplication.mjs +33 -43
- package/dist/client/ClientApplication.mjs.map +1 -1
- package/dist/client/ClientAssertion.d.ts.map +1 -1
- package/dist/client/ClientAssertion.mjs +6 -5
- package/dist/client/ClientAssertion.mjs.map +1 -1
- package/dist/client/ClientCredentialClient.d.ts +4 -2
- package/dist/client/ClientCredentialClient.d.ts.map +1 -1
- package/dist/client/ClientCredentialClient.mjs +23 -21
- package/dist/client/ClientCredentialClient.mjs.map +1 -1
- package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +10 -9
- package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
- package/dist/client/DeviceCodeClient.d.ts +3 -1
- package/dist/client/DeviceCodeClient.d.ts.map +1 -1
- package/dist/client/DeviceCodeClient.mjs +21 -19
- package/dist/client/DeviceCodeClient.mjs.map +1 -1
- package/dist/client/ManagedIdentityApplication.d.ts.map +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +7 -6
- package/dist/client/ManagedIdentityApplication.mjs.map +1 -1
- package/dist/client/ManagedIdentityClient.mjs +1 -1
- package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +3 -3
- package/dist/client/ManagedIdentitySources/AppService.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +8 -8
- package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +12 -11
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +3 -3
- package/dist/client/ManagedIdentitySources/CloudShell.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +3 -3
- package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs +3 -3
- package/dist/client/ManagedIdentitySources/MachineLearning.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +4 -4
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs.map +1 -1
- package/dist/client/OnBehalfOfClient.d.ts +3 -1
- package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
- package/dist/client/OnBehalfOfClient.mjs +19 -18
- package/dist/client/OnBehalfOfClient.mjs.map +1 -1
- package/dist/client/PublicClientApplication.d.ts.map +1 -1
- package/dist/client/PublicClientApplication.mjs +15 -14
- package/dist/client/PublicClientApplication.mjs.map +1 -1
- package/dist/client/UsernamePasswordClient.d.ts +3 -1
- package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
- package/dist/client/UsernamePasswordClient.mjs +8 -7
- package/dist/client/UsernamePasswordClient.mjs.map +1 -1
- package/dist/config/Configuration.d.ts +2 -19
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +18 -25
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/config/ManagedIdentityId.mjs +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +3 -3
- package/dist/config/ManagedIdentityRequestParameters.mjs.map +1 -1
- package/dist/crypto/CryptoProvider.d.ts.map +1 -1
- package/dist/crypto/CryptoProvider.mjs +5 -3
- package/dist/crypto/CryptoProvider.mjs.map +1 -1
- package/dist/crypto/GuidGenerator.mjs +1 -1
- package/dist/crypto/HashUtils.mjs +1 -1
- package/dist/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/crypto/PkceGenerator.mjs +6 -4
- package/dist/crypto/PkceGenerator.mjs.map +1 -1
- package/dist/error/ClientAuthErrorCodes.d.ts +8 -0
- package/dist/error/ClientAuthErrorCodes.d.ts.map +1 -0
- package/dist/error/ClientAuthErrorCodes.mjs +16 -0
- package/dist/error/ClientAuthErrorCodes.mjs.map +1 -0
- package/dist/error/ManagedIdentityError.mjs +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
- package/dist/error/NodeAuthError.mjs +1 -1
- package/dist/index.d.ts +15 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +20 -8
- package/dist/index.mjs.map +1 -1
- package/dist/internals.mjs +1 -1
- package/dist/network/HttpClient.d.ts +53 -40
- package/dist/network/HttpClient.d.ts.map +1 -1
- package/dist/network/HttpClient.mjs +149 -315
- package/dist/network/HttpClient.mjs.map +1 -1
- package/dist/network/HttpClientWithRetries.mjs +3 -3
- package/dist/network/HttpClientWithRetries.mjs.map +1 -1
- package/dist/network/LoopbackClient.d.ts.map +1 -1
- package/dist/network/LoopbackClient.mjs +3 -3
- package/dist/network/LoopbackClient.mjs.map +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.mjs +2 -2
- package/dist/protocol/Authorize.d.ts.map +1 -1
- package/dist/protocol/Authorize.mjs +6 -6
- package/dist/protocol/Authorize.mjs.map +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts +3 -2
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts +3 -3
- package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/ClientCredentialRequest.d.ts +4 -4
- package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/CommonClientCredentialRequest.d.ts +17 -0
- package/dist/request/CommonClientCredentialRequest.d.ts.map +1 -0
- package/dist/request/CommonDeviceCodeRequest.d.ts +21 -0
- package/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -0
- package/dist/request/CommonOnBehalfOfRequest.d.ts +13 -0
- package/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
- package/dist/request/CommonUsernamePasswordRequest.d.ts +19 -0
- package/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
- package/dist/request/DeviceCodeRequest.d.ts +3 -2
- package/dist/request/DeviceCodeRequest.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/ManagedIdentityRequest.d.ts +1 -1
- package/dist/request/ManagedIdentityRequest.d.ts.map +1 -1
- package/dist/request/OnBehalfOfRequest.d.ts +2 -3
- package/dist/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/dist/request/RefreshTokenRequest.d.ts +3 -2
- package/dist/request/RefreshTokenRequest.d.ts.map +1 -1
- package/dist/request/SilentFlowRequest.d.ts +3 -2
- package/dist/request/SilentFlowRequest.d.ts.map +1 -1
- package/dist/request/UsernamePasswordRequest.d.ts +4 -3
- package/dist/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/dist/response/ManagedIdentityTokenResponse.d.ts +2 -2
- package/dist/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.d.ts +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +1 -1
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +9 -9
- package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs.map +1 -1
- package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
- package/dist/retry/IHttpRetryPolicy.d.ts +1 -1
- package/dist/retry/IHttpRetryPolicy.d.ts.map +1 -1
- package/dist/retry/ImdsRetryPolicy.d.ts +1 -1
- package/dist/retry/ImdsRetryPolicy.d.ts.map +1 -1
- package/dist/retry/ImdsRetryPolicy.mjs +11 -11
- package/dist/retry/ImdsRetryPolicy.mjs.map +1 -1
- package/dist/retry/LinearRetryStrategy.mjs +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.d.ts.map +1 -1
- package/dist/utils/EncodingUtils.mjs +5 -5
- package/dist/utils/EncodingUtils.mjs.map +1 -1
- package/dist/utils/TimeUtils.mjs +1 -1
- package/lib/msal-node.cjs +5378 -6289
- package/lib/msal-node.cjs.map +1 -1
- package/lib/types/cache/CacheHelpers.d.ts.map +1 -1
- package/lib/types/cache/NodeStorage.d.ts.map +1 -1
- package/lib/types/cache/TokenCache.d.ts.map +1 -1
- package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +1 -1
- package/lib/types/cache/serializer/Deserializer.d.ts.map +1 -1
- package/lib/types/cache/serializer/Serializer.d.ts.map +1 -1
- package/lib/types/cache/serializer/SerializerTypes.d.ts +0 -2
- package/lib/types/cache/serializer/SerializerTypes.d.ts.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/ClientApplication.d.ts.map +1 -1
- package/lib/types/client/ClientAssertion.d.ts.map +1 -1
- package/lib/types/client/ClientCredentialClient.d.ts +4 -2
- package/lib/types/client/ClientCredentialClient.d.ts.map +1 -1
- package/lib/types/client/ConfidentialClientApplication.d.ts.map +1 -1
- package/lib/types/client/DeviceCodeClient.d.ts +3 -1
- package/lib/types/client/DeviceCodeClient.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentityApplication.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +1 -1
- package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
- package/lib/types/client/OnBehalfOfClient.d.ts +3 -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 +3 -1
- package/lib/types/client/UsernamePasswordClient.d.ts.map +1 -1
- package/lib/types/config/Configuration.d.ts +2 -19
- package/lib/types/config/Configuration.d.ts.map +1 -1
- package/lib/types/crypto/CryptoProvider.d.ts.map +1 -1
- package/lib/types/crypto/PkceGenerator.d.ts.map +1 -1
- package/lib/types/error/ClientAuthErrorCodes.d.ts +8 -0
- package/lib/types/error/ClientAuthErrorCodes.d.ts.map +1 -0
- package/lib/types/index.d.ts +15 -11
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/network/HttpClient.d.ts +53 -40
- package/lib/types/network/HttpClient.d.ts.map +1 -1
- package/lib/types/network/LoopbackClient.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/protocol/Authorize.d.ts.map +1 -1
- package/lib/types/request/AuthorizationCodeRequest.d.ts +3 -2
- package/lib/types/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/lib/types/request/AuthorizationUrlRequest.d.ts +3 -3
- package/lib/types/request/AuthorizationUrlRequest.d.ts.map +1 -1
- package/lib/types/request/ClientCredentialRequest.d.ts +4 -4
- package/lib/types/request/ClientCredentialRequest.d.ts.map +1 -1
- package/lib/types/request/CommonClientCredentialRequest.d.ts +17 -0
- package/lib/types/request/CommonClientCredentialRequest.d.ts.map +1 -0
- package/lib/types/request/CommonDeviceCodeRequest.d.ts +21 -0
- package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +1 -0
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts +13 -0
- package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts +19 -0
- package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
- package/lib/types/request/DeviceCodeRequest.d.ts +3 -2
- package/lib/types/request/DeviceCodeRequest.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/ManagedIdentityRequest.d.ts +1 -1
- package/lib/types/request/ManagedIdentityRequest.d.ts.map +1 -1
- package/lib/types/request/OnBehalfOfRequest.d.ts +2 -3
- package/lib/types/request/OnBehalfOfRequest.d.ts.map +1 -1
- package/lib/types/request/RefreshTokenRequest.d.ts +3 -2
- package/lib/types/request/RefreshTokenRequest.d.ts.map +1 -1
- package/lib/types/request/SilentFlowRequest.d.ts +3 -2
- package/lib/types/request/SilentFlowRequest.d.ts.map +1 -1
- package/lib/types/request/UsernamePasswordRequest.d.ts +4 -3
- package/lib/types/request/UsernamePasswordRequest.d.ts.map +1 -1
- package/lib/types/response/ManagedIdentityTokenResponse.d.ts +2 -2
- package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +1 -1
- package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +1 -1
- package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +1 -1
- package/lib/types/retry/IHttpRetryPolicy.d.ts +1 -1
- package/lib/types/retry/IHttpRetryPolicy.d.ts.map +1 -1
- package/lib/types/retry/ImdsRetryPolicy.d.ts +1 -1
- package/lib/types/retry/ImdsRetryPolicy.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/lib/types/utils/EncodingUtils.d.ts.map +1 -1
- package/package.json +4 -6
- package/src/cache/CacheHelpers.ts +3 -5
- package/src/cache/NodeStorage.ts +19 -16
- package/src/cache/TokenCache.ts +18 -14
- package/src/cache/distributed/DistributedCachePlugin.ts +2 -1
- package/src/cache/serializer/Deserializer.ts +7 -9
- package/src/cache/serializer/Serializer.ts +0 -2
- package/src/cache/serializer/SerializerTypes.ts +0 -2
- package/src/client/BaseClient.ts +158 -0
- package/src/client/ClientApplication.ts +50 -57
- package/src/client/ClientAssertion.ts +5 -6
- package/src/client/ClientCredentialClient.ts +32 -25
- package/src/client/ConfidentialClientApplication.ts +13 -13
- package/src/client/DeviceCodeClient.ts +33 -21
- package/src/client/ManagedIdentityApplication.ts +10 -7
- package/src/client/ManagedIdentitySources/AppService.ts +4 -2
- package/src/client/ManagedIdentitySources/AzureArc.ts +14 -8
- package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +18 -9
- package/src/client/ManagedIdentitySources/CloudShell.ts +4 -2
- package/src/client/ManagedIdentitySources/Imds.ts +4 -2
- package/src/client/ManagedIdentitySources/MachineLearning.ts +4 -2
- package/src/client/ManagedIdentitySources/ServiceFabric.ts +6 -3
- package/src/client/OnBehalfOfClient.ts +27 -21
- package/src/client/PublicClientApplication.ts +16 -16
- package/src/client/UsernamePasswordClient.ts +14 -8
- package/src/config/Configuration.ts +19 -48
- package/src/config/ManagedIdentityRequestParameters.ts +2 -2
- package/src/crypto/CryptoProvider.ts +5 -3
- package/src/crypto/PkceGenerator.ts +6 -4
- package/src/error/ClientAuthErrorCodes.ts +12 -0
- package/src/index.ts +5 -19
- package/src/network/HttpClient.ts +168 -457
- package/src/network/HttpClientWithRetries.ts +2 -2
- package/src/network/LoopbackClient.ts +2 -3
- package/src/packageMetadata.ts +1 -1
- package/src/protocol/Authorize.ts +8 -10
- package/src/request/AuthorizationCodeRequest.ts +2 -2
- package/src/request/AuthorizationUrlRequest.ts +2 -3
- package/src/request/ClientCredentialRequest.ts +3 -7
- package/src/request/CommonClientCredentialRequest.ts +29 -0
- package/src/request/CommonDeviceCodeRequest.ts +30 -0
- package/src/request/CommonOnBehalfOfRequest.ts +21 -0
- package/src/request/CommonUsernamePasswordRequest.ts +24 -0
- package/src/request/DeviceCodeRequest.ts +2 -5
- package/src/request/InteractiveRequest.ts +1 -4
- package/src/request/ManagedIdentityRequest.ts +1 -1
- package/src/request/OnBehalfOfRequest.ts +1 -3
- package/src/request/RefreshTokenRequest.ts +2 -2
- package/src/request/SilentFlowRequest.ts +3 -5
- package/src/request/UsernamePasswordRequest.ts +3 -3
- package/src/response/ManagedIdentityTokenResponse.ts +2 -2
- package/src/retry/DefaultManagedIdentityRetryPolicy.ts +9 -8
- package/src/retry/IHttpRetryPolicy.ts +1 -1
- package/src/retry/ImdsRetryPolicy.ts +11 -10
- package/src/utils/Constants.ts +2 -11
- package/src/utils/EncodingUtils.ts +8 -4
- package/dist/utils/NetworkUtils.mjs +0 -43
- package/dist/utils/NetworkUtils.mjs.map +0 -1
|
@@ -10,11 +10,7 @@ import {
|
|
|
10
10
|
} from "../utils/Constants.js";
|
|
11
11
|
import {
|
|
12
12
|
AuthenticationResult,
|
|
13
|
-
CommonDeviceCodeRequest,
|
|
14
13
|
AuthError,
|
|
15
|
-
ResponseMode,
|
|
16
|
-
OIDC_DEFAULT_SCOPES,
|
|
17
|
-
CodeChallengeMethodValues,
|
|
18
14
|
Constants as CommonConstants,
|
|
19
15
|
ServerError,
|
|
20
16
|
NativeRequest,
|
|
@@ -29,6 +25,7 @@ import { Configuration } from "../config/Configuration.js";
|
|
|
29
25
|
import { ClientApplication } from "./ClientApplication.js";
|
|
30
26
|
import { IPublicClientApplication } from "./IPublicClientApplication.js";
|
|
31
27
|
import { DeviceCodeRequest } from "../request/DeviceCodeRequest.js";
|
|
28
|
+
import { CommonDeviceCodeRequest } from "../request/CommonDeviceCodeRequest.js";
|
|
32
29
|
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
|
|
33
30
|
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
|
|
34
31
|
import { InteractiveRequest } from "../request/InteractiveRequest.js";
|
|
@@ -78,7 +75,8 @@ export class PublicClientApplication
|
|
|
78
75
|
);
|
|
79
76
|
} else {
|
|
80
77
|
this.logger.warning(
|
|
81
|
-
"NativeBroker implementation was provided but the broker is unavailable."
|
|
78
|
+
"NativeBroker implementation was provided but the broker is unavailable.",
|
|
79
|
+
""
|
|
82
80
|
);
|
|
83
81
|
}
|
|
84
82
|
}
|
|
@@ -102,7 +100,7 @@ export class PublicClientApplication
|
|
|
102
100
|
): Promise<AuthenticationResult | null> {
|
|
103
101
|
this.logger.info(
|
|
104
102
|
"acquireTokenByDeviceCode called",
|
|
105
|
-
request.correlationId
|
|
103
|
+
request.correlationId || ""
|
|
106
104
|
);
|
|
107
105
|
const validRequest: CommonDeviceCodeRequest = Object.assign(
|
|
108
106
|
request,
|
|
@@ -162,13 +160,13 @@ export class PublicClientApplication
|
|
|
162
160
|
const brokerRequest: NativeRequest = {
|
|
163
161
|
...remainingProperties,
|
|
164
162
|
clientId: this.config.auth.clientId,
|
|
165
|
-
scopes: request.scopes || OIDC_DEFAULT_SCOPES,
|
|
163
|
+
scopes: request.scopes || CommonConstants.OIDC_DEFAULT_SCOPES,
|
|
166
164
|
redirectUri: request.redirectUri || "",
|
|
167
165
|
authority: request.authority || this.config.auth.authority,
|
|
168
166
|
correlationId: correlationId,
|
|
169
167
|
extraParameters: {
|
|
170
168
|
...remainingProperties.extraQueryParameters,
|
|
171
|
-
...remainingProperties.
|
|
169
|
+
...remainingProperties.extraParameters,
|
|
172
170
|
[AADServerParamKeys.X_CLIENT_EXTRA_SKU]: this.skus,
|
|
173
171
|
},
|
|
174
172
|
accountId: remainingProperties.account?.nativeAccountId,
|
|
@@ -180,7 +178,7 @@ export class PublicClientApplication
|
|
|
180
178
|
}
|
|
181
179
|
|
|
182
180
|
if (request.redirectUri) {
|
|
183
|
-
// If
|
|
181
|
+
// If it's not a broker fallback scenario, we throw an error
|
|
184
182
|
if (!this.config.broker.nativeBrokerPlugin) {
|
|
185
183
|
throw NodeAuthError.createRedirectUriNotSupportedError();
|
|
186
184
|
}
|
|
@@ -213,11 +211,12 @@ export class PublicClientApplication
|
|
|
213
211
|
const validRequest: AuthorizationUrlRequest = {
|
|
214
212
|
...remainingProperties,
|
|
215
213
|
correlationId: correlationId,
|
|
216
|
-
scopes: request.scopes || OIDC_DEFAULT_SCOPES,
|
|
214
|
+
scopes: request.scopes || CommonConstants.OIDC_DEFAULT_SCOPES,
|
|
217
215
|
redirectUri: redirectUri,
|
|
218
|
-
responseMode: ResponseMode.QUERY,
|
|
216
|
+
responseMode: CommonConstants.ResponseMode.QUERY,
|
|
219
217
|
codeChallenge: challenge,
|
|
220
|
-
codeChallengeMethod:
|
|
218
|
+
codeChallengeMethod:
|
|
219
|
+
CommonConstants.CodeChallengeMethodValues.S256,
|
|
221
220
|
};
|
|
222
221
|
|
|
223
222
|
const authCodeUrl = await this.getAuthCodeUrl(validRequest);
|
|
@@ -241,7 +240,7 @@ export class PublicClientApplication
|
|
|
241
240
|
const tokenRequest: AuthorizationCodeRequest = {
|
|
242
241
|
code: authCodeResponse.code,
|
|
243
242
|
codeVerifier: verifier,
|
|
244
|
-
clientInfo: clientInfo ||
|
|
243
|
+
clientInfo: clientInfo || "",
|
|
245
244
|
...validRequest,
|
|
246
245
|
};
|
|
247
246
|
return await this.acquireTokenByCode(tokenRequest); // Await this so the server doesn't close prematurely
|
|
@@ -266,12 +265,13 @@ export class PublicClientApplication
|
|
|
266
265
|
const brokerRequest: NativeRequest = {
|
|
267
266
|
...request,
|
|
268
267
|
clientId: this.config.auth.clientId,
|
|
269
|
-
scopes: request.scopes || OIDC_DEFAULT_SCOPES,
|
|
268
|
+
scopes: request.scopes || CommonConstants.OIDC_DEFAULT_SCOPES,
|
|
270
269
|
redirectUri: request.redirectUri || "",
|
|
271
270
|
authority: request.authority || this.config.auth.authority,
|
|
272
271
|
correlationId: correlationId,
|
|
273
272
|
extraParameters: {
|
|
274
|
-
...request.
|
|
273
|
+
...request.extraQueryParameters,
|
|
274
|
+
...request.extraParameters,
|
|
275
275
|
[AADServerParamKeys.X_CLIENT_EXTRA_SKU]: this.skus,
|
|
276
276
|
},
|
|
277
277
|
accountId: request.account.nativeAccountId,
|
|
@@ -281,7 +281,7 @@ export class PublicClientApplication
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
if (request.redirectUri) {
|
|
284
|
-
// If
|
|
284
|
+
// If it's not a broker fallback scenario, we throw an error
|
|
285
285
|
if (!this.config.broker.nativeBrokerPlugin) {
|
|
286
286
|
throw NodeAuthError.createRedirectUriNotSupportedError();
|
|
287
287
|
}
|
|
@@ -6,14 +6,11 @@
|
|
|
6
6
|
import {
|
|
7
7
|
AuthenticationResult,
|
|
8
8
|
Authority,
|
|
9
|
-
BaseClient,
|
|
10
9
|
CcsCredentialType,
|
|
11
10
|
ClientAssertion,
|
|
12
11
|
ClientConfiguration,
|
|
13
|
-
CommonUsernamePasswordRequest,
|
|
14
|
-
GrantType,
|
|
15
12
|
NetworkResponse,
|
|
16
|
-
|
|
13
|
+
Constants,
|
|
17
14
|
RequestParameterBuilder,
|
|
18
15
|
RequestThumbprint,
|
|
19
16
|
ResponseHandler,
|
|
@@ -24,6 +21,8 @@ import {
|
|
|
24
21
|
UrlUtils,
|
|
25
22
|
getClientAssertion,
|
|
26
23
|
} from "@azure/msal-common/node";
|
|
24
|
+
import { CommonUsernamePasswordRequest } from "../request/CommonUsernamePasswordRequest.js";
|
|
25
|
+
import { BaseClient } from "./BaseClient.js";
|
|
27
26
|
|
|
28
27
|
/**
|
|
29
28
|
* Oauth2.0 Password grant client
|
|
@@ -44,7 +43,10 @@ export class UsernamePasswordClient extends BaseClient {
|
|
|
44
43
|
async acquireToken(
|
|
45
44
|
request: CommonUsernamePasswordRequest
|
|
46
45
|
): Promise<AuthenticationResult | null> {
|
|
47
|
-
this.logger.info(
|
|
46
|
+
this.logger.info(
|
|
47
|
+
"in acquireToken call in username-password client",
|
|
48
|
+
request.correlationId
|
|
49
|
+
);
|
|
48
50
|
|
|
49
51
|
const reqTimestamp = TimeUtils.nowSeconds();
|
|
50
52
|
const response = await this.executeTokenRequest(
|
|
@@ -57,12 +59,16 @@ export class UsernamePasswordClient extends BaseClient {
|
|
|
57
59
|
this.cacheManager,
|
|
58
60
|
this.cryptoUtils,
|
|
59
61
|
this.logger,
|
|
62
|
+
this.performanceClient,
|
|
60
63
|
this.config.serializableCache,
|
|
61
64
|
this.config.persistencePlugin
|
|
62
65
|
);
|
|
63
66
|
|
|
64
67
|
// Validate response. This function throws a server error if an error is returned by the server.
|
|
65
|
-
responseHandler.validateTokenResponse(
|
|
68
|
+
responseHandler.validateTokenResponse(
|
|
69
|
+
response.body,
|
|
70
|
+
request.correlationId
|
|
71
|
+
);
|
|
66
72
|
const tokenResponse = responseHandler.handleServerTokenResponse(
|
|
67
73
|
response.body,
|
|
68
74
|
this.authority,
|
|
@@ -133,12 +139,12 @@ export class UsernamePasswordClient extends BaseClient {
|
|
|
133
139
|
|
|
134
140
|
RequestParameterBuilder.addResponseType(
|
|
135
141
|
parameters,
|
|
136
|
-
OAuthResponseType.IDTOKEN_TOKEN
|
|
142
|
+
Constants.OAuthResponseType.IDTOKEN_TOKEN
|
|
137
143
|
);
|
|
138
144
|
|
|
139
145
|
RequestParameterBuilder.addGrantType(
|
|
140
146
|
parameters,
|
|
141
|
-
GrantType.RESOURCE_OWNER_PASSWORD_GRANT
|
|
147
|
+
Constants.GrantType.RESOURCE_OWNER_PASSWORD_GRANT
|
|
142
148
|
);
|
|
143
149
|
RequestParameterBuilder.addClientInfo(parameters);
|
|
144
150
|
|
|
@@ -9,16 +9,14 @@ import {
|
|
|
9
9
|
LogLevel,
|
|
10
10
|
ProtocolMode,
|
|
11
11
|
ICachePlugin,
|
|
12
|
-
Constants,
|
|
13
12
|
AzureCloudInstance,
|
|
14
13
|
AzureCloudOptions,
|
|
15
14
|
ApplicationTelemetry,
|
|
16
15
|
INativeBrokerPlugin,
|
|
17
16
|
ClientAssertionCallback,
|
|
17
|
+
Constants,
|
|
18
18
|
} from "@azure/msal-common/node";
|
|
19
19
|
import { HttpClient } from "../network/HttpClient.js";
|
|
20
|
-
import http from "http";
|
|
21
|
-
import https from "https";
|
|
22
20
|
import { ManagedIdentityId } from "./ManagedIdentityId.js";
|
|
23
21
|
import { NodeAuthError } from "../error/NodeAuthError.js";
|
|
24
22
|
|
|
@@ -29,9 +27,6 @@ import { NodeAuthError } from "../error/NodeAuthError.js";
|
|
|
29
27
|
* - clientSecret - Secret string that the application uses when requesting a token. Only used in confidential client applications. Can be created in the Azure app registration portal.
|
|
30
28
|
* - clientAssertion - A ClientAssertion object containing an assertion string or a callback function that returns an assertion string that the application uses when requesting a token, as well as the assertion's type (urn:ietf:params:oauth:client-assertion-type:jwt-bearer). Only used in confidential client applications.
|
|
31
29
|
* - clientCertificate - Certificate that the application uses when requesting a token. Only used in confidential client applications. Requires hex encoded X.509 SHA-1 or SHA-256 thumbprint of the certificate, and the PEM encoded private key (string should contain -----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- )
|
|
32
|
-
* - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints.
|
|
33
|
-
* - skipAuthorityMetadataCache - A flag to choose whether to use or not use the local metadata cache during authority initialization. Defaults to false.
|
|
34
|
-
* - encodeExtraQueryParams - A flag to choose whether to encode extra query parameters in the request URL. Defaults to false.
|
|
35
30
|
* @public
|
|
36
31
|
*/
|
|
37
32
|
export type NodeAuthOptions = {
|
|
@@ -53,13 +48,7 @@ export type NodeAuthOptions = {
|
|
|
53
48
|
cloudDiscoveryMetadata?: string;
|
|
54
49
|
authorityMetadata?: string;
|
|
55
50
|
clientCapabilities?: Array<string>;
|
|
56
|
-
protocolMode?: ProtocolMode;
|
|
57
51
|
azureCloudOptions?: AzureCloudOptions;
|
|
58
|
-
skipAuthorityMetadataCache?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* @deprecated This flag is deprecated and will be removed in the next major version where all extra query params will be encoded by default.
|
|
61
|
-
*/
|
|
62
|
-
encodeExtraQueryParams?: boolean;
|
|
63
52
|
};
|
|
64
53
|
|
|
65
54
|
/**
|
|
@@ -70,10 +59,6 @@ export type NodeAuthOptions = {
|
|
|
70
59
|
*/
|
|
71
60
|
export type CacheOptions = {
|
|
72
61
|
cachePlugin?: ICachePlugin;
|
|
73
|
-
/**
|
|
74
|
-
* @deprecated claims-based-caching functionality will be removed in the next version of MSALJS
|
|
75
|
-
*/
|
|
76
|
-
claimsBasedCachingEnabled?: boolean;
|
|
77
62
|
};
|
|
78
63
|
|
|
79
64
|
/**
|
|
@@ -92,14 +77,14 @@ export type BrokerOptions = {
|
|
|
92
77
|
*
|
|
93
78
|
* - logger - Used to initialize the Logger object; TODO: Expand on logger details or link to the documentation on logger
|
|
94
79
|
* - networkClient - Http client used for all http get and post calls. Defaults to using MSAL's default http client.
|
|
80
|
+
* - protocolMode - Enum that represents the protocol that msal follows. Used for configuring proper endpoints.
|
|
95
81
|
* @public
|
|
96
82
|
*/
|
|
97
83
|
export type NodeSystemOptions = {
|
|
98
84
|
loggerOptions?: LoggerOptions;
|
|
99
85
|
networkClient?: INetworkModule;
|
|
100
|
-
proxyUrl?: string;
|
|
101
|
-
customAgentOptions?: http.AgentOptions | https.AgentOptions;
|
|
102
86
|
disableInternalRetries?: boolean;
|
|
87
|
+
protocolMode?: ProtocolMode;
|
|
103
88
|
};
|
|
104
89
|
|
|
105
90
|
/** @public */
|
|
@@ -140,31 +125,24 @@ export type ManagedIdentityConfiguration = {
|
|
|
140
125
|
};
|
|
141
126
|
|
|
142
127
|
const DEFAULT_AUTH_OPTIONS: Required<NodeAuthOptions> = {
|
|
143
|
-
clientId:
|
|
128
|
+
clientId: "",
|
|
144
129
|
authority: Constants.DEFAULT_AUTHORITY,
|
|
145
|
-
clientSecret:
|
|
146
|
-
clientAssertion:
|
|
130
|
+
clientSecret: "",
|
|
131
|
+
clientAssertion: "",
|
|
147
132
|
clientCertificate: {
|
|
148
|
-
thumbprint:
|
|
149
|
-
thumbprintSha256:
|
|
150
|
-
privateKey:
|
|
151
|
-
x5c:
|
|
133
|
+
thumbprint: "",
|
|
134
|
+
thumbprintSha256: "",
|
|
135
|
+
privateKey: "",
|
|
136
|
+
x5c: "",
|
|
152
137
|
},
|
|
153
138
|
knownAuthorities: [],
|
|
154
|
-
cloudDiscoveryMetadata:
|
|
155
|
-
authorityMetadata:
|
|
139
|
+
cloudDiscoveryMetadata: "",
|
|
140
|
+
authorityMetadata: "",
|
|
156
141
|
clientCapabilities: [],
|
|
157
|
-
protocolMode: ProtocolMode.AAD,
|
|
158
142
|
azureCloudOptions: {
|
|
159
143
|
azureCloudInstance: AzureCloudInstance.None,
|
|
160
|
-
tenant:
|
|
144
|
+
tenant: "",
|
|
161
145
|
},
|
|
162
|
-
skipAuthorityMetadataCache: false,
|
|
163
|
-
encodeExtraQueryParams: false,
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
const DEFAULT_CACHE_OPTIONS: CacheOptions = {
|
|
167
|
-
claimsBasedCachingEnabled: false,
|
|
168
146
|
};
|
|
169
147
|
|
|
170
148
|
const DEFAULT_LOGGER_OPTIONS: LoggerOptions = {
|
|
@@ -178,15 +156,14 @@ const DEFAULT_LOGGER_OPTIONS: LoggerOptions = {
|
|
|
178
156
|
const DEFAULT_SYSTEM_OPTIONS: Required<NodeSystemOptions> = {
|
|
179
157
|
loggerOptions: DEFAULT_LOGGER_OPTIONS,
|
|
180
158
|
networkClient: new HttpClient(),
|
|
181
|
-
proxyUrl: Constants.EMPTY_STRING,
|
|
182
|
-
customAgentOptions: {} as http.AgentOptions | https.AgentOptions,
|
|
183
159
|
disableInternalRetries: false,
|
|
160
|
+
protocolMode: ProtocolMode.AAD,
|
|
184
161
|
};
|
|
185
162
|
|
|
186
163
|
const DEFAULT_TELEMETRY_OPTIONS: Required<NodeTelemetryOptions> = {
|
|
187
164
|
application: {
|
|
188
|
-
appName:
|
|
189
|
-
appVersion:
|
|
165
|
+
appName: "",
|
|
166
|
+
appVersion: "",
|
|
190
167
|
},
|
|
191
168
|
};
|
|
192
169
|
|
|
@@ -219,10 +196,7 @@ export function buildAppConfiguration({
|
|
|
219
196
|
}: Configuration): NodeConfiguration {
|
|
220
197
|
const systemOptions: Required<NodeSystemOptions> = {
|
|
221
198
|
...DEFAULT_SYSTEM_OPTIONS,
|
|
222
|
-
networkClient: new HttpClient(
|
|
223
|
-
system?.proxyUrl,
|
|
224
|
-
system?.customAgentOptions as http.AgentOptions | https.AgentOptions
|
|
225
|
-
),
|
|
199
|
+
networkClient: new HttpClient(),
|
|
226
200
|
loggerOptions: system?.loggerOptions || DEFAULT_LOGGER_OPTIONS,
|
|
227
201
|
disableInternalRetries: system?.disableInternalRetries || false,
|
|
228
202
|
};
|
|
@@ -239,7 +213,7 @@ export function buildAppConfiguration({
|
|
|
239
213
|
return {
|
|
240
214
|
auth: { ...DEFAULT_AUTH_OPTIONS, ...auth },
|
|
241
215
|
broker: { ...broker },
|
|
242
|
-
cache: { ...
|
|
216
|
+
cache: { ...cache },
|
|
243
217
|
system: { ...systemOptions, ...system },
|
|
244
218
|
telemetry: { ...DEFAULT_TELEMETRY_OPTIONS, ...telemetry },
|
|
245
219
|
};
|
|
@@ -273,10 +247,7 @@ export function buildManagedIdentityConfiguration({
|
|
|
273
247
|
networkClient = system.networkClient;
|
|
274
248
|
// otherwise, create a new one
|
|
275
249
|
} else {
|
|
276
|
-
networkClient = new HttpClient(
|
|
277
|
-
system?.proxyUrl,
|
|
278
|
-
system?.customAgentOptions as http.AgentOptions | https.AgentOptions
|
|
279
|
-
);
|
|
250
|
+
networkClient = new HttpClient();
|
|
280
251
|
}
|
|
281
252
|
|
|
282
253
|
return {
|
|
@@ -38,7 +38,7 @@ export class ManagedIdentityRequestParameters {
|
|
|
38
38
|
const parameters = new Map<string, string>();
|
|
39
39
|
|
|
40
40
|
if (this.queryParameters) {
|
|
41
|
-
RequestParameterBuilder.
|
|
41
|
+
RequestParameterBuilder.addExtraParameters(
|
|
42
42
|
parameters,
|
|
43
43
|
this.queryParameters
|
|
44
44
|
);
|
|
@@ -56,7 +56,7 @@ export class ManagedIdentityRequestParameters {
|
|
|
56
56
|
const parameters = new Map<string, string>();
|
|
57
57
|
|
|
58
58
|
if (this.bodyParameters) {
|
|
59
|
-
RequestParameterBuilder.
|
|
59
|
+
RequestParameterBuilder.addExtraParameters(
|
|
60
60
|
parameters,
|
|
61
61
|
this.bodyParameters
|
|
62
62
|
);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { Constants, ICrypto, PkceCodes } from "@azure/msal-common/node";
|
|
7
7
|
import { GuidGenerator } from "./GuidGenerator.js";
|
|
8
8
|
import { EncodingUtils } from "../utils/EncodingUtils.js";
|
|
9
9
|
import { PkceGenerator } from "./PkceGenerator.js";
|
|
@@ -106,8 +106,10 @@ export class CryptoProvider implements ICrypto {
|
|
|
106
106
|
*/
|
|
107
107
|
async hashString(plainText: string): Promise<string> {
|
|
108
108
|
return EncodingUtils.base64EncodeUrl(
|
|
109
|
-
this.hashUtils
|
|
110
|
-
|
|
109
|
+
this.hashUtils
|
|
110
|
+
.sha256(plainText)
|
|
111
|
+
.toString(Constants.EncodingTypes.BASE64),
|
|
112
|
+
Constants.EncodingTypes.BASE64
|
|
111
113
|
);
|
|
112
114
|
}
|
|
113
115
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { PkceCodes, Constants } from "@azure/msal-common/node";
|
|
7
7
|
import { CharSet, RANDOM_OCTET_SIZE } from "../utils/Constants.js";
|
|
8
8
|
import { EncodingUtils } from "../utils/EncodingUtils.js";
|
|
9
9
|
import { HashUtils } from "./HashUtils.js";
|
|
@@ -46,7 +46,7 @@ export class PkceGenerator {
|
|
|
46
46
|
const index = byte % CharSet.CV_CHARSET.length;
|
|
47
47
|
charArr.push(CharSet.CV_CHARSET[index]);
|
|
48
48
|
}
|
|
49
|
-
const verifier: string = charArr.join(
|
|
49
|
+
const verifier: string = charArr.join("");
|
|
50
50
|
return EncodingUtils.base64EncodeUrl(verifier);
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -56,8 +56,10 @@ export class PkceGenerator {
|
|
|
56
56
|
*/
|
|
57
57
|
private generateCodeChallengeFromVerifier(codeVerifier: string): string {
|
|
58
58
|
return EncodingUtils.base64EncodeUrl(
|
|
59
|
-
this.hashUtils
|
|
60
|
-
|
|
59
|
+
this.hashUtils
|
|
60
|
+
.sha256(codeVerifier)
|
|
61
|
+
.toString(Constants.EncodingTypes.BASE64),
|
|
62
|
+
Constants.EncodingTypes.BASE64
|
|
61
63
|
);
|
|
62
64
|
}
|
|
63
65
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export const missingTenantIdError = "missing_tenant_id_error";
|
|
7
|
+
export const userTimeoutReached = "user_timeout_reached";
|
|
8
|
+
export const invalidAssertion = "invalid_assertion";
|
|
9
|
+
export const invalidClientCredential = "invalid_client_credential";
|
|
10
|
+
export const deviceCodePollingCancelled = "device_code_polling_cancelled";
|
|
11
|
+
export const deviceCodeExpired = "device_code_expired";
|
|
12
|
+
export const deviceCodeUnknownError = "device_code_unknown_error";
|
package/src/index.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
|
|
14
14
|
*/
|
|
15
15
|
import * as internals from "./internals.js";
|
|
16
|
+
import { Constants as CommonConstants } from "@azure/msal-common/node";
|
|
16
17
|
export { internals };
|
|
17
18
|
|
|
18
19
|
// Interfaces
|
|
@@ -26,12 +27,7 @@ export { ILoopbackClient } from "./network/ILoopbackClient.js";
|
|
|
26
27
|
// Clients and Configuration
|
|
27
28
|
export { PublicClientApplication } from "./client/PublicClientApplication.js";
|
|
28
29
|
export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication.js";
|
|
29
|
-
export { ClientApplication } from "./client/ClientApplication.js";
|
|
30
|
-
export { ClientCredentialClient } from "./client/ClientCredentialClient.js";
|
|
31
|
-
export { DeviceCodeClient } from "./client/DeviceCodeClient.js";
|
|
32
|
-
export { OnBehalfOfClient } from "./client/OnBehalfOfClient.js";
|
|
33
30
|
export { ManagedIdentityApplication } from "./client/ManagedIdentityApplication.js";
|
|
34
|
-
export { UsernamePasswordClient } from "./client/UsernamePasswordClient.js";
|
|
35
31
|
|
|
36
32
|
export {
|
|
37
33
|
Configuration,
|
|
@@ -62,9 +58,6 @@ export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlug
|
|
|
62
58
|
// Constants
|
|
63
59
|
export { ManagedIdentitySourceNames } from "./utils/Constants.js";
|
|
64
60
|
|
|
65
|
-
// Crypto
|
|
66
|
-
export { CryptoProvider } from "./crypto/CryptoProvider.js";
|
|
67
|
-
|
|
68
61
|
// Request objects
|
|
69
62
|
export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest.js";
|
|
70
63
|
export type { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest.js";
|
|
@@ -78,36 +71,29 @@ export type { InteractiveRequest } from "./request/InteractiveRequest.js";
|
|
|
78
71
|
export type { SignOutRequest } from "./request/SignOutRequest.js";
|
|
79
72
|
export type { ManagedIdentityRequestParams } from "./request/ManagedIdentityRequestParams.js";
|
|
80
73
|
|
|
74
|
+
const PromptValue = CommonConstants.PromptValue;
|
|
75
|
+
const ResponseMode = CommonConstants.ResponseMode;
|
|
76
|
+
export { PromptValue, ResponseMode };
|
|
77
|
+
|
|
81
78
|
// Common Object Formats
|
|
82
79
|
export {
|
|
83
|
-
// Request
|
|
84
|
-
PromptValue,
|
|
85
|
-
ResponseMode,
|
|
86
80
|
AuthorizationCodePayload,
|
|
87
81
|
// Response
|
|
88
82
|
AuthenticationResult,
|
|
89
83
|
AuthorizeResponse,
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated Use AuthorizeResponse instead
|
|
92
|
-
*/
|
|
93
|
-
AuthorizeResponse as ServerAuthorizationCodeResponse,
|
|
94
84
|
IdTokenClaims,
|
|
95
85
|
// Cache
|
|
96
86
|
AccountInfo,
|
|
97
87
|
ValidCacheType,
|
|
98
88
|
// Error
|
|
99
89
|
AuthError,
|
|
100
|
-
AuthErrorMessage,
|
|
101
90
|
AuthErrorCodes,
|
|
102
91
|
ClientAuthError,
|
|
103
92
|
ClientAuthErrorCodes,
|
|
104
|
-
ClientAuthErrorMessage,
|
|
105
93
|
ClientConfigurationError,
|
|
106
94
|
ClientConfigurationErrorCodes,
|
|
107
|
-
ClientConfigurationErrorMessage,
|
|
108
95
|
InteractionRequiredAuthError,
|
|
109
96
|
InteractionRequiredAuthErrorCodes,
|
|
110
|
-
InteractionRequiredAuthErrorMessage,
|
|
111
97
|
ServerError,
|
|
112
98
|
// Network Interface
|
|
113
99
|
INetworkModule,
|