@azure/msal-node 2.0.0-alpha.1 → 2.0.0-alpha.2

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.
Files changed (107) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +182 -182
  3. package/dist/cache/ITokenCache.d.ts +15 -15
  4. package/dist/cache/NodeStorage.d.ts +182 -182
  5. package/dist/cache/NodeStorage.esm.js +401 -401
  6. package/dist/cache/NodeStorage.js +401 -401
  7. package/dist/cache/TokenCache.d.ts +90 -90
  8. package/dist/cache/TokenCache.esm.js +269 -269
  9. package/dist/cache/TokenCache.js +269 -269
  10. package/dist/cache/distributed/DistributedCachePlugin.d.ts +10 -10
  11. package/dist/cache/distributed/DistributedCachePlugin.esm.js +26 -26
  12. package/dist/cache/distributed/DistributedCachePlugin.js +26 -26
  13. package/dist/cache/distributed/ICacheClient.d.ts +17 -17
  14. package/dist/cache/distributed/IPartitionManager.d.ts +28 -28
  15. package/dist/cache/serializer/Deserializer.d.ts +42 -42
  16. package/dist/cache/serializer/Deserializer.esm.js +175 -175
  17. package/dist/cache/serializer/Deserializer.js +175 -175
  18. package/dist/cache/serializer/Serializer.d.ts +39 -39
  19. package/dist/cache/serializer/Serializer.esm.js +134 -134
  20. package/dist/cache/serializer/Serializer.js +134 -134
  21. package/dist/cache/serializer/SerializerTypes.d.ts +101 -101
  22. package/dist/client/ClientApplication.d.ts +142 -142
  23. package/dist/client/ClientApplication.esm.js +327 -327
  24. package/dist/client/ClientApplication.js +327 -327
  25. package/dist/client/ClientAssertion.d.ts +46 -46
  26. package/dist/client/ClientAssertion.esm.js +116 -116
  27. package/dist/client/ClientAssertion.js +116 -116
  28. package/dist/client/ClientCredentialClient.d.ts +33 -33
  29. package/dist/client/ClientCredentialClient.esm.js +157 -157
  30. package/dist/client/ClientCredentialClient.js +157 -157
  31. package/dist/client/ConfidentialClientApplication.d.ts +58 -58
  32. package/dist/client/ConfidentialClientApplication.esm.js +163 -163
  33. package/dist/client/ConfidentialClientApplication.js +163 -163
  34. package/dist/client/DeviceCodeClient.d.ts +53 -53
  35. package/dist/client/DeviceCodeClient.esm.js +207 -207
  36. package/dist/client/DeviceCodeClient.js +207 -207
  37. package/dist/client/IConfidentialClientApplication.d.ts +39 -39
  38. package/dist/client/IPublicClientApplication.d.ts +42 -42
  39. package/dist/client/OnBehalfOfClient.d.ts +47 -47
  40. package/dist/client/OnBehalfOfClient.esm.js +204 -204
  41. package/dist/client/OnBehalfOfClient.js +204 -204
  42. package/dist/client/PublicClientApplication.d.ts +65 -65
  43. package/dist/client/PublicClientApplication.esm.js +175 -175
  44. package/dist/client/PublicClientApplication.js +175 -175
  45. package/dist/client/UsernamePasswordClient.d.ts +25 -25
  46. package/dist/client/UsernamePasswordClient.esm.js +102 -102
  47. package/dist/client/UsernamePasswordClient.js +102 -102
  48. package/dist/config/Configuration.d.ts +105 -105
  49. package/dist/config/Configuration.esm.js +70 -70
  50. package/dist/config/Configuration.js +70 -70
  51. package/dist/crypto/CryptoProvider.d.ts +52 -52
  52. package/dist/crypto/CryptoProvider.esm.js +75 -75
  53. package/dist/crypto/CryptoProvider.js +75 -75
  54. package/dist/crypto/GuidGenerator.d.ts +14 -14
  55. package/dist/crypto/GuidGenerator.esm.js +22 -22
  56. package/dist/crypto/GuidGenerator.js +22 -22
  57. package/dist/crypto/HashUtils.d.ts +8 -8
  58. package/dist/crypto/HashUtils.esm.js +13 -13
  59. package/dist/crypto/HashUtils.js +13 -13
  60. package/dist/crypto/PkceGenerator.d.ts +22 -22
  61. package/dist/crypto/PkceGenerator.esm.js +49 -49
  62. package/dist/crypto/PkceGenerator.js +49 -49
  63. package/dist/error/NodeAuthError.d.ts +65 -65
  64. package/dist/error/NodeAuthError.esm.js +85 -85
  65. package/dist/error/NodeAuthError.js +85 -85
  66. package/dist/index.d.ts +41 -41
  67. package/dist/index.esm.js +1 -1
  68. package/dist/index.js +1 -1
  69. package/dist/internals.d.ts +6 -6
  70. package/dist/internals.esm.js +4 -4
  71. package/dist/internals.js +4 -4
  72. package/dist/network/HttpClient.d.ts +25 -25
  73. package/dist/network/HttpClient.esm.js +276 -276
  74. package/dist/network/HttpClient.js +276 -276
  75. package/dist/network/ILoopbackClient.d.ts +10 -10
  76. package/dist/network/LoopbackClient.d.ts +21 -21
  77. package/dist/network/LoopbackClient.esm.js +84 -84
  78. package/dist/network/LoopbackClient.js +84 -84
  79. package/dist/packageMetadata.d.ts +2 -2
  80. package/dist/packageMetadata.esm.js +4 -4
  81. package/dist/packageMetadata.js +4 -4
  82. package/dist/request/AuthorizationCodeRequest.d.ts +21 -21
  83. package/dist/request/AuthorizationUrlRequest.d.ts +33 -33
  84. package/dist/request/ClientCredentialRequest.d.ts +15 -15
  85. package/dist/request/DeviceCodeRequest.d.ts +15 -15
  86. package/dist/request/InteractiveRequest.d.ts +22 -22
  87. package/dist/request/OnBehalfOfRequest.d.ts +14 -14
  88. package/dist/request/RefreshTokenRequest.d.ts +17 -17
  89. package/dist/request/SignOutRequest.d.ts +5 -5
  90. package/dist/request/SilentFlowRequest.d.ts +16 -16
  91. package/dist/request/UsernamePasswordRequest.d.ts +19 -19
  92. package/dist/utils/Constants.d.ts +92 -92
  93. package/dist/utils/Constants.esm.js +93 -93
  94. package/dist/utils/Constants.js +93 -93
  95. package/dist/utils/EncodingUtils.d.ts +26 -26
  96. package/dist/utils/EncodingUtils.esm.js +44 -44
  97. package/dist/utils/EncodingUtils.js +44 -44
  98. package/dist/utils/NetworkUtils.d.ts +5 -5
  99. package/dist/utils/NetworkUtils.esm.js +38 -38
  100. package/dist/utils/NetworkUtils.js +38 -38
  101. package/package.json +73 -73
  102. package/dist/msal-node.cjs.development.js +0 -2705
  103. package/dist/msal-node.cjs.development.js.map +0 -1
  104. package/dist/msal-node.cjs.production.min.js +0 -2
  105. package/dist/msal-node.cjs.production.min.js.map +0 -1
  106. package/dist/msal-node.esm.js +0 -2594
  107. package/dist/msal-node.esm.js.map +0 -1
@@ -1,91 +1,91 @@
1
- /*! @azure/msal-node v2.0.0-alpha.1 2023-05-08 */
1
+ /*! @azure/msal-node v2.0.0-alpha.2 2023-05-17 */
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 };
@@ -1,93 +1,93 @@
1
- /*! @azure/msal-node v2.0.0-alpha.1 2023-05-08 */
1
+ /*! @azure/msal-node v2.0.0-alpha.2 2023-05-17 */
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;
package/dist/index.d.ts CHANGED
@@ -1,42 +1,42 @@
1
- /**
2
- * @packageDocumentation
3
- * @module @azure/msal-node
4
- */
5
- /**
6
- * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
7
- * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
8
- */
9
- import * as internals from "./internals";
10
- export { internals };
11
- export { IPublicClientApplication } from "./client/IPublicClientApplication";
12
- export { IConfidentialClientApplication } from "./client/IConfidentialClientApplication";
13
- export { ITokenCache } from "./cache/ITokenCache";
14
- export { ICacheClient } from "./cache/distributed/ICacheClient";
15
- export { IPartitionManager } from "./cache/distributed/IPartitionManager";
16
- export { ILoopbackClient } from "./network/ILoopbackClient";
17
- export { PublicClientApplication } from "./client/PublicClientApplication";
18
- export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication";
19
- export { ClientApplication } from "./client/ClientApplication";
20
- export { ClientCredentialClient } from "./client/ClientCredentialClient";
21
- export { DeviceCodeClient } from "./client/DeviceCodeClient";
22
- export { OnBehalfOfClient } from "./client/OnBehalfOfClient";
23
- export { UsernamePasswordClient } from "./client/UsernamePasswordClient";
24
- export { Configuration, buildAppConfiguration, NodeAuthOptions, NodeSystemOptions, CacheOptions, } from "./config/Configuration";
25
- export { ClientAssertion } from "./client/ClientAssertion";
26
- export { TokenCache } from "./cache/TokenCache";
27
- export { NodeStorage } from "./cache/NodeStorage";
28
- export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes";
29
- export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin";
30
- export { CryptoProvider } from "./crypto/CryptoProvider";
31
- export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest";
32
- export type { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest";
33
- export type { ClientCredentialRequest } from "./request/ClientCredentialRequest";
34
- export type { DeviceCodeRequest } from "./request/DeviceCodeRequest";
35
- export type { OnBehalfOfRequest } from "./request/OnBehalfOfRequest";
36
- export type { UsernamePasswordRequest } from "./request/UsernamePasswordRequest";
37
- export type { RefreshTokenRequest } from "./request/RefreshTokenRequest";
38
- export type { SilentFlowRequest } from "./request/SilentFlowRequest";
39
- export type { InteractiveRequest } from "./request/InteractiveRequest";
40
- export { PromptValue, ResponseMode, AuthorizationCodePayload, AuthenticationResult, AccountInfo, ValidCacheType, AuthError, AuthErrorMessage, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache, AzureCloudInstance, AzureCloudOptions, IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, } from "@azure/msal-common";
41
- export { version } from "./packageMetadata";
1
+ /**
2
+ * @packageDocumentation
3
+ * @module @azure/msal-node
4
+ */
5
+ /**
6
+ * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
7
+ * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
8
+ */
9
+ import * as internals from "./internals";
10
+ export { internals };
11
+ export { IPublicClientApplication } from "./client/IPublicClientApplication";
12
+ export { IConfidentialClientApplication } from "./client/IConfidentialClientApplication";
13
+ export { ITokenCache } from "./cache/ITokenCache";
14
+ export { ICacheClient } from "./cache/distributed/ICacheClient";
15
+ export { IPartitionManager } from "./cache/distributed/IPartitionManager";
16
+ export { ILoopbackClient } from "./network/ILoopbackClient";
17
+ export { PublicClientApplication } from "./client/PublicClientApplication";
18
+ export { ConfidentialClientApplication } from "./client/ConfidentialClientApplication";
19
+ export { ClientApplication } from "./client/ClientApplication";
20
+ export { ClientCredentialClient } from "./client/ClientCredentialClient";
21
+ export { DeviceCodeClient } from "./client/DeviceCodeClient";
22
+ export { OnBehalfOfClient } from "./client/OnBehalfOfClient";
23
+ export { UsernamePasswordClient } from "./client/UsernamePasswordClient";
24
+ export { Configuration, buildAppConfiguration, NodeAuthOptions, NodeSystemOptions, CacheOptions, } from "./config/Configuration";
25
+ export { ClientAssertion } from "./client/ClientAssertion";
26
+ export { TokenCache } from "./cache/TokenCache";
27
+ export { NodeStorage } from "./cache/NodeStorage";
28
+ export { CacheKVStore, JsonCache, InMemoryCache, SerializedAccountEntity, SerializedIdTokenEntity, SerializedAccessTokenEntity, SerializedAppMetadataEntity, SerializedRefreshTokenEntity, } from "./cache/serializer/SerializerTypes";
29
+ export { DistributedCachePlugin } from "./cache/distributed/DistributedCachePlugin";
30
+ export { CryptoProvider } from "./crypto/CryptoProvider";
31
+ export type { AuthorizationCodeRequest } from "./request/AuthorizationCodeRequest";
32
+ export type { AuthorizationUrlRequest } from "./request/AuthorizationUrlRequest";
33
+ export type { ClientCredentialRequest } from "./request/ClientCredentialRequest";
34
+ export type { DeviceCodeRequest } from "./request/DeviceCodeRequest";
35
+ export type { OnBehalfOfRequest } from "./request/OnBehalfOfRequest";
36
+ export type { UsernamePasswordRequest } from "./request/UsernamePasswordRequest";
37
+ export type { RefreshTokenRequest } from "./request/RefreshTokenRequest";
38
+ export type { SilentFlowRequest } from "./request/SilentFlowRequest";
39
+ export type { InteractiveRequest } from "./request/InteractiveRequest";
40
+ export { PromptValue, ResponseMode, AuthorizationCodePayload, AuthenticationResult, AccountInfo, ValidCacheType, AuthError, AuthErrorMessage, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache, AzureCloudInstance, AzureCloudOptions, IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, } from "@azure/msal-common";
41
+ export { version } from "./packageMetadata";
42
42
  //# sourceMappingURL=index.d.ts.map
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.0.0-alpha.1 2023-05-08 */
1
+ /*! @azure/msal-node v2.0.0-alpha.2 2023-05-17 */
2
2
  'use strict';
3
3
  import * as internals from './internals.esm.js';
4
4
  export { internals };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.0.0-alpha.1 2023-05-08 */
1
+ /*! @azure/msal-node v2.0.0-alpha.2 2023-05-17 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1,7 +1,7 @@
1
- /**
2
- * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
3
- * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
4
- */
5
- export { Serializer } from "./cache/serializer/Serializer";
6
- export { Deserializer } from "./cache/serializer/Deserializer";
1
+ /**
2
+ * Warning: This set of exports is purely intended to be used by other MSAL libraries, and should be considered potentially unstable. We strongly discourage using them directly, you do so at your own risk.
3
+ * Breaking changes to these APIs will be shipped under a minor version, instead of a major version.
4
+ */
5
+ export { Serializer } from "./cache/serializer/Serializer";
6
+ export { Deserializer } from "./cache/serializer/Deserializer";
7
7
  //# sourceMappingURL=internals.d.ts.map
@@ -1,10 +1,10 @@
1
- /*! @azure/msal-node v2.0.0-alpha.1 2023-05-08 */
1
+ /*! @azure/msal-node v2.0.0-alpha.2 2023-05-17 */
2
2
  'use strict';
3
3
  export { Serializer } from './cache/serializer/Serializer.esm.js';
4
4
  export { Deserializer } from './cache/serializer/Deserializer.esm.js';
5
5
 
6
- /*
7
- * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Licensed under the MIT License.
6
+ /*
7
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8
+ * Licensed under the MIT License.
9
9
  */
10
10
  //# sourceMappingURL=internals.esm.js.map
package/dist/internals.js CHANGED
@@ -1,13 +1,13 @@
1
- /*! @azure/msal-node v2.0.0-alpha.1 2023-05-08 */
1
+ /*! @azure/msal-node v2.0.0-alpha.2 2023-05-17 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
5
  var Serializer = require('./cache/serializer/Serializer.js');
6
6
  var Deserializer = require('./cache/serializer/Deserializer.js');
7
7
 
8
- /*
9
- * Copyright (c) Microsoft Corporation. All rights reserved.
10
- * Licensed under the MIT License.
8
+ /*
9
+ * Copyright (c) Microsoft Corporation. All rights reserved.
10
+ * Licensed under the MIT License.
11
11
  */
12
12
 
13
13
  exports.Serializer = Serializer.Serializer;
@@ -1,26 +1,26 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common";
4
- import http from "http";
5
- import https from "https";
6
- /**
7
- * This class implements the API for network requests.
8
- */
9
- export declare class HttpClient implements INetworkModule {
10
- private proxyUrl;
11
- private customAgentOptions;
12
- constructor(proxyUrl?: string, customAgentOptions?: http.AgentOptions | https.AgentOptions);
13
- /**
14
- * Http Get request
15
- * @param url
16
- * @param options
17
- */
18
- sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
19
- /**
20
- * Http Post request
21
- * @param url
22
- * @param options
23
- */
24
- sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions, cancellationToken?: number): Promise<NetworkResponse<T>>;
25
- }
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import { INetworkModule, NetworkRequestOptions, NetworkResponse } from "@azure/msal-common";
4
+ import http from "http";
5
+ import https from "https";
6
+ /**
7
+ * This class implements the API for network requests.
8
+ */
9
+ export declare class HttpClient implements INetworkModule {
10
+ private proxyUrl;
11
+ private customAgentOptions;
12
+ constructor(proxyUrl?: string, customAgentOptions?: http.AgentOptions | https.AgentOptions);
13
+ /**
14
+ * Http Get request
15
+ * @param url
16
+ * @param options
17
+ */
18
+ sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<NetworkResponse<T>>;
19
+ /**
20
+ * Http Post request
21
+ * @param url
22
+ * @param options
23
+ */
24
+ sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions, cancellationToken?: number): Promise<NetworkResponse<T>>;
25
+ }
26
26
  //# sourceMappingURL=HttpClient.d.ts.map