@azure/msal-node 2.7.0-alpha.0 → 2.7.1-alpha.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 +1 -1
- package/dist/cache/ITokenCache.d.ts +15 -15
- package/dist/cache/NodeStorage.cjs +423 -423
- package/dist/cache/NodeStorage.cjs.map +1 -1
- package/dist/cache/NodeStorage.d.ts +193 -193
- package/dist/cache/NodeStorage.d.ts.map +1 -1
- package/dist/cache/NodeStorage.mjs +424 -424
- package/dist/cache/NodeStorage.mjs.map +1 -1
- package/dist/cache/TokenCache.cjs +265 -265
- package/dist/cache/TokenCache.d.ts +90 -90
- package/dist/cache/TokenCache.mjs +265 -265
- package/dist/cache/distributed/DistributedCachePlugin.cjs +26 -26
- package/dist/cache/distributed/DistributedCachePlugin.d.ts +10 -10
- package/dist/cache/distributed/DistributedCachePlugin.mjs +26 -26
- package/dist/cache/distributed/ICacheClient.d.ts +17 -17
- package/dist/cache/distributed/IPartitionManager.d.ts +28 -28
- package/dist/cache/serializer/Deserializer.cjs +167 -170
- package/dist/cache/serializer/Deserializer.cjs.map +1 -1
- package/dist/cache/serializer/Deserializer.d.ts +42 -42
- package/dist/cache/serializer/Deserializer.d.ts.map +1 -1
- package/dist/cache/serializer/Deserializer.mjs +168 -171
- package/dist/cache/serializer/Deserializer.mjs.map +1 -1
- package/dist/cache/serializer/Serializer.cjs +137 -137
- package/dist/cache/serializer/Serializer.d.ts +39 -39
- package/dist/cache/serializer/Serializer.mjs +137 -137
- package/dist/cache/serializer/SerializerTypes.d.ts +102 -102
- package/dist/client/ClientApplication.cjs +335 -333
- package/dist/client/ClientApplication.cjs.map +1 -1
- package/dist/client/ClientApplication.d.ts +143 -142
- package/dist/client/ClientApplication.d.ts.map +1 -1
- package/dist/client/ClientApplication.mjs +336 -334
- package/dist/client/ClientApplication.mjs.map +1 -1
- package/dist/client/ClientAssertion.cjs +116 -116
- package/dist/client/ClientAssertion.d.ts +46 -46
- package/dist/client/ClientAssertion.mjs +116 -116
- package/dist/client/ClientCredentialClient.cjs +194 -194
- package/dist/client/ClientCredentialClient.cjs.map +1 -1
- package/dist/client/ClientCredentialClient.d.ts +33 -33
- package/dist/client/ClientCredentialClient.d.ts.map +1 -1
- package/dist/client/ClientCredentialClient.mjs +195 -195
- package/dist/client/ClientCredentialClient.mjs.map +1 -1
- package/dist/client/ConfidentialClientApplication.cjs +166 -163
- package/dist/client/ConfidentialClientApplication.cjs.map +1 -1
- package/dist/client/ConfidentialClientApplication.d.ts +58 -58
- package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
- package/dist/client/ConfidentialClientApplication.mjs +168 -165
- package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
- package/dist/client/DeviceCodeClient.cjs +207 -207
- package/dist/client/DeviceCodeClient.d.ts +53 -53
- package/dist/client/DeviceCodeClient.mjs +207 -207
- package/dist/client/IConfidentialClientApplication.d.ts +39 -39
- package/dist/client/IPublicClientApplication.d.ts +42 -42
- package/dist/client/ManagedIdentityApplication.cjs +75 -80
- package/dist/client/ManagedIdentityApplication.cjs.map +1 -1
- package/dist/client/ManagedIdentityApplication.d.ts +23 -23
- package/dist/client/ManagedIdentityApplication.d.ts.map +1 -1
- package/dist/client/ManagedIdentityApplication.mjs +76 -81
- package/dist/client/ManagedIdentityApplication.mjs.map +1 -1
- package/dist/client/ManagedIdentityClient.cjs +40 -36
- package/dist/client/ManagedIdentityClient.cjs.map +1 -1
- package/dist/client/ManagedIdentityClient.d.ts +19 -24
- package/dist/client/ManagedIdentityClient.d.ts.map +1 -1
- package/dist/client/ManagedIdentityClient.mjs +40 -36
- package/dist/client/ManagedIdentityClient.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.cjs +42 -69
- package/dist/client/ManagedIdentitySources/AppService.cjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.d.ts +16 -16
- package/dist/client/ManagedIdentitySources/AppService.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AppService.mjs +43 -70
- package/dist/client/ManagedIdentitySources/AppService.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.cjs +81 -92
- package/dist/client/ManagedIdentitySources/AzureArc.cjs.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts +18 -18
- package/dist/client/ManagedIdentitySources/AzureArc.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/AzureArc.mjs +84 -95
- package/dist/client/ManagedIdentitySources/AzureArc.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs +116 -77
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.cjs.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +30 -18
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +118 -80
- package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.cjs +47 -0
- package/dist/client/ManagedIdentitySources/CloudShell.cjs.map +1 -0
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts +15 -6
- package/dist/client/ManagedIdentitySources/CloudShell.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/CloudShell.mjs +45 -0
- package/dist/client/ManagedIdentitySources/CloudShell.mjs.map +1 -0
- package/dist/client/ManagedIdentitySources/Imds.cjs +43 -52
- package/dist/client/ManagedIdentitySources/Imds.cjs.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.d.ts +12 -12
- package/dist/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/Imds.mjs +44 -53
- package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.cjs +61 -0
- package/dist/client/ManagedIdentitySources/ServiceFabric.cjs.map +1 -0
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts +16 -6
- package/dist/client/ManagedIdentitySources/ServiceFabric.d.ts.map +1 -1
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +59 -0
- package/dist/client/ManagedIdentitySources/ServiceFabric.mjs.map +1 -0
- package/dist/client/OnBehalfOfClient.cjs +202 -202
- package/dist/client/OnBehalfOfClient.cjs.map +1 -1
- package/dist/client/OnBehalfOfClient.d.ts +47 -47
- package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
- package/dist/client/OnBehalfOfClient.mjs +203 -203
- package/dist/client/OnBehalfOfClient.mjs.map +1 -1
- package/dist/client/PublicClientApplication.cjs +229 -229
- package/dist/client/PublicClientApplication.d.ts +71 -71
- package/dist/client/PublicClientApplication.mjs +229 -229
- package/dist/client/UsernamePasswordClient.cjs +95 -95
- package/dist/client/UsernamePasswordClient.cjs.map +1 -1
- package/dist/client/UsernamePasswordClient.d.ts +25 -25
- package/dist/client/UsernamePasswordClient.d.ts.map +1 -1
- package/dist/client/UsernamePasswordClient.mjs +96 -96
- package/dist/client/UsernamePasswordClient.mjs.map +1 -1
- package/dist/config/Configuration.cjs +102 -86
- package/dist/config/Configuration.cjs.map +1 -1
- package/dist/config/Configuration.d.ts +126 -122
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.mjs +102 -86
- package/dist/config/Configuration.mjs.map +1 -1
- package/dist/config/ManagedIdentityId.cjs +48 -48
- package/dist/config/ManagedIdentityId.d.ts +11 -11
- package/dist/config/ManagedIdentityId.mjs +48 -48
- package/dist/config/ManagedIdentityRequestParameters.cjs +28 -29
- package/dist/config/ManagedIdentityRequestParameters.cjs.map +1 -1
- package/dist/config/ManagedIdentityRequestParameters.d.ts +11 -11
- package/dist/config/ManagedIdentityRequestParameters.d.ts.map +1 -1
- package/dist/config/ManagedIdentityRequestParameters.mjs +28 -29
- package/dist/config/ManagedIdentityRequestParameters.mjs.map +1 -1
- package/dist/crypto/CryptoProvider.cjs +75 -75
- package/dist/crypto/CryptoProvider.d.ts +52 -52
- package/dist/crypto/CryptoProvider.mjs +75 -75
- package/dist/crypto/GuidGenerator.cjs +22 -22
- package/dist/crypto/GuidGenerator.d.ts +14 -14
- package/dist/crypto/GuidGenerator.mjs +22 -22
- package/dist/crypto/HashUtils.cjs +13 -13
- package/dist/crypto/HashUtils.d.ts +8 -8
- package/dist/crypto/HashUtils.mjs +13 -13
- package/dist/crypto/PkceGenerator.cjs +49 -49
- package/dist/crypto/PkceGenerator.d.ts +22 -22
- package/dist/crypto/PkceGenerator.mjs +49 -49
- package/dist/error/ManagedIdentityError.cjs +38 -28
- package/dist/error/ManagedIdentityError.cjs.map +1 -1
- package/dist/error/ManagedIdentityError.d.ts +26 -21
- package/dist/error/ManagedIdentityError.d.ts.map +1 -1
- package/dist/error/ManagedIdentityError.mjs +39 -29
- package/dist/error/ManagedIdentityError.mjs.map +1 -1
- package/dist/error/ManagedIdentityErrorCodes.cjs +26 -15
- package/dist/error/ManagedIdentityErrorCodes.cjs.map +1 -1
- package/dist/error/ManagedIdentityErrorCodes.d.ts +18 -9
- package/dist/error/ManagedIdentityErrorCodes.d.ts.map +1 -1
- package/dist/error/ManagedIdentityErrorCodes.mjs +23 -14
- package/dist/error/ManagedIdentityErrorCodes.mjs.map +1 -1
- package/dist/error/NodeAuthError.cjs +85 -85
- package/dist/error/NodeAuthError.d.ts +65 -65
- package/dist/error/NodeAuthError.mjs +85 -85
- package/dist/index.cjs +21 -21
- package/dist/index.d.ts +44 -44
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internals.cjs +8 -8
- package/dist/internals.d.ts +6 -6
- package/dist/internals.mjs +8 -8
- package/dist/network/HttpClient.cjs +281 -283
- package/dist/network/HttpClient.cjs.map +1 -1
- package/dist/network/HttpClient.d.ts +25 -26
- package/dist/network/HttpClient.d.ts.map +1 -1
- package/dist/network/HttpClient.mjs +281 -283
- package/dist/network/HttpClient.mjs.map +1 -1
- package/dist/network/HttpClientWithRetries.cjs +44 -0
- package/dist/network/HttpClientWithRetries.cjs.map +1 -0
- package/dist/network/HttpClientWithRetries.d.ts +12 -0
- package/dist/network/HttpClientWithRetries.d.ts.map +1 -0
- package/dist/network/HttpClientWithRetries.mjs +42 -0
- package/dist/network/HttpClientWithRetries.mjs.map +1 -0
- package/dist/network/ILoopbackClient.d.ts +10 -10
- package/dist/network/LoopbackClient.cjs +77 -77
- package/dist/network/LoopbackClient.d.ts +21 -21
- package/dist/network/LoopbackClient.mjs +77 -77
- package/dist/packageMetadata.cjs +4 -4
- package/dist/packageMetadata.d.ts +2 -2
- package/dist/packageMetadata.mjs +4 -4
- package/dist/request/AuthorizationCodeRequest.d.ts +21 -21
- package/dist/request/AuthorizationUrlRequest.d.ts +33 -33
- package/dist/request/ClientCredentialRequest.d.ts +14 -14
- package/dist/request/ClientCredentialRequest.d.ts.map +1 -1
- package/dist/request/DeviceCodeRequest.d.ts +15 -15
- package/dist/request/InteractiveRequest.d.ts +22 -22
- package/dist/request/ManagedIdentityRequest.d.ts +8 -8
- package/dist/request/ManagedIdentityRequestParams.d.ts +9 -9
- package/dist/request/OnBehalfOfRequest.d.ts +14 -14
- package/dist/request/RefreshTokenRequest.d.ts +17 -17
- package/dist/request/SignOutRequest.d.ts +5 -5
- package/dist/request/SilentFlowRequest.d.ts +16 -16
- package/dist/request/UsernamePasswordRequest.d.ts +19 -19
- package/dist/response/ManagedIdentityTokenResponse.d.ts +24 -24
- package/dist/retry/IHttpRetryPolicy.d.ts +6 -0
- package/dist/retry/IHttpRetryPolicy.d.ts.map +1 -0
- package/dist/retry/LinearRetryPolicy.cjs +47 -0
- package/dist/retry/LinearRetryPolicy.cjs.map +1 -0
- package/dist/retry/LinearRetryPolicy.d.ts +12 -0
- package/dist/retry/LinearRetryPolicy.d.ts.map +1 -0
- package/dist/retry/LinearRetryPolicy.mjs +45 -0
- package/dist/retry/LinearRetryPolicy.mjs.map +1 -0
- package/dist/utils/Constants.cjs +142 -103
- package/dist/utils/Constants.cjs.map +1 -1
- package/dist/utils/Constants.d.ts +132 -106
- package/dist/utils/Constants.d.ts.map +1 -1
- package/dist/utils/Constants.mjs +134 -100
- package/dist/utils/Constants.mjs.map +1 -1
- package/dist/utils/EncodingUtils.cjs +44 -44
- package/dist/utils/EncodingUtils.d.ts +26 -26
- package/dist/utils/EncodingUtils.mjs +44 -44
- package/dist/utils/NetworkUtils.cjs +38 -38
- package/dist/utils/NetworkUtils.d.ts +5 -5
- package/dist/utils/NetworkUtils.mjs +38 -38
- package/package.json +5 -5
- package/src/cache/NodeStorage.ts +4 -9
- package/src/cache/serializer/Deserializer.ts +1 -5
- package/src/client/ClientApplication.ts +24 -10
- package/src/client/ClientCredentialClient.ts +14 -6
- package/src/client/ConfidentialClientApplication.ts +10 -5
- package/src/client/ManagedIdentityApplication.ts +8 -16
- package/src/client/ManagedIdentityClient.ts +23 -11
- package/src/client/ManagedIdentitySources/AppService.ts +68 -97
- package/src/client/ManagedIdentitySources/AzureArc.ts +59 -68
- package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +82 -11
- package/src/client/ManagedIdentitySources/CloudShell.ts +93 -8
- package/src/client/ManagedIdentitySources/Imds.ts +54 -40
- package/src/client/ManagedIdentitySources/ServiceFabric.ts +126 -5
- package/src/client/OnBehalfOfClient.ts +18 -7
- package/src/client/UsernamePasswordClient.ts +16 -7
- package/src/config/Configuration.ts +50 -18
- package/src/config/ManagedIdentityRequestParameters.ts +1 -6
- package/src/error/ManagedIdentityError.ts +15 -4
- package/src/error/ManagedIdentityErrorCodes.ts +19 -1
- package/src/index.ts +1 -0
- package/src/network/HttpClient.ts +27 -39
- package/src/network/HttpClientWithRetries.ts +80 -0
- package/src/packageMetadata.ts +1 -1
- package/src/request/ClientCredentialRequest.ts +6 -3
- package/src/retry/IHttpRetryPolicy.ts +18 -0
- package/src/retry/LinearRetryPolicy.ts +71 -0
- package/src/utils/Constants.ts +47 -10
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
/*! @azure/msal-node v2.7.
|
|
1
|
+
/*! @azure/msal-node v2.7.1-alpha.0 2024-05-01 */
|
|
2
2
|
'use strict';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
3
|
+
import { ManagedIdentityEnvironmentVariableNames } from '../utils/Constants.mjs';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
const invalidManagedIdentityIdType = "invalid_managed_identity_id_type";
|
|
10
|
+
const missingId = "missing_client_id";
|
|
11
|
+
const networkUnavailable = "network_unavailable";
|
|
12
|
+
const unableToCreateAzureArc = "unable_to_create_azure_arc";
|
|
13
|
+
const unableToCreateCloudShell = "unable_to_create_cloud_shell";
|
|
14
|
+
const unableToCreateSource = "unable_to_create_source";
|
|
15
|
+
const unableToReadSecretFile = "unable_to_read_secret_file";
|
|
16
|
+
const userAssignedNotAvailableAtRuntime = "user_assigned_not_available_at_runtime";
|
|
17
|
+
const wwwAuthenticateHeaderMissing = "www_authenticate_header_missing";
|
|
15
18
|
const wwwAuthenticateHeaderUnsupportedFormat = "www_authenticate_header_unsupported_format";
|
|
19
|
+
const MsiEnvironmentVariableUrlMalformedErrorCodes = {
|
|
20
|
+
[ManagedIdentityEnvironmentVariableNames.AZURE_POD_IDENTITY_AUTHORITY_HOST]: "azure_pod_identity_authority_host_url_malformed",
|
|
21
|
+
[ManagedIdentityEnvironmentVariableNames.IDENTITY_ENDPOINT]: "identity_endpoint_url_malformed",
|
|
22
|
+
[ManagedIdentityEnvironmentVariableNames.IMDS_ENDPOINT]: "imds_endpoint_url_malformed",
|
|
23
|
+
[ManagedIdentityEnvironmentVariableNames.MSI_ENDPOINT]: "msi_endpoint_url_malformed",
|
|
24
|
+
};
|
|
16
25
|
|
|
17
|
-
export {
|
|
26
|
+
export { MsiEnvironmentVariableUrlMalformedErrorCodes, invalidManagedIdentityIdType, missingId, networkUnavailable, unableToCreateAzureArc, unableToCreateCloudShell, unableToCreateSource, unableToReadSecretFile, userAssignedNotAvailableAtRuntime, wwwAuthenticateHeaderMissing, wwwAuthenticateHeaderUnsupportedFormat };
|
|
18
27
|
//# sourceMappingURL=ManagedIdentityErrorCodes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedIdentityErrorCodes.mjs","sources":["../../src/error/ManagedIdentityErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ManagedIdentityErrorCodes.mjs","sources":["../../src/error/ManagedIdentityErrorCodes.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAII,MAAM,4BAA4B,GAAG,mCAAmC;AACxE,MAAM,SAAS,GAAG,oBAAoB;AACtC,MAAM,kBAAkB,GAAG,sBAAsB;AACjD,MAAM,sBAAsB,GAAG,6BAA6B;AAC5D,MAAM,wBAAwB,GAAG,+BAA+B;AAChE,MAAM,oBAAoB,GAAG,0BAA0B;AACvD,MAAM,sBAAsB,GAAG,6BAA6B;AAE5D,MAAM,iCAAiC,GAC1C,yCAAyC;AACtC,MAAM,4BAA4B,GAAG,kCAAkC;AACvE,MAAM,sCAAsC,GAC/C,6CAA6C;AAEpC,MAAA,4CAA4C,GAAG;AACxD,IAAA,CAAC,uCAAuC,CAAC,iCAAiC,GACtE,iDAAiD;AACrD,IAAA,CAAC,uCAAuC,CAAC,iBAAiB,GACtD,iCAAiC;AACrC,IAAA,CAAC,uCAAuC,CAAC,aAAa,GAClD,6BAA6B;AACjC,IAAA,CAAC,uCAAuC,CAAC,YAAY,GACjD,4BAA4B;;;;;"}
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
/*! @azure/msal-node v2.7.
|
|
1
|
+
/*! @azure/msal-node v2.7.1-alpha.0 2024-05-01 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
var msalCommon = require('@azure/msal-common');
|
|
6
6
|
|
|
7
|
-
/*
|
|
8
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
-
* Licensed under the MIT License.
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
13
|
-
*/
|
|
14
|
-
const NodeAuthErrorMessage = {
|
|
15
|
-
invalidLoopbackAddressType: {
|
|
16
|
-
code: "invalid_loopback_server_address_type",
|
|
17
|
-
desc: "Loopback server address is not type string. This is unexpected.",
|
|
18
|
-
},
|
|
19
|
-
unableToLoadRedirectUri: {
|
|
20
|
-
code: "unable_to_load_redirectUrl",
|
|
21
|
-
desc: "Loopback server callback was invoked without a url. This is unexpected.",
|
|
22
|
-
},
|
|
23
|
-
noAuthCodeInResponse: {
|
|
24
|
-
code: "no_auth_code_in_response",
|
|
25
|
-
desc: "No auth code found in the server response. Please check your network trace to determine what happened.",
|
|
26
|
-
},
|
|
27
|
-
noLoopbackServerExists: {
|
|
28
|
-
code: "no_loopback_server_exists",
|
|
29
|
-
desc: "No loopback server exists yet.",
|
|
30
|
-
},
|
|
31
|
-
loopbackServerAlreadyExists: {
|
|
32
|
-
code: "loopback_server_already_exists",
|
|
33
|
-
desc: "Loopback server already exists. Cannot create another.",
|
|
34
|
-
},
|
|
35
|
-
loopbackServerTimeout: {
|
|
36
|
-
code: "loopback_server_timeout",
|
|
37
|
-
desc: "Timed out waiting for auth code listener to be registered.",
|
|
38
|
-
},
|
|
39
|
-
stateNotFoundError: {
|
|
40
|
-
code: "state_not_found",
|
|
41
|
-
desc: "State not found. Please verify that the request originated from msal.",
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
class NodeAuthError extends msalCommon.AuthError {
|
|
45
|
-
constructor(errorCode, errorMessage) {
|
|
46
|
-
super(errorCode, errorMessage);
|
|
47
|
-
this.name = "NodeAuthError";
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Creates an error thrown if loopback server address is of type string.
|
|
51
|
-
*/
|
|
52
|
-
static createInvalidLoopbackAddressTypeError() {
|
|
53
|
-
return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Creates an error thrown if the loopback server is unable to get a url.
|
|
57
|
-
*/
|
|
58
|
-
static createUnableToLoadRedirectUrlError() {
|
|
59
|
-
return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Creates an error thrown if the server response does not contain an auth code.
|
|
63
|
-
*/
|
|
64
|
-
static createNoAuthCodeInResponseError() {
|
|
65
|
-
return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
69
|
-
*/
|
|
70
|
-
static createNoLoopbackServerExistsError() {
|
|
71
|
-
return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
75
|
-
*/
|
|
76
|
-
static createLoopbackServerAlreadyExistsError() {
|
|
77
|
-
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
81
|
-
*/
|
|
82
|
-
static createLoopbackServerTimeoutError() {
|
|
83
|
-
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Creates an error thrown when the state is not present.
|
|
87
|
-
*/
|
|
88
|
-
static createStateNotFoundError() {
|
|
89
|
-
return new NodeAuthError(NodeAuthErrorMessage.stateNotFoundError.code, NodeAuthErrorMessage.stateNotFoundError.desc);
|
|
90
|
-
}
|
|
7
|
+
/*
|
|
8
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
+
* Licensed under the MIT License.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
13
|
+
*/
|
|
14
|
+
const NodeAuthErrorMessage = {
|
|
15
|
+
invalidLoopbackAddressType: {
|
|
16
|
+
code: "invalid_loopback_server_address_type",
|
|
17
|
+
desc: "Loopback server address is not type string. This is unexpected.",
|
|
18
|
+
},
|
|
19
|
+
unableToLoadRedirectUri: {
|
|
20
|
+
code: "unable_to_load_redirectUrl",
|
|
21
|
+
desc: "Loopback server callback was invoked without a url. This is unexpected.",
|
|
22
|
+
},
|
|
23
|
+
noAuthCodeInResponse: {
|
|
24
|
+
code: "no_auth_code_in_response",
|
|
25
|
+
desc: "No auth code found in the server response. Please check your network trace to determine what happened.",
|
|
26
|
+
},
|
|
27
|
+
noLoopbackServerExists: {
|
|
28
|
+
code: "no_loopback_server_exists",
|
|
29
|
+
desc: "No loopback server exists yet.",
|
|
30
|
+
},
|
|
31
|
+
loopbackServerAlreadyExists: {
|
|
32
|
+
code: "loopback_server_already_exists",
|
|
33
|
+
desc: "Loopback server already exists. Cannot create another.",
|
|
34
|
+
},
|
|
35
|
+
loopbackServerTimeout: {
|
|
36
|
+
code: "loopback_server_timeout",
|
|
37
|
+
desc: "Timed out waiting for auth code listener to be registered.",
|
|
38
|
+
},
|
|
39
|
+
stateNotFoundError: {
|
|
40
|
+
code: "state_not_found",
|
|
41
|
+
desc: "State not found. Please verify that the request originated from msal.",
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
class NodeAuthError extends msalCommon.AuthError {
|
|
45
|
+
constructor(errorCode, errorMessage) {
|
|
46
|
+
super(errorCode, errorMessage);
|
|
47
|
+
this.name = "NodeAuthError";
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Creates an error thrown if loopback server address is of type string.
|
|
51
|
+
*/
|
|
52
|
+
static createInvalidLoopbackAddressTypeError() {
|
|
53
|
+
return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Creates an error thrown if the loopback server is unable to get a url.
|
|
57
|
+
*/
|
|
58
|
+
static createUnableToLoadRedirectUrlError() {
|
|
59
|
+
return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates an error thrown if the server response does not contain an auth code.
|
|
63
|
+
*/
|
|
64
|
+
static createNoAuthCodeInResponseError() {
|
|
65
|
+
return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
69
|
+
*/
|
|
70
|
+
static createNoLoopbackServerExistsError() {
|
|
71
|
+
return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
75
|
+
*/
|
|
76
|
+
static createLoopbackServerAlreadyExistsError() {
|
|
77
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
81
|
+
*/
|
|
82
|
+
static createLoopbackServerTimeoutError() {
|
|
83
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Creates an error thrown when the state is not present.
|
|
87
|
+
*/
|
|
88
|
+
static createStateNotFoundError() {
|
|
89
|
+
return new NodeAuthError(NodeAuthErrorMessage.stateNotFoundError.code, NodeAuthErrorMessage.stateNotFoundError.desc);
|
|
90
|
+
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
exports.NodeAuthError = NodeAuthError;
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { AuthError } from "@azure/msal-common";
|
|
2
|
-
/**
|
|
3
|
-
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
4
|
-
*/
|
|
5
|
-
export declare const NodeAuthErrorMessage: {
|
|
6
|
-
invalidLoopbackAddressType: {
|
|
7
|
-
code: string;
|
|
8
|
-
desc: string;
|
|
9
|
-
};
|
|
10
|
-
unableToLoadRedirectUri: {
|
|
11
|
-
code: string;
|
|
12
|
-
desc: string;
|
|
13
|
-
};
|
|
14
|
-
noAuthCodeInResponse: {
|
|
15
|
-
code: string;
|
|
16
|
-
desc: string;
|
|
17
|
-
};
|
|
18
|
-
noLoopbackServerExists: {
|
|
19
|
-
code: string;
|
|
20
|
-
desc: string;
|
|
21
|
-
};
|
|
22
|
-
loopbackServerAlreadyExists: {
|
|
23
|
-
code: string;
|
|
24
|
-
desc: string;
|
|
25
|
-
};
|
|
26
|
-
loopbackServerTimeout: {
|
|
27
|
-
code: string;
|
|
28
|
-
desc: string;
|
|
29
|
-
};
|
|
30
|
-
stateNotFoundError: {
|
|
31
|
-
code: string;
|
|
32
|
-
desc: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
export declare class NodeAuthError extends AuthError {
|
|
36
|
-
constructor(errorCode: string, errorMessage?: string);
|
|
37
|
-
/**
|
|
38
|
-
* Creates an error thrown if loopback server address is of type string.
|
|
39
|
-
*/
|
|
40
|
-
static createInvalidLoopbackAddressTypeError(): NodeAuthError;
|
|
41
|
-
/**
|
|
42
|
-
* Creates an error thrown if the loopback server is unable to get a url.
|
|
43
|
-
*/
|
|
44
|
-
static createUnableToLoadRedirectUrlError(): NodeAuthError;
|
|
45
|
-
/**
|
|
46
|
-
* Creates an error thrown if the server response does not contain an auth code.
|
|
47
|
-
*/
|
|
48
|
-
static createNoAuthCodeInResponseError(): NodeAuthError;
|
|
49
|
-
/**
|
|
50
|
-
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
51
|
-
*/
|
|
52
|
-
static createNoLoopbackServerExistsError(): NodeAuthError;
|
|
53
|
-
/**
|
|
54
|
-
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
55
|
-
*/
|
|
56
|
-
static createLoopbackServerAlreadyExistsError(): NodeAuthError;
|
|
57
|
-
/**
|
|
58
|
-
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
59
|
-
*/
|
|
60
|
-
static createLoopbackServerTimeoutError(): NodeAuthError;
|
|
61
|
-
/**
|
|
62
|
-
* Creates an error thrown when the state is not present.
|
|
63
|
-
*/
|
|
64
|
-
static createStateNotFoundError(): NodeAuthError;
|
|
65
|
-
}
|
|
1
|
+
import { AuthError } from "@azure/msal-common";
|
|
2
|
+
/**
|
|
3
|
+
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
4
|
+
*/
|
|
5
|
+
export declare const NodeAuthErrorMessage: {
|
|
6
|
+
invalidLoopbackAddressType: {
|
|
7
|
+
code: string;
|
|
8
|
+
desc: string;
|
|
9
|
+
};
|
|
10
|
+
unableToLoadRedirectUri: {
|
|
11
|
+
code: string;
|
|
12
|
+
desc: string;
|
|
13
|
+
};
|
|
14
|
+
noAuthCodeInResponse: {
|
|
15
|
+
code: string;
|
|
16
|
+
desc: string;
|
|
17
|
+
};
|
|
18
|
+
noLoopbackServerExists: {
|
|
19
|
+
code: string;
|
|
20
|
+
desc: string;
|
|
21
|
+
};
|
|
22
|
+
loopbackServerAlreadyExists: {
|
|
23
|
+
code: string;
|
|
24
|
+
desc: string;
|
|
25
|
+
};
|
|
26
|
+
loopbackServerTimeout: {
|
|
27
|
+
code: string;
|
|
28
|
+
desc: string;
|
|
29
|
+
};
|
|
30
|
+
stateNotFoundError: {
|
|
31
|
+
code: string;
|
|
32
|
+
desc: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare class NodeAuthError extends AuthError {
|
|
36
|
+
constructor(errorCode: string, errorMessage?: string);
|
|
37
|
+
/**
|
|
38
|
+
* Creates an error thrown if loopback server address is of type string.
|
|
39
|
+
*/
|
|
40
|
+
static createInvalidLoopbackAddressTypeError(): NodeAuthError;
|
|
41
|
+
/**
|
|
42
|
+
* Creates an error thrown if the loopback server is unable to get a url.
|
|
43
|
+
*/
|
|
44
|
+
static createUnableToLoadRedirectUrlError(): NodeAuthError;
|
|
45
|
+
/**
|
|
46
|
+
* Creates an error thrown if the server response does not contain an auth code.
|
|
47
|
+
*/
|
|
48
|
+
static createNoAuthCodeInResponseError(): NodeAuthError;
|
|
49
|
+
/**
|
|
50
|
+
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
51
|
+
*/
|
|
52
|
+
static createNoLoopbackServerExistsError(): NodeAuthError;
|
|
53
|
+
/**
|
|
54
|
+
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
55
|
+
*/
|
|
56
|
+
static createLoopbackServerAlreadyExistsError(): NodeAuthError;
|
|
57
|
+
/**
|
|
58
|
+
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
59
|
+
*/
|
|
60
|
+
static createLoopbackServerTimeoutError(): NodeAuthError;
|
|
61
|
+
/**
|
|
62
|
+
* Creates an error thrown when the state is not present.
|
|
63
|
+
*/
|
|
64
|
+
static createStateNotFoundError(): NodeAuthError;
|
|
65
|
+
}
|
|
66
66
|
//# sourceMappingURL=NodeAuthError.d.ts.map
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
/*! @azure/msal-node v2.7.
|
|
1
|
+
/*! @azure/msal-node v2.7.1-alpha.0 2024-05-01 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { AuthError } from '@azure/msal-common';
|
|
4
4
|
|
|
5
|
-
/*
|
|
6
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
-
* Licensed under the MIT License.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
11
|
-
*/
|
|
12
|
-
const NodeAuthErrorMessage = {
|
|
13
|
-
invalidLoopbackAddressType: {
|
|
14
|
-
code: "invalid_loopback_server_address_type",
|
|
15
|
-
desc: "Loopback server address is not type string. This is unexpected.",
|
|
16
|
-
},
|
|
17
|
-
unableToLoadRedirectUri: {
|
|
18
|
-
code: "unable_to_load_redirectUrl",
|
|
19
|
-
desc: "Loopback server callback was invoked without a url. This is unexpected.",
|
|
20
|
-
},
|
|
21
|
-
noAuthCodeInResponse: {
|
|
22
|
-
code: "no_auth_code_in_response",
|
|
23
|
-
desc: "No auth code found in the server response. Please check your network trace to determine what happened.",
|
|
24
|
-
},
|
|
25
|
-
noLoopbackServerExists: {
|
|
26
|
-
code: "no_loopback_server_exists",
|
|
27
|
-
desc: "No loopback server exists yet.",
|
|
28
|
-
},
|
|
29
|
-
loopbackServerAlreadyExists: {
|
|
30
|
-
code: "loopback_server_already_exists",
|
|
31
|
-
desc: "Loopback server already exists. Cannot create another.",
|
|
32
|
-
},
|
|
33
|
-
loopbackServerTimeout: {
|
|
34
|
-
code: "loopback_server_timeout",
|
|
35
|
-
desc: "Timed out waiting for auth code listener to be registered.",
|
|
36
|
-
},
|
|
37
|
-
stateNotFoundError: {
|
|
38
|
-
code: "state_not_found",
|
|
39
|
-
desc: "State not found. Please verify that the request originated from msal.",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
class NodeAuthError extends AuthError {
|
|
43
|
-
constructor(errorCode, errorMessage) {
|
|
44
|
-
super(errorCode, errorMessage);
|
|
45
|
-
this.name = "NodeAuthError";
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Creates an error thrown if loopback server address is of type string.
|
|
49
|
-
*/
|
|
50
|
-
static createInvalidLoopbackAddressTypeError() {
|
|
51
|
-
return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Creates an error thrown if the loopback server is unable to get a url.
|
|
55
|
-
*/
|
|
56
|
-
static createUnableToLoadRedirectUrlError() {
|
|
57
|
-
return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Creates an error thrown if the server response does not contain an auth code.
|
|
61
|
-
*/
|
|
62
|
-
static createNoAuthCodeInResponseError() {
|
|
63
|
-
return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
67
|
-
*/
|
|
68
|
-
static createNoLoopbackServerExistsError() {
|
|
69
|
-
return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
73
|
-
*/
|
|
74
|
-
static createLoopbackServerAlreadyExistsError() {
|
|
75
|
-
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
79
|
-
*/
|
|
80
|
-
static createLoopbackServerTimeoutError() {
|
|
81
|
-
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Creates an error thrown when the state is not present.
|
|
85
|
-
*/
|
|
86
|
-
static createStateNotFoundError() {
|
|
87
|
-
return new NodeAuthError(NodeAuthErrorMessage.stateNotFoundError.code, NodeAuthErrorMessage.stateNotFoundError.desc);
|
|
88
|
-
}
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
11
|
+
*/
|
|
12
|
+
const NodeAuthErrorMessage = {
|
|
13
|
+
invalidLoopbackAddressType: {
|
|
14
|
+
code: "invalid_loopback_server_address_type",
|
|
15
|
+
desc: "Loopback server address is not type string. This is unexpected.",
|
|
16
|
+
},
|
|
17
|
+
unableToLoadRedirectUri: {
|
|
18
|
+
code: "unable_to_load_redirectUrl",
|
|
19
|
+
desc: "Loopback server callback was invoked without a url. This is unexpected.",
|
|
20
|
+
},
|
|
21
|
+
noAuthCodeInResponse: {
|
|
22
|
+
code: "no_auth_code_in_response",
|
|
23
|
+
desc: "No auth code found in the server response. Please check your network trace to determine what happened.",
|
|
24
|
+
},
|
|
25
|
+
noLoopbackServerExists: {
|
|
26
|
+
code: "no_loopback_server_exists",
|
|
27
|
+
desc: "No loopback server exists yet.",
|
|
28
|
+
},
|
|
29
|
+
loopbackServerAlreadyExists: {
|
|
30
|
+
code: "loopback_server_already_exists",
|
|
31
|
+
desc: "Loopback server already exists. Cannot create another.",
|
|
32
|
+
},
|
|
33
|
+
loopbackServerTimeout: {
|
|
34
|
+
code: "loopback_server_timeout",
|
|
35
|
+
desc: "Timed out waiting for auth code listener to be registered.",
|
|
36
|
+
},
|
|
37
|
+
stateNotFoundError: {
|
|
38
|
+
code: "state_not_found",
|
|
39
|
+
desc: "State not found. Please verify that the request originated from msal.",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
class NodeAuthError extends AuthError {
|
|
43
|
+
constructor(errorCode, errorMessage) {
|
|
44
|
+
super(errorCode, errorMessage);
|
|
45
|
+
this.name = "NodeAuthError";
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Creates an error thrown if loopback server address is of type string.
|
|
49
|
+
*/
|
|
50
|
+
static createInvalidLoopbackAddressTypeError() {
|
|
51
|
+
return new NodeAuthError(NodeAuthErrorMessage.invalidLoopbackAddressType.code, `${NodeAuthErrorMessage.invalidLoopbackAddressType.desc}`);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Creates an error thrown if the loopback server is unable to get a url.
|
|
55
|
+
*/
|
|
56
|
+
static createUnableToLoadRedirectUrlError() {
|
|
57
|
+
return new NodeAuthError(NodeAuthErrorMessage.unableToLoadRedirectUri.code, `${NodeAuthErrorMessage.unableToLoadRedirectUri.desc}`);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Creates an error thrown if the server response does not contain an auth code.
|
|
61
|
+
*/
|
|
62
|
+
static createNoAuthCodeInResponseError() {
|
|
63
|
+
return new NodeAuthError(NodeAuthErrorMessage.noAuthCodeInResponse.code, `${NodeAuthErrorMessage.noAuthCodeInResponse.desc}`);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Creates an error thrown if the loopback server has not been spun up yet.
|
|
67
|
+
*/
|
|
68
|
+
static createNoLoopbackServerExistsError() {
|
|
69
|
+
return new NodeAuthError(NodeAuthErrorMessage.noLoopbackServerExists.code, `${NodeAuthErrorMessage.noLoopbackServerExists.desc}`);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Creates an error thrown if a loopback server already exists when attempting to create another one.
|
|
73
|
+
*/
|
|
74
|
+
static createLoopbackServerAlreadyExistsError() {
|
|
75
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerAlreadyExists.code, `${NodeAuthErrorMessage.loopbackServerAlreadyExists.desc}`);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Creates an error thrown if the loopback server times out registering the auth code listener.
|
|
79
|
+
*/
|
|
80
|
+
static createLoopbackServerTimeoutError() {
|
|
81
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Creates an error thrown when the state is not present.
|
|
85
|
+
*/
|
|
86
|
+
static createStateNotFoundError() {
|
|
87
|
+
return new NodeAuthError(NodeAuthErrorMessage.stateNotFoundError.code, NodeAuthErrorMessage.stateNotFoundError.desc);
|
|
88
|
+
}
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
export { NodeAuthError, NodeAuthErrorMessage };
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-node v2.7.
|
|
1
|
+
/*! @azure/msal-node v2.7.1-alpha.0 2024-05-01 */
|
|
2
2
|
'use strict';
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -37,83 +37,83 @@ exports.TokenCache = TokenCache.TokenCache;
|
|
|
37
37
|
exports.NodeStorage = NodeStorage.NodeStorage;
|
|
38
38
|
exports.DistributedCachePlugin = DistributedCachePlugin.DistributedCachePlugin;
|
|
39
39
|
exports.CryptoProvider = CryptoProvider.CryptoProvider;
|
|
40
|
-
Object.defineProperty(exports,
|
|
40
|
+
Object.defineProperty(exports, "AuthError", {
|
|
41
41
|
enumerable: true,
|
|
42
42
|
get: function () { return msalCommon.AuthError; }
|
|
43
43
|
});
|
|
44
|
-
Object.defineProperty(exports,
|
|
44
|
+
Object.defineProperty(exports, "AuthErrorCodes", {
|
|
45
45
|
enumerable: true,
|
|
46
46
|
get: function () { return msalCommon.AuthErrorCodes; }
|
|
47
47
|
});
|
|
48
|
-
Object.defineProperty(exports,
|
|
48
|
+
Object.defineProperty(exports, "AuthErrorMessage", {
|
|
49
49
|
enumerable: true,
|
|
50
50
|
get: function () { return msalCommon.AuthErrorMessage; }
|
|
51
51
|
});
|
|
52
|
-
Object.defineProperty(exports,
|
|
52
|
+
Object.defineProperty(exports, "AzureCloudInstance", {
|
|
53
53
|
enumerable: true,
|
|
54
54
|
get: function () { return msalCommon.AzureCloudInstance; }
|
|
55
55
|
});
|
|
56
|
-
Object.defineProperty(exports,
|
|
56
|
+
Object.defineProperty(exports, "ClientAuthError", {
|
|
57
57
|
enumerable: true,
|
|
58
58
|
get: function () { return msalCommon.ClientAuthError; }
|
|
59
59
|
});
|
|
60
|
-
Object.defineProperty(exports,
|
|
60
|
+
Object.defineProperty(exports, "ClientAuthErrorCodes", {
|
|
61
61
|
enumerable: true,
|
|
62
62
|
get: function () { return msalCommon.ClientAuthErrorCodes; }
|
|
63
63
|
});
|
|
64
|
-
Object.defineProperty(exports,
|
|
64
|
+
Object.defineProperty(exports, "ClientAuthErrorMessage", {
|
|
65
65
|
enumerable: true,
|
|
66
66
|
get: function () { return msalCommon.ClientAuthErrorMessage; }
|
|
67
67
|
});
|
|
68
|
-
Object.defineProperty(exports,
|
|
68
|
+
Object.defineProperty(exports, "ClientConfigurationError", {
|
|
69
69
|
enumerable: true,
|
|
70
70
|
get: function () { return msalCommon.ClientConfigurationError; }
|
|
71
71
|
});
|
|
72
|
-
Object.defineProperty(exports,
|
|
72
|
+
Object.defineProperty(exports, "ClientConfigurationErrorCodes", {
|
|
73
73
|
enumerable: true,
|
|
74
74
|
get: function () { return msalCommon.ClientConfigurationErrorCodes; }
|
|
75
75
|
});
|
|
76
|
-
Object.defineProperty(exports,
|
|
76
|
+
Object.defineProperty(exports, "ClientConfigurationErrorMessage", {
|
|
77
77
|
enumerable: true,
|
|
78
78
|
get: function () { return msalCommon.ClientConfigurationErrorMessage; }
|
|
79
79
|
});
|
|
80
|
-
Object.defineProperty(exports,
|
|
80
|
+
Object.defineProperty(exports, "InteractionRequiredAuthError", {
|
|
81
81
|
enumerable: true,
|
|
82
82
|
get: function () { return msalCommon.InteractionRequiredAuthError; }
|
|
83
83
|
});
|
|
84
|
-
Object.defineProperty(exports,
|
|
84
|
+
Object.defineProperty(exports, "InteractionRequiredAuthErrorCodes", {
|
|
85
85
|
enumerable: true,
|
|
86
86
|
get: function () { return msalCommon.InteractionRequiredAuthErrorCodes; }
|
|
87
87
|
});
|
|
88
|
-
Object.defineProperty(exports,
|
|
88
|
+
Object.defineProperty(exports, "InteractionRequiredAuthErrorMessage", {
|
|
89
89
|
enumerable: true,
|
|
90
90
|
get: function () { return msalCommon.InteractionRequiredAuthErrorMessage; }
|
|
91
91
|
});
|
|
92
|
-
Object.defineProperty(exports,
|
|
92
|
+
Object.defineProperty(exports, "LogLevel", {
|
|
93
93
|
enumerable: true,
|
|
94
94
|
get: function () { return msalCommon.LogLevel; }
|
|
95
95
|
});
|
|
96
|
-
Object.defineProperty(exports,
|
|
96
|
+
Object.defineProperty(exports, "Logger", {
|
|
97
97
|
enumerable: true,
|
|
98
98
|
get: function () { return msalCommon.Logger; }
|
|
99
99
|
});
|
|
100
|
-
Object.defineProperty(exports,
|
|
100
|
+
Object.defineProperty(exports, "PromptValue", {
|
|
101
101
|
enumerable: true,
|
|
102
102
|
get: function () { return msalCommon.PromptValue; }
|
|
103
103
|
});
|
|
104
|
-
Object.defineProperty(exports,
|
|
104
|
+
Object.defineProperty(exports, "ProtocolMode", {
|
|
105
105
|
enumerable: true,
|
|
106
106
|
get: function () { return msalCommon.ProtocolMode; }
|
|
107
107
|
});
|
|
108
|
-
Object.defineProperty(exports,
|
|
108
|
+
Object.defineProperty(exports, "ResponseMode", {
|
|
109
109
|
enumerable: true,
|
|
110
110
|
get: function () { return msalCommon.ResponseMode; }
|
|
111
111
|
});
|
|
112
|
-
Object.defineProperty(exports,
|
|
112
|
+
Object.defineProperty(exports, "ServerError", {
|
|
113
113
|
enumerable: true,
|
|
114
114
|
get: function () { return msalCommon.ServerError; }
|
|
115
115
|
});
|
|
116
|
-
Object.defineProperty(exports,
|
|
116
|
+
Object.defineProperty(exports, "TokenCacheContext", {
|
|
117
117
|
enumerable: true,
|
|
118
118
|
get: function () { return msalCommon.TokenCacheContext; }
|
|
119
119
|
});
|