@azure/msal-node 2.1.0 → 2.2.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.
Files changed (95) hide show
  1. package/dist/cache/NodeStorage.cjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +1 -1
  3. package/dist/cache/TokenCache.cjs +1 -1
  4. package/dist/cache/TokenCache.mjs +1 -1
  5. package/dist/cache/distributed/DistributedCachePlugin.cjs +1 -1
  6. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  7. package/dist/cache/serializer/Deserializer.cjs +1 -1
  8. package/dist/cache/serializer/Deserializer.mjs +1 -1
  9. package/dist/cache/serializer/Serializer.cjs +1 -1
  10. package/dist/cache/serializer/Serializer.mjs +1 -1
  11. package/dist/client/ClientApplication.cjs +2 -2
  12. package/dist/client/ClientApplication.cjs.map +1 -1
  13. package/dist/client/ClientApplication.d.ts.map +1 -1
  14. package/dist/client/ClientApplication.mjs +3 -3
  15. package/dist/client/ClientApplication.mjs.map +1 -1
  16. package/dist/client/ClientAssertion.cjs +2 -2
  17. package/dist/client/ClientAssertion.cjs.map +1 -1
  18. package/dist/client/ClientAssertion.d.ts.map +1 -1
  19. package/dist/client/ClientAssertion.mjs +3 -3
  20. package/dist/client/ClientAssertion.mjs.map +1 -1
  21. package/dist/client/ClientCredentialClient.cjs +22 -23
  22. package/dist/client/ClientCredentialClient.cjs.map +1 -1
  23. package/dist/client/ClientCredentialClient.d.ts +0 -1
  24. package/dist/client/ClientCredentialClient.d.ts.map +1 -1
  25. package/dist/client/ClientCredentialClient.mjs +23 -24
  26. package/dist/client/ClientCredentialClient.mjs.map +1 -1
  27. package/dist/client/ConfidentialClientApplication.cjs +4 -4
  28. package/dist/client/ConfidentialClientApplication.cjs.map +1 -1
  29. package/dist/client/ConfidentialClientApplication.d.ts.map +1 -1
  30. package/dist/client/ConfidentialClientApplication.mjs +5 -5
  31. package/dist/client/ConfidentialClientApplication.mjs.map +1 -1
  32. package/dist/client/DeviceCodeClient.cjs +6 -6
  33. package/dist/client/DeviceCodeClient.cjs.map +1 -1
  34. package/dist/client/DeviceCodeClient.d.ts.map +1 -1
  35. package/dist/client/DeviceCodeClient.mjs +7 -7
  36. package/dist/client/DeviceCodeClient.mjs.map +1 -1
  37. package/dist/client/OnBehalfOfClient.cjs +4 -4
  38. package/dist/client/OnBehalfOfClient.cjs.map +1 -1
  39. package/dist/client/OnBehalfOfClient.d.ts.map +1 -1
  40. package/dist/client/OnBehalfOfClient.mjs +5 -5
  41. package/dist/client/OnBehalfOfClient.mjs.map +1 -1
  42. package/dist/client/PublicClientApplication.cjs +56 -9
  43. package/dist/client/PublicClientApplication.cjs.map +1 -1
  44. package/dist/client/PublicClientApplication.d.ts +6 -0
  45. package/dist/client/PublicClientApplication.d.ts.map +1 -1
  46. package/dist/client/PublicClientApplication.mjs +58 -11
  47. package/dist/client/PublicClientApplication.mjs.map +1 -1
  48. package/dist/client/UsernamePasswordClient.cjs +1 -1
  49. package/dist/client/UsernamePasswordClient.mjs +1 -1
  50. package/dist/config/Configuration.cjs +1 -1
  51. package/dist/config/Configuration.mjs +1 -1
  52. package/dist/crypto/CryptoProvider.cjs +1 -1
  53. package/dist/crypto/CryptoProvider.mjs +1 -1
  54. package/dist/crypto/GuidGenerator.cjs +1 -1
  55. package/dist/crypto/GuidGenerator.mjs +1 -1
  56. package/dist/crypto/HashUtils.cjs +1 -1
  57. package/dist/crypto/HashUtils.mjs +1 -1
  58. package/dist/crypto/PkceGenerator.cjs +1 -1
  59. package/dist/crypto/PkceGenerator.mjs +1 -1
  60. package/dist/error/NodeAuthError.cjs +1 -1
  61. package/dist/error/NodeAuthError.mjs +1 -1
  62. package/dist/index.cjs +17 -1
  63. package/dist/index.cjs.map +1 -1
  64. package/dist/index.d.ts +1 -1
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.mjs +2 -2
  67. package/dist/internals.cjs +1 -1
  68. package/dist/internals.mjs +1 -1
  69. package/dist/network/HttpClient.cjs +1 -1
  70. package/dist/network/HttpClient.mjs +1 -1
  71. package/dist/network/LoopbackClient.cjs +16 -24
  72. package/dist/network/LoopbackClient.cjs.map +1 -1
  73. package/dist/network/LoopbackClient.d.ts.map +1 -1
  74. package/dist/network/LoopbackClient.mjs +17 -25
  75. package/dist/network/LoopbackClient.mjs.map +1 -1
  76. package/dist/packageMetadata.cjs +2 -2
  77. package/dist/packageMetadata.d.ts +1 -1
  78. package/dist/packageMetadata.mjs +2 -2
  79. package/dist/utils/Constants.cjs +1 -1
  80. package/dist/utils/Constants.mjs +1 -1
  81. package/dist/utils/EncodingUtils.cjs +1 -1
  82. package/dist/utils/EncodingUtils.mjs +1 -1
  83. package/dist/utils/NetworkUtils.cjs +1 -1
  84. package/dist/utils/NetworkUtils.mjs +1 -1
  85. package/package.json +2 -2
  86. package/src/client/ClientApplication.ts +3 -2
  87. package/src/client/ClientAssertion.ts +7 -2
  88. package/src/client/ClientCredentialClient.ts +32 -34
  89. package/src/client/ConfidentialClientApplication.ts +11 -4
  90. package/src/client/DeviceCodeClient.ts +16 -7
  91. package/src/client/OnBehalfOfClient.ts +11 -4
  92. package/src/client/PublicClientApplication.ts +69 -13
  93. package/src/index.ts +5 -0
  94. package/src/network/LoopbackClient.ts +18 -33
  95. package/src/packageMetadata.ts +1 -1
@@ -1,6 +1,6 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
- import { BaseClient, TimeUtils, ResponseHandler, UrlString, RequestParameterBuilder, ClientAuthError, Constants, ServerError, GrantType, StringUtils } from '@azure/msal-common';
3
+ import { BaseClient, TimeUtils, ResponseHandler, UrlString, RequestParameterBuilder, createClientAuthError, ClientAuthErrorCodes, Constants, createAuthError, AuthErrorCodes, GrantType, StringUtils } from '@azure/msal-common';
4
4
 
5
5
  /*
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -106,20 +106,20 @@ class DeviceCodeClient extends BaseClient {
106
106
  continuePolling(deviceCodeExpirationTime, userSpecifiedTimeout, userSpecifiedCancelFlag) {
107
107
  if (userSpecifiedCancelFlag) {
108
108
  this.logger.error("Token request cancelled by setting DeviceCodeRequest.cancel = true");
109
- throw ClientAuthError.createDeviceCodeCancelledError();
109
+ throw createClientAuthError(ClientAuthErrorCodes.deviceCodePollingCancelled);
110
110
  }
111
111
  else if (userSpecifiedTimeout &&
112
112
  userSpecifiedTimeout < deviceCodeExpirationTime &&
113
113
  TimeUtils.nowSeconds() > userSpecifiedTimeout) {
114
114
  this.logger.error(`User defined timeout for device code polling reached. The timeout was set for ${userSpecifiedTimeout}`);
115
- throw ClientAuthError.createUserTimeoutReachedError();
115
+ throw createClientAuthError(ClientAuthErrorCodes.userTimeoutReached);
116
116
  }
117
117
  else if (TimeUtils.nowSeconds() > deviceCodeExpirationTime) {
118
118
  if (userSpecifiedTimeout) {
119
119
  this.logger.verbose(`User specified timeout ignored as the device code has expired before the timeout elapsed. The user specified timeout was set for ${userSpecifiedTimeout}`);
120
120
  }
121
121
  this.logger.error(`Device code expired. Expiration time of device code was ${deviceCodeExpirationTime}`);
122
- throw ClientAuthError.createDeviceCodeExpiredError();
122
+ throw createClientAuthError(ClientAuthErrorCodes.deviceCodeExpired);
123
123
  }
124
124
  return true;
125
125
  }
@@ -165,7 +165,7 @@ class DeviceCodeClient extends BaseClient {
165
165
  else {
166
166
  // for any other error, throw
167
167
  this.logger.info("Unexpected error in polling from the server");
168
- throw ServerError.createPostRequestFailed(response.body.error);
168
+ throw createAuthError(AuthErrorCodes.postRequestFailed, response.body.error);
169
169
  }
170
170
  }
171
171
  else {
@@ -178,7 +178,7 @@ class DeviceCodeClient extends BaseClient {
178
178
  * and in the rare case the conditionals in continuePolling() may not catch everything...
179
179
  */
180
180
  this.logger.error("Polling stopped for unknown reasons.");
181
- throw ClientAuthError.createDeviceCodeUnknownError();
181
+ throw createClientAuthError(ClientAuthErrorCodes.deviceCodeUnknownError);
182
182
  }
183
183
  /**
184
184
  * Creates query parameters and converts to string.
@@ -1 +1 @@
1
- {"version":3,"file":"DeviceCodeClient.mjs","sources":["../../src/client/DeviceCodeClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAKA;AAoBA;;AAEG;AAEa;AAIZ;;;;AAIG,QAAA,KAAA,CAAA,aAAA,CAAA,CAAA;KACsB;AA8BzB;;;AAGG;;AA+BH,IAAA,MAAA,YAAA,CAAA,OAAA,EAAA;;;AAGG,QAAA,MAAA,YAAA,GAAA,SAAA,CAAA,UAAA,EAAA,CAAA;AACH,QAAA,MAAA,QAAA,GAAA,MAA2B,IAAA,CAAA,0BAAS,CAAuB,OAAS,EAAA,kBAAA,CAAA,CAAA;AAYpE,QAAA,MAAA,eAAA,GAAA,IAAA,eAAA,CAAA,IAAA,CAAA,MAAA,CAAA,WAAA,CAAA,QAAA,EAAA,IAAA,CAAA,YAAA,EAAA,IAAA,CAAA,WAAA,EAAA,IAAA,CAAA,MAAA,EAAA,IAAA,CAAA,MAAA,CAAA,iBAAA,EAAA,IAAA,CAAA,MAAA,CAAA,iBAAA,CAAA,CAAA;;;;;AAKG;;AAmCH;;AAEG,IAAA,MAAA,aAAA,CAAA,OAAA,EAAA;AACH,QAAA,MAAyB,qBAAA,GAAA,IAAA,CAAA,0BAAA,CAAA,OAAA,CAAA,CAAA;AA2BzB,QAAA,MAAA,QAAA,GAAA,SAAA,CAAA,iBAAA,CAAA,IAAA,CAAA,SAAA,CAAA,kBAAA,EAAA,qBAAA,CAAA,CAAA;;;;AAIG,YAAA,QAAA,EAAA,IAAA,CAAA,MAAA,CAAA,WAAA,CAAA,QAAA;AACH,YAAQ,SAAe,EAAA,OAAA,CAAA,SAAA;AAiCvB,YAAA,MAAA,EAAA,OAAA,CAAA,MAAA;;;;;AAKG,YAAA,SAAA,EAAA,OAAA,CAAA,SAAA;YACW,MAA0B,EAAA,OAAA,CAAA,MAAA;AAqFxC,SAAA,CAAA;;;;AAIG;AACH;AAqCH;;;;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CAAA,MAAA;;;;;AAKG,YAAA,SAAA,EAAA,OAAA,CAAA,SAAA;YACW,MAA0B,EAAA,OAAA,CAAA,MAAA;AAwFxC,SAAA,CAAA;;;;AAIG;AACH;AAqCH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -50,13 +50,13 @@ class OnBehalfOfClient extends msalCommon.BaseClient {
50
50
  // Must refresh due to non-existent access_token.
51
51
  this.serverTelemetryManager?.setCacheOutcome(msalCommon.CacheOutcome.NO_CACHED_ACCESS_TOKEN);
52
52
  this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties.");
53
- throw msalCommon.ClientAuthError.createRefreshRequiredError();
53
+ throw msalCommon.createClientAuthError(msalCommon.ClientAuthErrorCodes.tokenRefreshRequired);
54
54
  }
55
55
  else if (msalCommon.TimeUtils.isTokenExpired(cachedAccessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) {
56
56
  // Access token expired, will need to renewed
57
57
  this.serverTelemetryManager?.setCacheOutcome(msalCommon.CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
58
58
  this.logger.info(`OnbehalfofFlow:getCachedAuthenticationResult - Cached access token is expired or will expire within ${this.config.systemOptions.tokenRenewalOffsetSeconds} seconds.`);
59
- throw msalCommon.ClientAuthError.createRefreshRequiredError();
59
+ throw msalCommon.createClientAuthError(msalCommon.ClientAuthErrorCodes.tokenRefreshRequired);
60
60
  }
61
61
  // fetch the idToken from cache
62
62
  const cachedIdToken = this.readIdTokenFromCacheForOBO(cachedAccessToken.homeAccountId);
@@ -138,7 +138,7 @@ class OnBehalfOfClient extends msalCommon.BaseClient {
138
138
  return null;
139
139
  }
140
140
  else if (numAccessTokens > 1) {
141
- throw msalCommon.ClientAuthError.createMultipleMatchingTokensInCacheError();
141
+ throw msalCommon.createClientAuthError(msalCommon.ClientAuthErrorCodes.multipleMatchingTokens);
142
142
  }
143
143
  return accessTokens[0];
144
144
  }
@@ -1 +1 @@
1
- {"version":3,"file":"OnBehalfOfClient.cjs","sources":["../../src/client/OnBehalfOfClient.ts"],"sourcesContent":[null],"names":["CacheOutcome"],"mappings":";;;;;;;AAKA;AA6BA;;AAEG;;AAKa;AAIZ;;;AAGG,QAAA,KAAA,CAAA,aAAA,CAAA,CAAA;KACsB;AA8BzB;;;;;;;AAOG,QAAA,IAAA,CAAA,iBAAA,GAAA,MAAA,IAAA,CAAA,WAAA,CAAA,UAAA,CAAA,OAAA,CAAA,YAAA,CAAA,CAAA;YACW,OAA6B,CAAA,SAAA,EAAA;AA6E3C,YAAA,OAAA,MAAA,IAAA,CAAA,mBAAA,CAAA,OAAA,EAAA,IAAA,CAAA,SAAA,EAAA,IAAA,CAAA,iBAAA,CAAA,CAAA;;;;AAIG,SAAA;AACH,QAAA,OAAkC,CAAA,EAAA;AAsBlC;;;;;AAKG;AACH;AAwCA;;;;AAIG;uCAC8B,CAAA,OAAA,EAAA;AAwDjC;;;AAGG;AACH,YAAQ,IAAsB,CAAA,sBAAA,EAAA,eAAA,CAAAA,uBAAA,CAAA,sBAAA,CAAA,CAAA;AA0DjC,YAAA,IAAA,CAAA,MAAA,CAAA,IAAA,CAAA,gGAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"OnBehalfOfClient.cjs","sources":["../../src/client/OnBehalfOfClient.ts"],"sourcesContent":[null],"names":["CacheOutcome"],"mappings":";;;;;;;AAKA;AA8BA;;AAEG;;AAKa;AAIZ;;;AAGG,QAAA,KAAA,CAAA,aAAA,CAAA,CAAA;KACsB;AA8BzB;;;;;;;AAOG,QAAA,IAAA,CAAA,iBAAA,GAAA,MAAA,IAAA,CAAA,WAAA,CAAA,UAAA,CAAA,OAAA,CAAA,YAAA,CAAA,CAAA;YACW,OAA6B,CAAA,SAAA,EAAA;AAiF3C,YAAA,OAAA,MAAA,IAAA,CAAA,mBAAA,CAAA,OAAA,EAAA,IAAA,CAAA,SAAA,EAAA,IAAA,CAAA,iBAAA,CAAA,CAAA;;;;AAIG,SAAA;AACH,QAAA,OAAkC,CAAA,EAAA;AAsBlC;;;;;AAKG;AACH;AA0CA;;;;AAIG;uCAC8B,CAAA,OAAA,EAAA;AAwDjC;;;AAGG;AACH,YAAQ,IAAsB,CAAA,sBAAA,EAAA,eAAA,CAAAA,uBAAA,CAAA,sBAAA,CAAA,CAAA;AA0DjC,YAAA,IAAA,CAAA,MAAA,CAAA,IAAA,CAAA,gGAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"OnBehalfOfClient.d.ts","sourceRoot":"","sources":["../../src/client/OnBehalfOfClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,oBAAoB,EAIpB,UAAU,EAGV,mBAAmB,EACnB,uBAAuB,EAa1B,MAAM,oBAAoB,CAAC;AAG5B;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAC5C,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,iBAAiB,CAAS;gBAEtB,aAAa,EAAE,mBAAmB;IAI9C;;;OAGG;IACU,YAAY,CACrB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA4BvC;;;;;;;OAOG;YACW,6BAA6B;IA6E3C;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAsBlC;;;;;OAKG;IACH,OAAO,CAAC,8BAA8B;IAwCtC;;;;OAIG;YACW,mBAAmB;IAwDjC;;;OAGG;IACH,OAAO,CAAC,sBAAsB;CA0DjC"}
1
+ {"version":3,"file":"OnBehalfOfClient.d.ts","sourceRoot":"","sources":["../../src/client/OnBehalfOfClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAKH,oBAAoB,EAIpB,UAAU,EAGV,mBAAmB,EACnB,uBAAuB,EAc1B,MAAM,oBAAoB,CAAC;AAG5B;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAC5C,OAAO,CAAC,QAAQ,CAAW;IAC3B,OAAO,CAAC,iBAAiB,CAAS;gBAEtB,aAAa,EAAE,mBAAmB;IAI9C;;;OAGG;IACU,YAAY,CACrB,OAAO,EAAE,uBAAuB,GACjC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA4BvC;;;;;;;OAOG;YACW,6BAA6B;IAiF3C;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;IAsBlC;;;;;OAKG;IACH,OAAO,CAAC,8BAA8B;IA0CtC;;;;OAIG;YACW,mBAAmB;IAwDjC;;;OAGG;IACH,OAAO,CAAC,sBAAsB;CA0DjC"}
@@ -1,6 +1,6 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
- import { BaseClient, ScopeSet, CacheOutcome, ClientAuthError, TimeUtils, AuthToken, ResponseHandler, AuthenticationScheme, CredentialType, UrlString, RequestParameterBuilder, GrantType, AADServerParamKeys, Constants } from '@azure/msal-common';
3
+ import { BaseClient, ScopeSet, CacheOutcome, createClientAuthError, ClientAuthErrorCodes, TimeUtils, AuthToken, ResponseHandler, AuthenticationScheme, CredentialType, UrlString, RequestParameterBuilder, GrantType, AADServerParamKeys, Constants } from '@azure/msal-common';
4
4
  import { EncodingUtils } from '../utils/EncodingUtils.mjs';
5
5
 
6
6
  /*
@@ -48,13 +48,13 @@ class OnBehalfOfClient extends BaseClient {
48
48
  // Must refresh due to non-existent access_token.
49
49
  this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.NO_CACHED_ACCESS_TOKEN);
50
50
  this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties.");
51
- throw ClientAuthError.createRefreshRequiredError();
51
+ throw createClientAuthError(ClientAuthErrorCodes.tokenRefreshRequired);
52
52
  }
53
53
  else if (TimeUtils.isTokenExpired(cachedAccessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds)) {
54
54
  // Access token expired, will need to renewed
55
55
  this.serverTelemetryManager?.setCacheOutcome(CacheOutcome.CACHED_ACCESS_TOKEN_EXPIRED);
56
56
  this.logger.info(`OnbehalfofFlow:getCachedAuthenticationResult - Cached access token is expired or will expire within ${this.config.systemOptions.tokenRenewalOffsetSeconds} seconds.`);
57
- throw ClientAuthError.createRefreshRequiredError();
57
+ throw createClientAuthError(ClientAuthErrorCodes.tokenRefreshRequired);
58
58
  }
59
59
  // fetch the idToken from cache
60
60
  const cachedIdToken = this.readIdTokenFromCacheForOBO(cachedAccessToken.homeAccountId);
@@ -136,7 +136,7 @@ class OnBehalfOfClient extends BaseClient {
136
136
  return null;
137
137
  }
138
138
  else if (numAccessTokens > 1) {
139
- throw ClientAuthError.createMultipleMatchingTokensInCacheError();
139
+ throw createClientAuthError(ClientAuthErrorCodes.multipleMatchingTokens);
140
140
  }
141
141
  return accessTokens[0];
142
142
  }
@@ -1 +1 @@
1
- {"version":3,"file":"OnBehalfOfClient.mjs","sources":["../../src/client/OnBehalfOfClient.ts"],"sourcesContent":[null],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BAAA,CAAA,OAAA,EAAA,IAAA,CAAA,SAAA,EAAA,IAAA,CAAA,iBAAA,CAAA,CAAA;;;;AAIG,SAAA;AACH,QAAA,OAAkC,CAAA,EAAA;AAsBlC;;;;;AAKG;AACH;AA0CA;;;;AAIG;uCAC8B,CAAA,OAAA,EAAA;AAwDjC;;;AAGG;AACH,YAAQ,IAAsB,CAAA,sBAAA,EAAA,eAAA,CAAA,YAAA,CAAA,sBAAA,CAAA,CAAA;AA0DjC,YAAA,IAAA,CAAA,MAAA,CAAA,IAAA,CAAA,gGAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -100,10 +100,20 @@ class PublicClientApplication extends ClientApplication.ClientApplication {
100
100
  }
101
101
  const { verifier, challenge } = await this.cryptoProvider.generatePkceCodes();
102
102
  const loopbackClient = customLoopbackClient || new LoopbackClient.LoopbackClient();
103
- let authCodeListener;
103
+ let authCodeResponse = {};
104
+ let authCodeListenerError = null;
104
105
  try {
105
- authCodeListener = loopbackClient.listenForAuthCode(successTemplate, errorTemplate);
106
- const redirectUri = loopbackClient.getRedirectUri();
106
+ const authCodeListener = loopbackClient
107
+ .listenForAuthCode(successTemplate, errorTemplate)
108
+ .then((response) => {
109
+ authCodeResponse = response;
110
+ })
111
+ .catch((e) => {
112
+ // Store the promise instead of throwing so we can control when its thrown
113
+ authCodeListenerError = e;
114
+ });
115
+ // Wait for server to be listening
116
+ const redirectUri = await this.waitForRedirectUri(loopbackClient);
107
117
  const validRequest = {
108
118
  ...remainingProperties,
109
119
  correlationId: correlationId,
@@ -115,9 +125,10 @@ class PublicClientApplication extends ClientApplication.ClientApplication {
115
125
  };
116
126
  const authCodeUrl = await this.getAuthCodeUrl(validRequest);
117
127
  await openBrowser(authCodeUrl);
118
- const authCodeResponse = await authCodeListener.finally(() => {
119
- loopbackClient.closeServer();
120
- });
128
+ await authCodeListener;
129
+ if (authCodeListenerError) {
130
+ throw authCodeListenerError;
131
+ }
121
132
  if (authCodeResponse.error) {
122
133
  throw new msalCommon.ServerError(authCodeResponse.error, authCodeResponse.error_description, authCodeResponse.suberror);
123
134
  }
@@ -133,9 +144,8 @@ class PublicClientApplication extends ClientApplication.ClientApplication {
133
144
  };
134
145
  return this.acquireTokenByCode(tokenRequest);
135
146
  }
136
- catch (e) {
147
+ finally {
137
148
  loopbackClient.closeServer();
138
- throw e;
139
149
  }
140
150
  }
141
151
  /**
@@ -190,6 +200,43 @@ class PublicClientApplication extends ClientApplication.ClientApplication {
190
200
  }
191
201
  return this.getTokenCache().getAllAccounts();
192
202
  }
203
+ /**
204
+ * Attempts to retrieve the redirectUri from the loopback server. If the loopback server does not start listening for requests within the timeout this will throw.
205
+ * @param loopbackClient
206
+ * @returns
207
+ */
208
+ async waitForRedirectUri(loopbackClient) {
209
+ return new Promise((resolve, reject) => {
210
+ let ticks = 0;
211
+ const id = setInterval(() => {
212
+ if (Constants.LOOPBACK_SERVER_CONSTANTS.TIMEOUT_MS /
213
+ Constants.LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS <
214
+ ticks) {
215
+ clearInterval(id);
216
+ reject(NodeAuthError.NodeAuthError.createLoopbackServerTimeoutError());
217
+ return;
218
+ }
219
+ try {
220
+ const r = loopbackClient.getRedirectUri();
221
+ clearInterval(id);
222
+ resolve(r);
223
+ return;
224
+ }
225
+ catch (e) {
226
+ if (e instanceof msalCommon.AuthError &&
227
+ e.errorCode ===
228
+ NodeAuthError.NodeAuthErrorMessage.noLoopbackServerExists.code) {
229
+ // Loopback server is not listening yet
230
+ ticks++;
231
+ return;
232
+ }
233
+ clearInterval(id);
234
+ reject(e);
235
+ return;
236
+ }
237
+ }, Constants.LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS);
238
+ });
239
+ }
193
240
  }
194
241
 
195
242
  exports.PublicClientApplication = PublicClientApplication;
@@ -1 +1 @@
1
- {"version":3,"file":"PublicClientApplication.cjs","sources":["../../src/client/PublicClientApplication.ts"],"sourcesContent":[null],"names":["ClientApplication","ApiId"],"mappings":";;;;;;;;;;;AAMA;AAeA;AACA;AACA;;;AAgBG;AACH;;AAKI,MAAA,uBAAA,SAAAA,mCAAA,CAAA;;;;;;;;;;;;;;;;AAgBG;AACS;AAgBZ,IAAA,WAAA,CAAA,aAAA,EAAA;;;;;;;;AAQG,gBAAA,IAAA,CAAA,MAAA,CAAA,OAAA,CAAA,yEAAA,CAAA,CAAA;aACkC;AAsCrC,SAAA;;AAEG;;AA0FH;;;;AAIG;;AA0BH;;;;AAIG,QAAA,MAAA,sBAAA,GAAA,IAAA,CAAA,gCAAA,CAAAC,eAAA,CAAA,wBAAA,EAAA,YAAA,CAAA,aAAA,CAAA,CAAA;QACU,IAAC;AAed,YAAA,MAAA,gBAAA,GAAA,MAAA,IAAA,CAAA,6BAAA,CAAA,YAAA,CAAA,SAAA,EAAA,YAAA,CAAA,aAAA,EAAA,sBAAA,EAAA,SAAA,EAAA,OAAA,CAAA,iBAAA,CAAA,CAAA;;;AAGG,YAAA,OAAA,gBAAA,CAAA,YAAA,CAAA,YAAA,CAAA,CAAA;AACG,SAAA;AAWT,QAAA,OAAA,CAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"PublicClientApplication.cjs","sources":["../../src/client/PublicClientApplication.ts"],"sourcesContent":[null],"names":["ClientApplication","ApiId"],"mappings":";;;;;;;;;;;AAUA;AAeA;AACA;AACA;;;AAgBG;AACH;;AAKI,MAAA,uBAAA,SAAAA,mCAAA,CAAA;;;;;;;;;;;;;;;;AAgBG;AACS;AAgBZ,IAAA,WAAA,CAAA,aAAA,EAAA;;;;;;;;AAQG,gBAAA,IAAA,CAAA,MAAA,CAAA,OAAA,CAAA,yEAAA,CAAA,CAAA;aACkC;AAsCrC,SAAA;;AAEG;;AAkGH;;;;AAIG;;AA0BH;;;;AAIG,QAAA,MAAA,sBAAA,GAAA,IAAA,CAAA,gCAAA,CAAAC,eAAA,CAAA,wBAAA,EAAA,YAAA,CAAA,aAAA,CAAA,CAAA;QACU,IAAC;AAed,YAAA,MAAA,gBAAA,GAAA,MAAA,IAAA,CAAA,6BAAA,CAAA,YAAA,CAAA,SAAA,EAAA,YAAA,CAAA,aAAA,EAAA,sBAAA,EAAA,SAAA,EAAA,OAAA,CAAA,iBAAA,CAAA,CAAA;;;AAGG,YAAA,OAAA,gBAAA,CAAA,YAAA,CAAA,YAAA,CAAA,CAAA;AACG,SAAA;AAYN,QAAA,OAAA,CAAA,EAAA;;;;AAIG,YAAA,sBAAA,CAAA,kBAAA,CAAA,CAAA,CAAA,CAAA;YACW,MAAkB,CAAA,CAAA;AAsCnC,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -62,5 +62,11 @@ export declare class PublicClientApplication extends ClientApplication implement
62
62
  * @returns
63
63
  */
64
64
  getAllAccounts(): Promise<AccountInfo[]>;
65
+ /**
66
+ * Attempts to retrieve the redirectUri from the loopback server. If the loopback server does not start listening for requests within the timeout this will throw.
67
+ * @param loopbackClient
68
+ * @returns
69
+ */
70
+ private waitForRedirectUri;
65
71
  }
66
72
  //# sourceMappingURL=PublicClientApplication.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/client/PublicClientApplication.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,oBAAoB,EAUpB,WAAW,EAGd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D;;;;GAIG;AACH,qBAAa,uBACT,SAAQ,iBACR,YAAW,wBAAwB;IAEnC,OAAO,CAAC,kBAAkB,CAAC,CAAsB;IACjD;;;;;;;;;;;;;;;;OAgBG;gBACS,aAAa,EAAE,aAAa;IAgBxC;;;;;;;;OAQG;IACU,wBAAwB,CACjC,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAoCvC;;OAEG;IACG,uBAAuB,CACzB,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,oBAAoB,CAAC;IAuFhC;;;;OAIG;IACG,kBAAkB,CACpB,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,CAAC;IAuBhC;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAerD;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;CAWjD"}
1
+ {"version":3,"file":"PublicClientApplication.d.ts","sourceRoot":"","sources":["../../src/client/PublicClientApplication.ts"],"names":[],"mappings":"AAUA,OAAO,EACH,oBAAoB,EAUpB,WAAW,EAGd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAI9D;;;;GAIG;AACH,qBAAa,uBACT,SAAQ,iBACR,YAAW,wBAAwB;IAEnC,OAAO,CAAC,kBAAkB,CAAC,CAAsB;IACjD;;;;;;;;;;;;;;;;OAgBG;gBACS,aAAa,EAAE,aAAa;IAgBxC;;;;;;;;OAQG;IACU,wBAAwB,CACjC,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAoCvC;;OAEG;IACG,uBAAuB,CACzB,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,oBAAoB,CAAC;IA+FhC;;;;OAIG;IACG,kBAAkB,CACpB,OAAO,EAAE,iBAAiB,GAC3B,OAAO,CAAC,oBAAoB,CAAC;IAuBhC;;;;OAIG;IACG,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAerD;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;IAY9C;;;;OAIG;YACW,kBAAkB;CAsCnC"}
@@ -1,9 +1,9 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
- import { ApiId, Constants as Constants$1 } from '../utils/Constants.mjs';
3
+ import { ApiId, LOOPBACK_SERVER_CONSTANTS, Constants as Constants$1 } from '../utils/Constants.mjs';
4
4
  import { AuthError, OIDC_DEFAULT_SCOPES, ResponseMode, CodeChallengeMethodValues, ServerError, Constants } from '@azure/msal-common';
5
5
  import { ClientApplication } from './ClientApplication.mjs';
6
- import { NodeAuthError } from '../error/NodeAuthError.mjs';
6
+ import { NodeAuthError, NodeAuthErrorMessage } from '../error/NodeAuthError.mjs';
7
7
  import { LoopbackClient } from '../network/LoopbackClient.mjs';
8
8
  import { DeviceCodeClient } from './DeviceCodeClient.mjs';
9
9
 
@@ -98,10 +98,20 @@ class PublicClientApplication extends ClientApplication {
98
98
  }
99
99
  const { verifier, challenge } = await this.cryptoProvider.generatePkceCodes();
100
100
  const loopbackClient = customLoopbackClient || new LoopbackClient();
101
- let authCodeListener;
101
+ let authCodeResponse = {};
102
+ let authCodeListenerError = null;
102
103
  try {
103
- authCodeListener = loopbackClient.listenForAuthCode(successTemplate, errorTemplate);
104
- const redirectUri = loopbackClient.getRedirectUri();
104
+ const authCodeListener = loopbackClient
105
+ .listenForAuthCode(successTemplate, errorTemplate)
106
+ .then((response) => {
107
+ authCodeResponse = response;
108
+ })
109
+ .catch((e) => {
110
+ // Store the promise instead of throwing so we can control when its thrown
111
+ authCodeListenerError = e;
112
+ });
113
+ // Wait for server to be listening
114
+ const redirectUri = await this.waitForRedirectUri(loopbackClient);
105
115
  const validRequest = {
106
116
  ...remainingProperties,
107
117
  correlationId: correlationId,
@@ -113,9 +123,10 @@ class PublicClientApplication extends ClientApplication {
113
123
  };
114
124
  const authCodeUrl = await this.getAuthCodeUrl(validRequest);
115
125
  await openBrowser(authCodeUrl);
116
- const authCodeResponse = await authCodeListener.finally(() => {
117
- loopbackClient.closeServer();
118
- });
126
+ await authCodeListener;
127
+ if (authCodeListenerError) {
128
+ throw authCodeListenerError;
129
+ }
119
130
  if (authCodeResponse.error) {
120
131
  throw new ServerError(authCodeResponse.error, authCodeResponse.error_description, authCodeResponse.suberror);
121
132
  }
@@ -131,9 +142,8 @@ class PublicClientApplication extends ClientApplication {
131
142
  };
132
143
  return this.acquireTokenByCode(tokenRequest);
133
144
  }
134
- catch (e) {
145
+ finally {
135
146
  loopbackClient.closeServer();
136
- throw e;
137
147
  }
138
148
  }
139
149
  /**
@@ -188,6 +198,43 @@ class PublicClientApplication extends ClientApplication {
188
198
  }
189
199
  return this.getTokenCache().getAllAccounts();
190
200
  }
201
+ /**
202
+ * Attempts to retrieve the redirectUri from the loopback server. If the loopback server does not start listening for requests within the timeout this will throw.
203
+ * @param loopbackClient
204
+ * @returns
205
+ */
206
+ async waitForRedirectUri(loopbackClient) {
207
+ return new Promise((resolve, reject) => {
208
+ let ticks = 0;
209
+ const id = setInterval(() => {
210
+ if (LOOPBACK_SERVER_CONSTANTS.TIMEOUT_MS /
211
+ LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS <
212
+ ticks) {
213
+ clearInterval(id);
214
+ reject(NodeAuthError.createLoopbackServerTimeoutError());
215
+ return;
216
+ }
217
+ try {
218
+ const r = loopbackClient.getRedirectUri();
219
+ clearInterval(id);
220
+ resolve(r);
221
+ return;
222
+ }
223
+ catch (e) {
224
+ if (e instanceof AuthError &&
225
+ e.errorCode ===
226
+ NodeAuthErrorMessage.noLoopbackServerExists.code) {
227
+ // Loopback server is not listening yet
228
+ ticks++;
229
+ return;
230
+ }
231
+ clearInterval(id);
232
+ reject(e);
233
+ return;
234
+ }
235
+ }, LOOPBACK_SERVER_CONSTANTS.INTERVAL_MS);
236
+ });
237
+ }
191
238
  }
192
239
 
193
240
  export { PublicClientApplication };
@@ -1 +1 @@
1
- {"version":3,"file":"PublicClientApplication.mjs","sources":["../../src/client/PublicClientApplication.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAMA;AAeA;AACA;AACA;;;AAgBG;AACH;;AAKI,MAAA,uBAAA,SAAA,iBAAA,CAAA;;;;;;;;;;;;;;;;AAgBG;AACS;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AAA,gBAAA,GAAA,MAAA,IAAA,CAAA,6BAAA,CAAA,YAAA,CAAA,SAAA,EAAA,YAAA,CAAA,aAAA,EAAA,sBAAA,EAAA,SAAA,EAAA,OAAA,CAAA,iBAAA,CAAA,CAAA;;;AAGG,YAAA,OAAA,gBAAA,CAAA,YAAA,CAAA,YAAA,CAAA,CAAA;AACG,SAAA;AAYN,QAAA,OAAA,CAAA,EAAA;;;;AAIG,YAAA,sBAAA,CAAA,kBAAA,CAAA,CAAA,CAAA,CAAA;YACW,MAAkB,CAAA,CAAA;AAsCnC,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import { BaseClient, TimeUtils, ResponseHandler, UrlString, CcsCredentialType, RequestParameterBuilder, GrantType, StringUtils } from '@azure/msal-common';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import { Constants, ProtocolMode, AzureCloudInstance, LogLevel } from '@azure/msal-common';
4
4
  import { HttpClient } from '../network/HttpClient.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import { GuidGenerator } from './GuidGenerator.mjs';
4
4
  import { EncodingUtils } from '../utils/EncodingUtils.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import { v4 } from 'uuid';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import { Hash } from '../utils/Constants.mjs';
4
4
  import crypto from 'crypto';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import { Constants } from '@azure/msal-common';
4
4
  import { RANDOM_OCTET_SIZE, CharSet } from '../utils/Constants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import { AuthError } from '@azure/msal-common';
4
4
 
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -39,6 +39,10 @@ Object.defineProperty(exports, 'AuthError', {
39
39
  enumerable: true,
40
40
  get: function () { return msalCommon.AuthError; }
41
41
  });
42
+ Object.defineProperty(exports, 'AuthErrorCodes', {
43
+ enumerable: true,
44
+ get: function () { return msalCommon.AuthErrorCodes; }
45
+ });
42
46
  Object.defineProperty(exports, 'AuthErrorMessage', {
43
47
  enumerable: true,
44
48
  get: function () { return msalCommon.AuthErrorMessage; }
@@ -51,6 +55,10 @@ Object.defineProperty(exports, 'ClientAuthError', {
51
55
  enumerable: true,
52
56
  get: function () { return msalCommon.ClientAuthError; }
53
57
  });
58
+ Object.defineProperty(exports, 'ClientAuthErrorCodes', {
59
+ enumerable: true,
60
+ get: function () { return msalCommon.ClientAuthErrorCodes; }
61
+ });
54
62
  Object.defineProperty(exports, 'ClientAuthErrorMessage', {
55
63
  enumerable: true,
56
64
  get: function () { return msalCommon.ClientAuthErrorMessage; }
@@ -59,6 +67,10 @@ Object.defineProperty(exports, 'ClientConfigurationError', {
59
67
  enumerable: true,
60
68
  get: function () { return msalCommon.ClientConfigurationError; }
61
69
  });
70
+ Object.defineProperty(exports, 'ClientConfigurationErrorCodes', {
71
+ enumerable: true,
72
+ get: function () { return msalCommon.ClientConfigurationErrorCodes; }
73
+ });
62
74
  Object.defineProperty(exports, 'ClientConfigurationErrorMessage', {
63
75
  enumerable: true,
64
76
  get: function () { return msalCommon.ClientConfigurationErrorMessage; }
@@ -67,6 +79,10 @@ Object.defineProperty(exports, 'InteractionRequiredAuthError', {
67
79
  enumerable: true,
68
80
  get: function () { return msalCommon.InteractionRequiredAuthError; }
69
81
  });
82
+ Object.defineProperty(exports, 'InteractionRequiredAuthErrorCodes', {
83
+ enumerable: true,
84
+ get: function () { return msalCommon.InteractionRequiredAuthErrorCodes; }
85
+ });
70
86
  Object.defineProperty(exports, 'InteractionRequiredAuthErrorMessage', {
71
87
  enumerable: true,
72
88
  get: function () { return msalCommon.InteractionRequiredAuthErrorMessage; }
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -38,6 +38,6 @@ export type { RefreshTokenRequest } from "./request/RefreshTokenRequest.js";
38
38
  export type { SilentFlowRequest } from "./request/SilentFlowRequest.js";
39
39
  export type { InteractiveRequest } from "./request/InteractiveRequest.js";
40
40
  export type { SignOutRequest } from "./request/SignOutRequest.js";
41
- export { PromptValue, ResponseMode, AuthorizationCodePayload, AuthenticationResult, ServerAuthorizationCodeResponse, IdTokenClaims, 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 { PromptValue, ResponseMode, AuthorizationCodePayload, AuthenticationResult, ServerAuthorizationCodeResponse, IdTokenClaims, AccountInfo, ValidCacheType, AuthError, AuthErrorMessage, AuthErrorCodes, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, ServerError, INetworkModule, NetworkRequestOptions, NetworkResponse, Logger, LogLevel, ProtocolMode, ICachePlugin, TokenCacheContext, ISerializableTokenCache, AzureCloudInstance, AzureCloudOptions, IAppTokenProvider, AppTokenProviderParameters, AppTokenProviderResult, INativeBrokerPlugin, } from "@azure/msal-common";
42
42
  export { version } from "./packageMetadata.js";
43
43
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;GAGG;AAEH,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,CAAC;AAGrB,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+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AAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,EAEH,WAAW,EACX,YAAY,EACZ,wBAAwB,EAExB,oBAAoB,EACpB,+BAA+B,EAC/B,aAAa,EAEb,WAAW,EACX,cAAc,EAEd,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAC/B,4BAA4B,EAC5B,iCAAiC,EACjC,mCAAmC,EACnC,WAAW,EAEX,cAAc,EACd,qBAAqB,EACrB,eAAe,EAEf,MAAM,EACN,QAAQ,EAER,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EAEvB,kBAAkB,EAClB,iBAAiB,EAEjB,iBAAiB,EACjB,0BAA0B,EAC1B,sBAAsB,EACtB,mBAAmB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import * as internals from './internals.mjs';
4
4
  export { internals };
@@ -15,6 +15,6 @@ export { TokenCache } from './cache/TokenCache.mjs';
15
15
  export { NodeStorage } from './cache/NodeStorage.mjs';
16
16
  export { DistributedCachePlugin } from './cache/distributed/DistributedCachePlugin.mjs';
17
17
  export { CryptoProvider } from './crypto/CryptoProvider.mjs';
18
- export { AuthError, AuthErrorMessage, AzureCloudInstance, ClientAuthError, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorMessage, LogLevel, Logger, PromptValue, ProtocolMode, ResponseMode, ServerError, TokenCacheContext } from '@azure/msal-common';
18
+ export { AuthError, AuthErrorCodes, AuthErrorMessage, AzureCloudInstance, ClientAuthError, ClientAuthErrorCodes, ClientAuthErrorMessage, ClientConfigurationError, ClientConfigurationErrorCodes, ClientConfigurationErrorMessage, InteractionRequiredAuthError, InteractionRequiredAuthErrorCodes, InteractionRequiredAuthErrorMessage, LogLevel, Logger, PromptValue, ProtocolMode, ResponseMode, ServerError, TokenCacheContext } from '@azure/msal-common';
19
19
  export { version } from './packageMetadata.mjs';
20
20
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  export { Serializer } from './cache/serializer/Serializer.mjs';
4
4
  export { Deserializer } from './cache/serializer/Deserializer.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-node v2.1.0 2023-09-05 */
1
+ /*! @azure/msal-node v2.2.0 2023-10-05 */
2
2
  'use strict';
3
3
  import { HttpStatus } from '@azure/msal-common';
4
4
  import { ProxyStatus, Constants, HttpMethod } from '../utils/Constants.mjs';