opencode-m365-copilot 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-C76uuF-q.mjs → agent-Do_zx7Ev.mjs} +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/{dist-DnyIX7Da.mjs → dist-DoXU8l_x.mjs} +225 -140
- package/dist/{login-j65WhI4A.mjs → login--nn76uPy.mjs} +3 -3
- package/dist/{otpauth.node-DaSYf7YH.mjs → otpauth.node-Cz2NJJEI.mjs} +4 -4
- package/dist/plugin.d.mts +20 -0
- package/dist/plugin.mjs +2 -2
- package/dist/{server-CRfZjKho.mjs → server-MaGKSmnd.mjs} +17 -9
- package/dist/server.d.mts +11 -0
- package/dist/server.mjs +1 -1
- package/package.json +11 -11
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as __toESM, N as __commonJSMin, P as __require } from "./server-
|
|
1
|
+
import { F as __toESM, N as __commonJSMin, P as __require } from "./server-MaGKSmnd.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import http from "http";
|
|
4
4
|
import crypto, { createHash as createHash$1 } from "crypto";
|
|
5
5
|
// node_modules/@azure/msal-node/dist/cache/serializer/Serializer.mjs
|
|
6
|
-
/*! @azure/msal-node v7.1
|
|
6
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
7
7
|
/**
|
|
8
8
|
* This class serializes cache entities to be saved into in-memory object types defined internally
|
|
9
9
|
* @internal
|
|
@@ -142,7 +142,7 @@ var Serializer = class {
|
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
// node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.mjs
|
|
145
|
-
/*! @azure/msal-common v16.
|
|
145
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
146
146
|
const CLIENT_ID = "client_id";
|
|
147
147
|
const REDIRECT_URI = "redirect_uri";
|
|
148
148
|
const RESPONSE_TYPE = "response_type";
|
|
@@ -194,7 +194,7 @@ const ATTRIBUTE_TOKENS = "attribute_tokens";
|
|
|
194
194
|
*/
|
|
195
195
|
const POPUP_ORIGIN_CHECK_DONE = "pocd";
|
|
196
196
|
// node_modules/@azure/msal-common/dist/utils/Constants.mjs
|
|
197
|
-
/*! @azure/msal-common v16.
|
|
197
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
198
198
|
const SKU = "msal.js.common";
|
|
199
199
|
const DEFAULT_AUTHORITY = "https://login.microsoftonline.com/common/";
|
|
200
200
|
const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com";
|
|
@@ -396,7 +396,7 @@ const EncodingTypes = {
|
|
|
396
396
|
UTF8: "utf-8"
|
|
397
397
|
};
|
|
398
398
|
// node_modules/@azure/msal-common/dist/error/AuthError.mjs
|
|
399
|
-
/*! @azure/msal-common v16.
|
|
399
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
400
400
|
function getDefaultErrorMessage(code) {
|
|
401
401
|
return `See https://aka.ms/msal.js.errors#${code} for details`;
|
|
402
402
|
}
|
|
@@ -420,7 +420,7 @@ function createAuthError(code, correlationId, additionalMessage) {
|
|
|
420
420
|
return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage(code));
|
|
421
421
|
}
|
|
422
422
|
// node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs
|
|
423
|
-
/*! @azure/msal-common v16.
|
|
423
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
424
424
|
/**
|
|
425
425
|
* ClientAuthErrorMessage class containing string constants used by error codes and messages.
|
|
426
426
|
*/
|
|
@@ -438,7 +438,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
|
|
|
438
438
|
return new ClientAuthError(errorCode, correlationId, additionalMessage);
|
|
439
439
|
}
|
|
440
440
|
// node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs
|
|
441
|
-
/*! @azure/msal-common v16.
|
|
441
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
442
442
|
const clientInfoDecodingError = "client_info_decoding_error";
|
|
443
443
|
const clientInfoEmptyError = "client_info_empty_error";
|
|
444
444
|
const tokenParsingError = "token_parsing_error";
|
|
@@ -468,7 +468,7 @@ const methodNotImplemented = "method_not_implemented";
|
|
|
468
468
|
const resourceParameterRequired = "resource_parameter_required";
|
|
469
469
|
const misplacedResourceParam = "misplaced_resource_parameter";
|
|
470
470
|
// node_modules/@azure/msal-common/dist/account/ClientInfo.mjs
|
|
471
|
-
/*! @azure/msal-common v16.
|
|
471
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
472
472
|
/**
|
|
473
473
|
* Function to build a client info object from server clientInfo string
|
|
474
474
|
* @param rawClientInfo
|
|
@@ -496,7 +496,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
496
496
|
};
|
|
497
497
|
}
|
|
498
498
|
// node_modules/@azure/msal-common/dist/account/AuthToken.mjs
|
|
499
|
-
/*! @azure/msal-common v16.
|
|
499
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
500
500
|
/**
|
|
501
501
|
* Extract token by decoding the rawToken
|
|
502
502
|
*
|
|
@@ -547,7 +547,7 @@ function getJWSPayload(authToken, correlationId) {
|
|
|
547
547
|
return matches[2];
|
|
548
548
|
}
|
|
549
549
|
// node_modules/@azure/msal-common/dist/account/AccountInfo.mjs
|
|
550
|
-
/*! @azure/msal-common v16.
|
|
550
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
551
551
|
/**
|
|
552
552
|
* Returns true if tenantId matches the utid portion of homeAccountId
|
|
553
553
|
* @param tenantId
|
|
@@ -623,7 +623,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
623
623
|
return updatedAccountInfo;
|
|
624
624
|
}
|
|
625
625
|
// node_modules/@azure/msal-common/dist/authority/AuthorityType.mjs
|
|
626
|
-
/*! @azure/msal-common v16.
|
|
626
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
627
627
|
/**
|
|
628
628
|
* Authority types supported by MSAL.
|
|
629
629
|
*/
|
|
@@ -633,7 +633,7 @@ const AuthorityType = {
|
|
|
633
633
|
Ciam: 3
|
|
634
634
|
};
|
|
635
635
|
// node_modules/@azure/msal-common/dist/account/TokenClaims.mjs
|
|
636
|
-
/*! @azure/msal-common v16.
|
|
636
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
637
637
|
/**
|
|
638
638
|
* Gets tenantId from available ID token claims to set as credential realm with the following precedence:
|
|
639
639
|
* 1. tid - if the token is acquired from an Azure AD tenant tid will be present
|
|
@@ -648,7 +648,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
648
648
|
return null;
|
|
649
649
|
}
|
|
650
650
|
// node_modules/@azure/msal-common/dist/authority/ProtocolMode.mjs
|
|
651
|
-
/*! @azure/msal-common v16.
|
|
651
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
652
652
|
/**
|
|
653
653
|
* Protocol modes supported by MSAL.
|
|
654
654
|
*/
|
|
@@ -668,7 +668,7 @@ const ProtocolMode = {
|
|
|
668
668
|
EAR: "EAR"
|
|
669
669
|
};
|
|
670
670
|
// node_modules/@azure/msal-common/dist/cache/utils/AccountEntityUtils.mjs
|
|
671
|
-
/*! @azure/msal-common v16.
|
|
671
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
672
672
|
/**
|
|
673
673
|
* Returns the AccountInfo interface for this account.
|
|
674
674
|
* @internal
|
|
@@ -764,10 +764,10 @@ function isAccountEntity(entity) {
|
|
|
764
764
|
return entity.hasOwnProperty("homeAccountId") && entity.hasOwnProperty("environment") && entity.hasOwnProperty("realm") && entity.hasOwnProperty("localAccountId") && entity.hasOwnProperty("username") && entity.hasOwnProperty("authorityType");
|
|
765
765
|
}
|
|
766
766
|
// node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs
|
|
767
|
-
/*! @azure/msal-common v16.
|
|
767
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
768
768
|
const postRequestFailed = "post_request_failed";
|
|
769
769
|
// node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs
|
|
770
|
-
/*! @azure/msal-common v16.
|
|
770
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
771
771
|
/**
|
|
772
772
|
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
773
773
|
*/
|
|
@@ -782,7 +782,7 @@ function createClientConfigurationError(errorCode, correlationId) {
|
|
|
782
782
|
return new ClientConfigurationError(errorCode, correlationId);
|
|
783
783
|
}
|
|
784
784
|
// node_modules/@azure/msal-common/dist/network/ResponseHeaders.mjs
|
|
785
|
-
/*! @azure/msal-common v16.
|
|
785
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
786
786
|
const normalizedHeaderRecords = /* @__PURE__ */ new WeakSet();
|
|
787
787
|
/**
|
|
788
788
|
* Creates a lowercase-keyed snapshot without changing header values or the input.
|
|
@@ -808,7 +808,7 @@ function getResponseHeader(headers, name) {
|
|
|
808
808
|
return headerName === void 0 ? void 0 : headers[headerName];
|
|
809
809
|
}
|
|
810
810
|
// node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs
|
|
811
|
-
/*! @azure/msal-common v16.
|
|
811
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
812
812
|
const redirectUriEmpty = "redirect_uri_empty";
|
|
813
813
|
const authorityUriInsecure = "authority_uri_insecure";
|
|
814
814
|
const urlParseError = "url_parse_error";
|
|
@@ -829,12 +829,12 @@ const invalidDpopHtu = "invalid_dpop_htu";
|
|
|
829
829
|
const invalidDpopNonce = "invalid_dpop_nonce";
|
|
830
830
|
const dpopMissingResourceContext = "dpop_missing_resource_context";
|
|
831
831
|
// node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.mjs
|
|
832
|
-
/*! @azure/msal-common v16.
|
|
832
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
833
833
|
function isOpenIdConfigResponse(response) {
|
|
834
834
|
return response.hasOwnProperty("authorization_endpoint") && response.hasOwnProperty("token_endpoint") && response.hasOwnProperty("issuer") && response.hasOwnProperty("jwks_uri");
|
|
835
835
|
}
|
|
836
836
|
// node_modules/@azure/msal-common/dist/utils/StringUtils.mjs
|
|
837
|
-
/*! @azure/msal-common v16.
|
|
837
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
838
838
|
/**
|
|
839
839
|
* @hidden
|
|
840
840
|
*/
|
|
@@ -903,7 +903,7 @@ var StringUtils = class {
|
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
905
|
// node_modules/@azure/msal-common/dist/url/UrlString.mjs
|
|
906
|
-
/*! @azure/msal-common v16.
|
|
906
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
907
907
|
/**
|
|
908
908
|
* Url object class which can perform various transformations on url strings.
|
|
909
909
|
*/
|
|
@@ -1009,7 +1009,7 @@ var UrlString = class UrlString {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
};
|
|
1011
1011
|
// node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.mjs
|
|
1012
|
-
/*! @azure/msal-common v16.
|
|
1012
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
1013
1013
|
const endpointHosts = [
|
|
1014
1014
|
{ host: "login.microsoftonline.com" },
|
|
1015
1015
|
{ host: "login.partner.microsoftonline.cn" },
|
|
@@ -1139,7 +1139,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1139
1139
|
return null;
|
|
1140
1140
|
}
|
|
1141
1141
|
// node_modules/@azure/msal-common/dist/authority/AuthorityOptions.mjs
|
|
1142
|
-
/*! @azure/msal-common v16.
|
|
1142
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
1143
1143
|
const AzureCloudInstance = {
|
|
1144
1144
|
None: "none",
|
|
1145
1145
|
AzurePublic: "https://login.microsoftonline.com",
|
|
@@ -1148,17 +1148,17 @@ const AzureCloudInstance = {
|
|
|
1148
1148
|
AzureUsGovernment: "https://login.microsoftonline.us"
|
|
1149
1149
|
};
|
|
1150
1150
|
// node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.mjs
|
|
1151
|
-
/*! @azure/msal-common v16.
|
|
1151
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
1152
1152
|
function isCloudInstanceDiscoveryResponse(response) {
|
|
1153
1153
|
return response.hasOwnProperty("tenant_discovery_endpoint") && response.hasOwnProperty("metadata");
|
|
1154
1154
|
}
|
|
1155
1155
|
// node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs
|
|
1156
|
-
/*! @azure/msal-common v16.
|
|
1156
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
1157
1157
|
function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
1158
1158
|
return response.hasOwnProperty("error") && response.hasOwnProperty("error_description");
|
|
1159
1159
|
}
|
|
1160
1160
|
// node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvents.mjs
|
|
1161
|
-
/*! @azure/msal-common v16.
|
|
1161
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
1162
1162
|
/**
|
|
1163
1163
|
* Time spent sending/waiting for the response of a request to the token endpoint
|
|
1164
1164
|
*/
|
|
@@ -1216,7 +1216,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
1216
1216
|
*/
|
|
1217
1217
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
1218
1218
|
// node_modules/@azure/msal-common/dist/utils/FunctionWrappers.mjs
|
|
1219
|
-
/*! @azure/msal-common v16.
|
|
1219
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
1220
1220
|
/**
|
|
1221
1221
|
* Wraps a function with a performance measurement.
|
|
1222
1222
|
* Usage: invoke(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction)
|
|
@@ -1284,7 +1284,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
1284
1284
|
};
|
|
1285
1285
|
};
|
|
1286
1286
|
// node_modules/@azure/msal-common/dist/authority/RegionDiscovery.mjs
|
|
1287
|
-
/*! @azure/msal-common v16.
|
|
1287
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
1288
1288
|
var RegionDiscovery = class RegionDiscovery {
|
|
1289
1289
|
constructor(networkInterface, logger, performanceClient, correlationId) {
|
|
1290
1290
|
this.networkInterface = networkInterface;
|
|
@@ -1354,7 +1354,7 @@ var RegionDiscovery = class RegionDiscovery {
|
|
|
1354
1354
|
};
|
|
1355
1355
|
RegionDiscovery.IMDS_OPTIONS = { headers: { Metadata: "true" } };
|
|
1356
1356
|
// node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs
|
|
1357
|
-
/*! @azure/msal-common v16.
|
|
1357
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
1358
1358
|
/**
|
|
1359
1359
|
* Utility functions for managing date and time operations.
|
|
1360
1360
|
*/
|
|
@@ -1398,7 +1398,7 @@ function delay(t, value) {
|
|
|
1398
1398
|
return new Promise((resolve) => setTimeout(() => resolve(value), t));
|
|
1399
1399
|
}
|
|
1400
1400
|
// node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs
|
|
1401
|
-
/*! @azure/msal-common v16.
|
|
1401
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
1402
1402
|
/**
|
|
1403
1403
|
* Create IdTokenEntity
|
|
1404
1404
|
* @param homeAccountId
|
|
@@ -1597,7 +1597,7 @@ function serializeAttributeTokens(attributeTokens) {
|
|
|
1597
1597
|
return [...attributeTokens].sort().join(" ");
|
|
1598
1598
|
}
|
|
1599
1599
|
// node_modules/@azure/msal-common/dist/authority/Authority.mjs
|
|
1600
|
-
/*! @azure/msal-common v16.
|
|
1600
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
1601
1601
|
/**
|
|
1602
1602
|
* The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the
|
|
1603
1603
|
* endpoint. It will store the pertinent config data in this object for use during token calls.
|
|
@@ -2330,7 +2330,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
2330
2330
|
};
|
|
2331
2331
|
}
|
|
2332
2332
|
// node_modules/@azure/msal-common/dist/authority/AuthorityFactory.mjs
|
|
2333
|
-
/*! @azure/msal-common v16.
|
|
2333
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
2334
2334
|
/**
|
|
2335
2335
|
* Create an authority object of the correct type based on the url
|
|
2336
2336
|
* Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs)
|
|
@@ -2356,7 +2356,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
2356
2356
|
}
|
|
2357
2357
|
}
|
|
2358
2358
|
// node_modules/@azure/msal-common/dist/request/ScopeSet.mjs
|
|
2359
|
-
/*! @azure/msal-common v16.
|
|
2359
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
2360
2360
|
/**
|
|
2361
2361
|
* The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes
|
|
2362
2362
|
* the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions
|
|
@@ -2507,7 +2507,7 @@ var ScopeSet = class ScopeSet {
|
|
|
2507
2507
|
}
|
|
2508
2508
|
};
|
|
2509
2509
|
// node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs
|
|
2510
|
-
/*! @azure/msal-common v16.
|
|
2510
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
2511
2511
|
function instrumentBrokerParams(parameters, correlationId, performanceClient) {
|
|
2512
2512
|
if (!correlationId) return;
|
|
2513
2513
|
const clientId = parameters.get(CLIENT_ID);
|
|
@@ -2927,7 +2927,7 @@ function addAttributeTokens(parameters, attributeTokens) {
|
|
|
2927
2927
|
else parameters.delete(ATTRIBUTE_TOKENS);
|
|
2928
2928
|
}
|
|
2929
2929
|
// node_modules/@azure/msal-common/dist/utils/UrlUtils.mjs
|
|
2930
|
-
/*! @azure/msal-common v16.
|
|
2930
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
2931
2931
|
/**
|
|
2932
2932
|
* Parses hash string from given string. Returns empty string if no hash symbol is found.
|
|
2933
2933
|
* @param hashString
|
|
@@ -2964,7 +2964,7 @@ function mapToQueryString(parameters) {
|
|
|
2964
2964
|
return queryParameterArray.join("&");
|
|
2965
2965
|
}
|
|
2966
2966
|
// node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs
|
|
2967
|
-
/*! @azure/msal-common v16.
|
|
2967
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
2968
2968
|
/**
|
|
2969
2969
|
* Shared JOSE algorithm literals used by MSAL package internals.
|
|
2970
2970
|
* @internal
|
|
@@ -3007,7 +3007,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
3007
3007
|
}
|
|
3008
3008
|
};
|
|
3009
3009
|
// node_modules/@azure/msal-common/dist/crypto/ITokenBindingKeyManager.mjs
|
|
3010
|
-
/*! @azure/msal-common v16.
|
|
3010
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
3011
3011
|
/**
|
|
3012
3012
|
* Default token-binding key manager used when a platform-specific implementation
|
|
3013
3013
|
* has not been provided.
|
|
@@ -3025,7 +3025,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
|
|
|
3025
3025
|
}
|
|
3026
3026
|
};
|
|
3027
3027
|
// node_modules/@azure/msal-common/dist/logger/Logger.mjs
|
|
3028
|
-
/*! @azure/msal-common v16.
|
|
3028
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
3029
3029
|
/**
|
|
3030
3030
|
* Log message level.
|
|
3031
3031
|
*/
|
|
@@ -3255,15 +3255,15 @@ var Logger = class Logger {
|
|
|
3255
3255
|
}
|
|
3256
3256
|
};
|
|
3257
3257
|
// node_modules/@azure/msal-common/dist/packageMetadata.mjs
|
|
3258
|
-
/*! @azure/msal-common v16.
|
|
3258
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
3259
3259
|
const name$1 = "@azure/msal-common";
|
|
3260
|
-
const version$1 = "16.
|
|
3260
|
+
const version$1 = "16.16.1";
|
|
3261
3261
|
// node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs
|
|
3262
|
-
/*! @azure/msal-common v16.
|
|
3262
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
3263
3263
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
3264
3264
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
3265
3265
|
// node_modules/@azure/msal-common/dist/error/CacheError.mjs
|
|
3266
|
-
/*! @azure/msal-common v16.
|
|
3266
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
3267
3267
|
/**
|
|
3268
3268
|
* Error thrown when there is an error with the cache
|
|
3269
3269
|
*/
|
|
@@ -3288,7 +3288,7 @@ function createCacheError(e) {
|
|
|
3288
3288
|
else return new CacheError(e.name, e.message);
|
|
3289
3289
|
}
|
|
3290
3290
|
// node_modules/@azure/msal-common/dist/cache/CacheManager.mjs
|
|
3291
|
-
/*! @azure/msal-common v16.
|
|
3291
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
3292
3292
|
/**
|
|
3293
3293
|
* Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens.
|
|
3294
3294
|
* @internal
|
|
@@ -3437,13 +3437,15 @@ var CacheManager = class {
|
|
|
3437
3437
|
};
|
|
3438
3438
|
const tokenKeys = this.getTokenKeys();
|
|
3439
3439
|
const currentScopes = ScopeSet.fromString(credential.target, correlationId);
|
|
3440
|
+
const accessTokenKeysToRemove = [];
|
|
3440
3441
|
tokenKeys.accessToken.forEach((key) => {
|
|
3441
3442
|
if (!this.accessTokenKeyMatchesFilter(key, accessTokenFilter, false)) return;
|
|
3442
3443
|
const tokenEntity = this.getAccessTokenCredential(key, correlationId);
|
|
3443
3444
|
if (tokenEntity && this.credentialMatchesFilter(tokenEntity, accessTokenFilter, correlationId)) {
|
|
3444
|
-
if (ScopeSet.fromString(tokenEntity.target, correlationId).intersectingScopeSets(currentScopes))
|
|
3445
|
+
if (ScopeSet.fromString(tokenEntity.target, correlationId).intersectingScopeSets(currentScopes)) accessTokenKeysToRemove.push(key);
|
|
3445
3446
|
}
|
|
3446
3447
|
});
|
|
3448
|
+
for (const key of accessTokenKeysToRemove) await this.removeAccessTokenAndTokenBindingKey(key, correlationId, credential.keyId);
|
|
3447
3449
|
await this.setAccessTokenCredential(credential, correlationId, kmsi, additionalCacheKeyHash);
|
|
3448
3450
|
}
|
|
3449
3451
|
/**
|
|
@@ -3557,18 +3559,22 @@ var CacheManager = class {
|
|
|
3557
3559
|
* @param account
|
|
3558
3560
|
*/
|
|
3559
3561
|
removeAccount(account, correlationId) {
|
|
3560
|
-
this.removeAccountContext(account, correlationId);
|
|
3561
3562
|
const accountKeys = this.getAccountKeys();
|
|
3562
3563
|
const keyFilter = (key) => {
|
|
3563
3564
|
return key.includes(account.homeAccountId) && key.includes(account.environment);
|
|
3564
3565
|
};
|
|
3566
|
+
this.getTokenKeys().idToken.filter(keyFilter).forEach((key) => {
|
|
3567
|
+
this.removeIdToken(key, correlationId);
|
|
3568
|
+
});
|
|
3569
|
+
this.removeAccountContext(account, correlationId);
|
|
3565
3570
|
accountKeys.filter(keyFilter).forEach((key) => {
|
|
3566
3571
|
this.removeItem(key, correlationId);
|
|
3567
3572
|
this.performanceClient.incrementFields({ accountsRemoved: 1 }, correlationId);
|
|
3568
3573
|
});
|
|
3569
3574
|
}
|
|
3570
3575
|
/**
|
|
3571
|
-
* Removes
|
|
3576
|
+
* Removes access and refresh tokens associated with the provided account,
|
|
3577
|
+
* preserving the account and its ID tokens.
|
|
3572
3578
|
* @param account
|
|
3573
3579
|
*/
|
|
3574
3580
|
removeAccountContext(account, correlationId) {
|
|
@@ -3576,9 +3582,6 @@ var CacheManager = class {
|
|
|
3576
3582
|
const keyFilter = (key) => {
|
|
3577
3583
|
return key.includes(account.homeAccountId) && key.includes(account.environment);
|
|
3578
3584
|
};
|
|
3579
|
-
allTokenKeys.idToken.filter(keyFilter).forEach((key) => {
|
|
3580
|
-
this.removeIdToken(key, correlationId);
|
|
3581
|
-
});
|
|
3582
3585
|
allTokenKeys.accessToken.filter(keyFilter).forEach((key) => {
|
|
3583
3586
|
this.removeAccessToken(key, correlationId);
|
|
3584
3587
|
});
|
|
@@ -3592,22 +3595,45 @@ var CacheManager = class {
|
|
|
3592
3595
|
* @param correlationId
|
|
3593
3596
|
*/
|
|
3594
3597
|
removeAccessToken(key, correlationId) {
|
|
3598
|
+
const credential = this.removeAccessTokenCredential(key, correlationId);
|
|
3599
|
+
if (credential) this.removeTokenBindingKeyForCredential(credential, correlationId);
|
|
3600
|
+
}
|
|
3601
|
+
/**
|
|
3602
|
+
* Removes an access token and waits for any unreferenced token-binding key
|
|
3603
|
+
* cleanup. Internal callers that require deterministic cleanup should use
|
|
3604
|
+
* this method instead of the synchronous public cache contract.
|
|
3605
|
+
*/
|
|
3606
|
+
async removeAccessTokenAndTokenBindingKey(key, correlationId, preservedKeyId) {
|
|
3607
|
+
const credential = this.removeAccessTokenCredential(key, correlationId);
|
|
3608
|
+
if (credential) await this.removeTokenBindingKeyForCredential(credential, correlationId, preservedKeyId);
|
|
3609
|
+
}
|
|
3610
|
+
removeAccessTokenCredential(key, correlationId) {
|
|
3595
3611
|
const credential = this.getAccessTokenCredential(key, correlationId);
|
|
3596
|
-
if (!credential) return;
|
|
3612
|
+
if (!credential) return null;
|
|
3597
3613
|
this.removeItem(key, correlationId);
|
|
3598
3614
|
this.performanceClient.incrementFields({ accessTokensRemoved: 1 }, correlationId);
|
|
3615
|
+
return credential;
|
|
3616
|
+
}
|
|
3617
|
+
async removeTokenBindingKeyForCredential(credential, correlationId, preservedKeyId) {
|
|
3599
3618
|
if (credential.credentialType.toLowerCase() === CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) switch (credential.tokenType?.toLowerCase()) {
|
|
3600
3619
|
case AuthenticationScheme.POP:
|
|
3601
3620
|
case AuthenticationScheme.DPOP.toLowerCase(): {
|
|
3602
3621
|
const kid = credential.keyId;
|
|
3603
|
-
if (kid
|
|
3622
|
+
if (kid && kid !== preservedKeyId && !this.isTokenBindingKeyReferenced(kid, correlationId)) try {
|
|
3623
|
+
await this.tokenBindingKeyManager.removeTokenBindingKey(kid, correlationId);
|
|
3624
|
+
} catch {
|
|
3604
3625
|
this.commonLogger.error("Failed to remove token binding key", correlationId);
|
|
3605
3626
|
this.performanceClient?.incrementFields({ removeTokenBindingKeyFailure: 1 }, correlationId);
|
|
3606
|
-
}
|
|
3627
|
+
}
|
|
3607
3628
|
break;
|
|
3608
3629
|
}
|
|
3609
3630
|
}
|
|
3610
3631
|
}
|
|
3632
|
+
isTokenBindingKeyReferenced(keyId, correlationId) {
|
|
3633
|
+
return this.getTokenKeys().accessToken.some((accessTokenKey) => {
|
|
3634
|
+
return this.getAccessTokenCredential(accessTokenKey, correlationId)?.keyId === keyId;
|
|
3635
|
+
});
|
|
3636
|
+
}
|
|
3611
3637
|
/**
|
|
3612
3638
|
* Removes all app metadata objects from cache.
|
|
3613
3639
|
*/
|
|
@@ -3721,6 +3747,7 @@ var CacheManager = class {
|
|
|
3721
3747
|
this.commonLogger.trace("CacheManager - getAccessToken called", correlationId);
|
|
3722
3748
|
const scopes = ScopeSet.createSearchScopes(request.scopes, correlationId);
|
|
3723
3749
|
const authScheme = request.authenticationScheme || AuthenticationScheme.BEARER;
|
|
3750
|
+
const normalizedAuthScheme = authScheme.toLowerCase();
|
|
3724
3751
|
const credentialType = authScheme && authScheme.toLowerCase() !== AuthenticationScheme.BEARER.toLowerCase() ? CredentialType.ACCESS_TOKEN_WITH_AUTH_SCHEME : CredentialType.ACCESS_TOKEN;
|
|
3725
3752
|
const attributeTokenPartition = serializeAttributeTokens(request.attributeTokens);
|
|
3726
3753
|
const additionalCacheKeyComponents = attributeTokenPartition ? { attribute_tokens: attributeTokenPartition } : void 0;
|
|
@@ -3732,7 +3759,7 @@ var CacheManager = class {
|
|
|
3732
3759
|
realm: targetRealm || account.tenantId,
|
|
3733
3760
|
target: scopes,
|
|
3734
3761
|
tokenType: authScheme,
|
|
3735
|
-
keyId: authScheme === AuthenticationScheme.SSH ? request.sshKid : void 0,
|
|
3762
|
+
keyId: authScheme === AuthenticationScheme.SSH ? request.sshKid : normalizedAuthScheme === AuthenticationScheme.DPOP.toLowerCase() ? request.popKid || request.dpopJkt : void 0,
|
|
3736
3763
|
additionalCacheKeyComponents
|
|
3737
3764
|
};
|
|
3738
3765
|
const accessTokenKeys = tokenKeys && tokenKeys.accessToken || this.getTokenKeys().accessToken;
|
|
@@ -4136,7 +4163,7 @@ var DefaultStorageClass = class extends CacheManager {
|
|
|
4136
4163
|
}
|
|
4137
4164
|
};
|
|
4138
4165
|
// node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs
|
|
4139
|
-
/*! @azure/msal-common v16.
|
|
4166
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4140
4167
|
/**
|
|
4141
4168
|
* State of the performance event.
|
|
4142
4169
|
*
|
|
@@ -4149,7 +4176,7 @@ const PerformanceEventStatus = {
|
|
|
4149
4176
|
Completed: 2
|
|
4150
4177
|
};
|
|
4151
4178
|
// node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.mjs
|
|
4152
|
-
/*! @azure/msal-common v16.
|
|
4179
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4153
4180
|
var StubPerformanceClient = class {
|
|
4154
4181
|
generateId() {
|
|
4155
4182
|
return "callback-id";
|
|
@@ -4190,7 +4217,7 @@ var StubPerformanceClient = class {
|
|
|
4190
4217
|
cacheEventByCorrelationId() {}
|
|
4191
4218
|
};
|
|
4192
4219
|
// node_modules/@azure/msal-common/dist/config/ClientConfiguration.mjs
|
|
4193
|
-
/*! @azure/msal-common v16.
|
|
4220
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4194
4221
|
const DEFAULT_SYSTEM_OPTIONS$1 = {
|
|
4195
4222
|
tokenRenewalOffsetSeconds: 300,
|
|
4196
4223
|
preventCorsPreflight: false
|
|
@@ -4248,7 +4275,7 @@ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions:
|
|
|
4248
4275
|
...userSystemOptions
|
|
4249
4276
|
},
|
|
4250
4277
|
loggerOptions,
|
|
4251
|
-
storageInterface: storageImplementation || new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, "@azure/msal-common", "16.
|
|
4278
|
+
storageInterface: storageImplementation || new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, "@azure/msal-common", "16.16.1"), new StubPerformanceClient(), void 0, resolvedTokenBindingKeyManager),
|
|
4252
4279
|
networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
|
|
4253
4280
|
cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
4254
4281
|
tokenBindingKeyManager: resolvedTokenBindingKeyManager,
|
|
@@ -4287,7 +4314,7 @@ function isOidcProtocolMode(config) {
|
|
|
4287
4314
|
return config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC;
|
|
4288
4315
|
}
|
|
4289
4316
|
// node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.mjs
|
|
4290
|
-
/*! @azure/msal-common v16.
|
|
4317
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4291
4318
|
/**
|
|
4292
4319
|
* This class instance helps track the memory changes facilitating
|
|
4293
4320
|
* decisions to read from and write to the persistent cache
|
|
@@ -4310,7 +4337,7 @@ function isOidcProtocolMode(config) {
|
|
|
4310
4337
|
}
|
|
4311
4338
|
};
|
|
4312
4339
|
// node_modules/@azure/msal-common/dist/error/JoseHeaderError.mjs
|
|
4313
|
-
/*! @azure/msal-common v16.
|
|
4340
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4314
4341
|
/**
|
|
4315
4342
|
* Error thrown when there is an error in the client code running on the browser.
|
|
4316
4343
|
*/
|
|
@@ -4326,7 +4353,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
4326
4353
|
return new JoseHeaderError(code, correlationId);
|
|
4327
4354
|
}
|
|
4328
4355
|
// node_modules/@azure/msal-common/dist/utils/ObjectUtils.mjs
|
|
4329
|
-
/*! @azure/msal-common v16.
|
|
4356
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4330
4357
|
/**
|
|
4331
4358
|
* Checks whether a value is a plain JSON-like object.
|
|
4332
4359
|
* Allows objects with null prototypes, but rejects arrays and object subclasses.
|
|
@@ -4339,13 +4366,13 @@ function isPlainObject(value) {
|
|
|
4339
4366
|
return Object.getPrototypeOf(value) === proto;
|
|
4340
4367
|
}
|
|
4341
4368
|
// node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.mjs
|
|
4342
|
-
/*! @azure/msal-common v16.
|
|
4369
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4343
4370
|
const missingKidError = "missing_kid_error";
|
|
4344
4371
|
const missingAlgError = "missing_alg_error";
|
|
4345
4372
|
const missingJwkError = "missing_jwk_error";
|
|
4346
4373
|
const invalidJwkError = "invalid_jwk_error";
|
|
4347
4374
|
// node_modules/@azure/msal-common/dist/crypto/JoseHeader.mjs
|
|
4348
|
-
/*! @azure/msal-common v16.
|
|
4375
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4349
4376
|
/** @internal */
|
|
4350
4377
|
var JoseHeader = class JoseHeader {
|
|
4351
4378
|
constructor(options, correlationId) {
|
|
@@ -4391,7 +4418,7 @@ var JoseHeader = class JoseHeader {
|
|
|
4391
4418
|
}
|
|
4392
4419
|
};
|
|
4393
4420
|
// node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.mjs
|
|
4394
|
-
/*! @azure/msal-common v16.
|
|
4421
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4395
4422
|
const KeyLocation = { SW: "sw" };
|
|
4396
4423
|
const SHR_TOKEN_BINDING_KEY_TYPE = "shr";
|
|
4397
4424
|
const SHR_TOKEN_BINDING_KEY_ALGORITHM = JsonWebTokenAlgorithms.RS256;
|
|
@@ -4475,7 +4502,7 @@ var PopTokenGenerator = class {
|
|
|
4475
4502
|
}
|
|
4476
4503
|
};
|
|
4477
4504
|
// node_modules/@azure/msal-common/dist/crypto/DpopProofGenerator.mjs
|
|
4478
|
-
/*! @azure/msal-common v16.
|
|
4505
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4479
4506
|
const DPOP_HTM_REGEX = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
4480
4507
|
const DPOP_TOKEN_BINDING_KEY_TYPE = "dpop";
|
|
4481
4508
|
const DPOP_JWT_HEADER_ALGORITHM = JsonWebTokenAlgorithms.ES256;
|
|
@@ -4511,12 +4538,21 @@ function validateDpopNonce(nonce, correlationId) {
|
|
|
4511
4538
|
if (nonce !== void 0 && nonce.trim().length === 0) throw createClientConfigurationError(invalidDpopNonce, correlationId);
|
|
4512
4539
|
}
|
|
4513
4540
|
/**
|
|
4541
|
+
* Validates and normalizes the HTTP resource context for a DPoP-bound request.
|
|
4542
|
+
* @internal
|
|
4543
|
+
*/
|
|
4544
|
+
function normalizeDpopResourceRequestContext(context, correlationId = "") {
|
|
4545
|
+
return {
|
|
4546
|
+
htm: normalizeHtm(context.htm, correlationId),
|
|
4547
|
+
htu: normalizeHtu(context.htu, correlationId)
|
|
4548
|
+
};
|
|
4549
|
+
}
|
|
4550
|
+
/**
|
|
4514
4551
|
* Builds RFC 9449 DPoP proof JWT payloads for token-endpoint and
|
|
4515
4552
|
* resource-endpoint proof bindings.
|
|
4516
4553
|
*
|
|
4517
|
-
*
|
|
4518
|
-
* This helper
|
|
4519
|
-
* in a subsequent work item.
|
|
4554
|
+
* Exported from package entry points for use by MSAL Browser.
|
|
4555
|
+
* This helper remains an unsupported internal API for direct consumers.
|
|
4520
4556
|
*
|
|
4521
4557
|
* DPoP proofs do not contain SHR fields (at, ts, m, u, p, q).
|
|
4522
4558
|
* @internal
|
|
@@ -4569,10 +4605,11 @@ var DpopProofGenerator = class {
|
|
|
4569
4605
|
*/
|
|
4570
4606
|
buildResourceProofClaims(params, correlationId = "") {
|
|
4571
4607
|
validateDpopNonce(params.nonce, correlationId);
|
|
4608
|
+
const resourceContext = normalizeDpopResourceRequestContext(params, correlationId);
|
|
4572
4609
|
const claims = {
|
|
4573
4610
|
jti: this.cryptoUtils.createNewGuid(),
|
|
4574
|
-
htm:
|
|
4575
|
-
htu:
|
|
4611
|
+
htm: resourceContext.htm,
|
|
4612
|
+
htu: resourceContext.htu,
|
|
4576
4613
|
ath: params.ath,
|
|
4577
4614
|
iat: nowSeconds()
|
|
4578
4615
|
};
|
|
@@ -4599,7 +4636,7 @@ var DpopProofGenerator = class {
|
|
|
4599
4636
|
}
|
|
4600
4637
|
};
|
|
4601
4638
|
// node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs
|
|
4602
|
-
/*! @azure/msal-common v16.
|
|
4639
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4603
4640
|
/**
|
|
4604
4641
|
* MSAL-defined interaction required error code indicating no tokens are found in cache.
|
|
4605
4642
|
* @public
|
|
@@ -4611,7 +4648,7 @@ const noTokensFound = "no_tokens_found";
|
|
|
4611
4648
|
*/
|
|
4612
4649
|
const refreshTokenExpired = "refresh_token_expired";
|
|
4613
4650
|
// node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs
|
|
4614
|
-
/*! @azure/msal-common v16.
|
|
4651
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4615
4652
|
/**
|
|
4616
4653
|
* InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required
|
|
4617
4654
|
*/
|
|
@@ -4668,7 +4705,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
|
|
|
4668
4705
|
return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
|
|
4669
4706
|
}
|
|
4670
4707
|
// node_modules/@azure/msal-common/dist/error/ServerError.mjs
|
|
4671
|
-
/*! @azure/msal-common v16.
|
|
4708
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4672
4709
|
/**
|
|
4673
4710
|
* Error thrown when there is an error with the server code, for example, unavailability.
|
|
4674
4711
|
*/
|
|
@@ -4682,7 +4719,31 @@ var ServerError = class ServerError extends AuthError {
|
|
|
4682
4719
|
}
|
|
4683
4720
|
};
|
|
4684
4721
|
// node_modules/@azure/msal-common/dist/utils/ProtocolUtils.mjs
|
|
4685
|
-
/*! @azure/msal-common v16.
|
|
4722
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4723
|
+
/**
|
|
4724
|
+
* Appends user state with random guid, or returns random guid.
|
|
4725
|
+
* @param cryptoObj
|
|
4726
|
+
* @param userState
|
|
4727
|
+
* @param meta
|
|
4728
|
+
* @param correlationId
|
|
4729
|
+
*/
|
|
4730
|
+
function setRequestState(cryptoObj, userState, meta, correlationId) {
|
|
4731
|
+
const libraryState = generateLibraryState(cryptoObj, correlationId, meta);
|
|
4732
|
+
return userState ? `${libraryState}|${userState}` : libraryState;
|
|
4733
|
+
}
|
|
4734
|
+
/**
|
|
4735
|
+
* Generates the state value used by the common library.
|
|
4736
|
+
* @param cryptoObj
|
|
4737
|
+
* @param correlationId
|
|
4738
|
+
* @param meta
|
|
4739
|
+
*/
|
|
4740
|
+
function generateLibraryState(cryptoObj, correlationId, meta) {
|
|
4741
|
+
if (!cryptoObj) throw createClientAuthError(noCryptoObject, correlationId);
|
|
4742
|
+
const stateObj = { id: cryptoObj.createNewGuid() };
|
|
4743
|
+
if (meta) stateObj.meta = meta;
|
|
4744
|
+
const stateString = JSON.stringify(stateObj);
|
|
4745
|
+
return cryptoObj.base64Encode(stateString);
|
|
4746
|
+
}
|
|
4686
4747
|
/**
|
|
4687
4748
|
* Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
|
|
4688
4749
|
* @param base64Decode
|
|
@@ -4707,7 +4768,7 @@ function parseRequestState(base64Decode, state, correlationId) {
|
|
|
4707
4768
|
}
|
|
4708
4769
|
}
|
|
4709
4770
|
// node_modules/@azure/msal-common/dist/response/ResponseHandler.mjs
|
|
4710
|
-
/*! @azure/msal-common v16.
|
|
4771
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4711
4772
|
/**
|
|
4712
4773
|
* Class that handles response parsing.
|
|
4713
4774
|
* @internal
|
|
@@ -4976,13 +5037,13 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
4976
5037
|
return baseAccount;
|
|
4977
5038
|
}
|
|
4978
5039
|
// node_modules/@azure/msal-common/dist/account/CcsCredential.mjs
|
|
4979
|
-
/*! @azure/msal-common v16.
|
|
5040
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4980
5041
|
const CcsCredentialType = {
|
|
4981
5042
|
HOME_ACCOUNT_ID: "home_account_id",
|
|
4982
5043
|
UPN: "UPN"
|
|
4983
5044
|
};
|
|
4984
5045
|
// node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.mjs
|
|
4985
|
-
/*! @azure/msal-common v16.
|
|
5046
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4986
5047
|
async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiPath) {
|
|
4987
5048
|
if (typeof clientAssertion === "string") return clientAssertion;
|
|
4988
5049
|
else return clientAssertion({
|
|
@@ -4992,7 +5053,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
|
|
|
4992
5053
|
});
|
|
4993
5054
|
}
|
|
4994
5055
|
// node_modules/@azure/msal-common/dist/network/RequestThumbprint.mjs
|
|
4995
|
-
/*! @azure/msal-common v16.
|
|
5056
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
4996
5057
|
function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
4997
5058
|
return {
|
|
4998
5059
|
clientId,
|
|
@@ -5011,7 +5072,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
5011
5072
|
};
|
|
5012
5073
|
}
|
|
5013
5074
|
// node_modules/@azure/msal-common/dist/network/ThrottlingUtils.mjs
|
|
5014
|
-
/*! @azure/msal-common v16.
|
|
5075
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
5015
5076
|
/** @internal */
|
|
5016
5077
|
var ThrottlingUtils = class ThrottlingUtils {
|
|
5017
5078
|
/**
|
|
@@ -5090,7 +5151,7 @@ function getRetryAfterHeader(response) {
|
|
|
5090
5151
|
if ((response.status < 200 || response.status >= 300) && response.headers) return getResponseHeader(response.headers, HeaderNames.RETRY_AFTER);
|
|
5091
5152
|
}
|
|
5092
5153
|
// node_modules/@azure/msal-common/dist/error/NetworkError.mjs
|
|
5093
|
-
/*! @azure/msal-common v16.
|
|
5154
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
5094
5155
|
/**
|
|
5095
5156
|
* Represents network related errors
|
|
5096
5157
|
*/
|
|
@@ -5116,7 +5177,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
5116
5177
|
return new NetworkError(error, httpStatus, responseHeaders);
|
|
5117
5178
|
}
|
|
5118
5179
|
// node_modules/@azure/msal-common/dist/protocol/Token.mjs
|
|
5119
|
-
/*! @azure/msal-common v16.
|
|
5180
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
5120
5181
|
/**
|
|
5121
5182
|
* Creates default headers for requests to token endpoint
|
|
5122
5183
|
*/
|
|
@@ -5225,7 +5286,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
5225
5286
|
return response;
|
|
5226
5287
|
}
|
|
5227
5288
|
// node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.mjs
|
|
5228
|
-
/*! @azure/msal-common v16.
|
|
5289
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
5229
5290
|
/**
|
|
5230
5291
|
* Oauth2.0 Authorization Code client
|
|
5231
5292
|
* @internal
|
|
@@ -5385,7 +5446,7 @@ var AuthorizationCodeClient = class {
|
|
|
5385
5446
|
}
|
|
5386
5447
|
};
|
|
5387
5448
|
// node_modules/@azure/msal-common/dist/protocol/Authorize.mjs
|
|
5388
|
-
/*! @azure/msal-common v16.
|
|
5449
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
5389
5450
|
/**
|
|
5390
5451
|
* Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR
|
|
5391
5452
|
* @param config
|
|
@@ -5496,7 +5557,7 @@ function extractLoginHint(account) {
|
|
|
5496
5557
|
return account.loginHint || account.idTokenClaims?.login_hint || null;
|
|
5497
5558
|
}
|
|
5498
5559
|
// node_modules/@azure/msal-common/dist/client/RefreshTokenClient.mjs
|
|
5499
|
-
/*! @azure/msal-common v16.
|
|
5560
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
5500
5561
|
const DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS = 300;
|
|
5501
5562
|
/**
|
|
5502
5563
|
* OAuth2.0 refresh token client
|
|
@@ -5643,7 +5704,7 @@ var RefreshTokenClient = class {
|
|
|
5643
5704
|
}
|
|
5644
5705
|
};
|
|
5645
5706
|
// node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs
|
|
5646
|
-
/*! @azure/msal-common v16.
|
|
5707
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
5647
5708
|
const skuGroupSeparator = ",";
|
|
5648
5709
|
const skuValueSeparator = "|";
|
|
5649
5710
|
function makeExtraSkuString(params) {
|
|
@@ -5837,7 +5898,7 @@ var ServerTelemetryManager = class ServerTelemetryManager {
|
|
|
5837
5898
|
}
|
|
5838
5899
|
};
|
|
5839
5900
|
// node_modules/@azure/msal-common/dist/client/SilentFlowClient.mjs
|
|
5840
|
-
/*! @azure/msal-common v16.
|
|
5901
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
5841
5902
|
/** @internal */
|
|
5842
5903
|
var SilentFlowClient = class {
|
|
5843
5904
|
constructor(configuration, performanceClient) {
|
|
@@ -5921,7 +5982,7 @@ var SilentFlowClient = class {
|
|
|
5921
5982
|
}
|
|
5922
5983
|
};
|
|
5923
5984
|
// node_modules/@azure/msal-common/dist/request/BaseAuthRequest.mjs
|
|
5924
|
-
/*! @azure/msal-common v16.
|
|
5985
|
+
/*! @azure/msal-common v16.16.1 2026-11-06 */
|
|
5925
5986
|
/**
|
|
5926
5987
|
* Helper to enforce resource parameter presence in token requests when isMcp is set in the configuration.
|
|
5927
5988
|
* If resource parameter is set in both the request and in extraQueryParameters or extraParameters, an error will be thrown.
|
|
@@ -5939,7 +6000,7 @@ function containsResourceParam(params) {
|
|
|
5939
6000
|
return Object.prototype.hasOwnProperty.call(params, "resource");
|
|
5940
6001
|
}
|
|
5941
6002
|
// node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.mjs
|
|
5942
|
-
/*! @azure/msal-node v7.1
|
|
6003
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
5943
6004
|
/**
|
|
5944
6005
|
* This class deserializes cache entities read from the file into in-memory object types defined internally
|
|
5945
6006
|
* @internal
|
|
@@ -6087,7 +6148,7 @@ var Deserializer = class {
|
|
|
6087
6148
|
};
|
|
6088
6149
|
}
|
|
6089
6150
|
};
|
|
6090
|
-
/*! @azure/msal-node v7.1
|
|
6151
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6091
6152
|
/**
|
|
6092
6153
|
* Managed Identity Query Parameters - used in network requests
|
|
6093
6154
|
*/
|
|
@@ -6199,7 +6260,7 @@ const LOOPBACK_SERVER_CONSTANTS = {
|
|
|
6199
6260
|
TIMEOUT_MS: 5e3
|
|
6200
6261
|
};
|
|
6201
6262
|
// node_modules/@azure/msal-node/dist/network/HttpClient.mjs
|
|
6202
|
-
/*! @azure/msal-node v7.1
|
|
6263
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6203
6264
|
/**
|
|
6204
6265
|
* HTTP client implementation using Node.js native fetch API.
|
|
6205
6266
|
*
|
|
@@ -6335,7 +6396,7 @@ function getFetchHeaders(options) {
|
|
|
6335
6396
|
return headers;
|
|
6336
6397
|
}
|
|
6337
6398
|
// node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.mjs
|
|
6338
|
-
/*! @azure/msal-node v7.1
|
|
6399
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6339
6400
|
const invalidFileExtension = "invalid_file_extension";
|
|
6340
6401
|
const invalidFilePath = "invalid_file_path";
|
|
6341
6402
|
const invalidManagedIdentityIdType = "invalid_managed_identity_id_type";
|
|
@@ -6358,7 +6419,7 @@ const MsiEnvironmentVariableUrlMalformedErrorCodes = {
|
|
|
6358
6419
|
[ManagedIdentityEnvironmentVariableNames.MSI_ENDPOINT]: "msi_endpoint_url_malformed"
|
|
6359
6420
|
};
|
|
6360
6421
|
// node_modules/@azure/msal-node/dist/error/ManagedIdentityError.mjs
|
|
6361
|
-
/*! @azure/msal-node v7.1
|
|
6422
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6362
6423
|
/**
|
|
6363
6424
|
* ManagedIdentityErrorMessage class containing string constants used by error codes and messages.
|
|
6364
6425
|
*/
|
|
@@ -6394,9 +6455,9 @@ function createManagedIdentityError(errorCode, correlationId) {
|
|
|
6394
6455
|
return new ManagedIdentityError(errorCode, correlationId);
|
|
6395
6456
|
}
|
|
6396
6457
|
// node_modules/@azure/msal-node/dist/config/ManagedIdentityId.mjs
|
|
6397
|
-
/*! @azure/msal-node v7.1
|
|
6458
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6398
6459
|
// node_modules/@azure/msal-node/dist/error/NodeAuthError.mjs
|
|
6399
|
-
/*! @azure/msal-node v7.1
|
|
6460
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6400
6461
|
/**
|
|
6401
6462
|
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
6402
6463
|
*/
|
|
@@ -6519,7 +6580,7 @@ var NodeAuthError = class NodeAuthError extends AuthError {
|
|
|
6519
6580
|
}
|
|
6520
6581
|
};
|
|
6521
6582
|
// node_modules/@azure/msal-node/dist/config/Configuration.mjs
|
|
6522
|
-
/*! @azure/msal-node v7.1
|
|
6583
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6523
6584
|
const DEFAULT_AUTH_OPTIONS = {
|
|
6524
6585
|
clientId: "",
|
|
6525
6586
|
authority: DEFAULT_AUTHORITY,
|
|
@@ -6593,7 +6654,7 @@ function buildAppConfiguration({ auth, broker, cache, system, telemetry }) {
|
|
|
6593
6654
|
};
|
|
6594
6655
|
}
|
|
6595
6656
|
// node_modules/@azure/msal-node/dist/crypto/GuidGenerator.mjs
|
|
6596
|
-
/*! @azure/msal-node v7.1
|
|
6657
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6597
6658
|
var GuidGenerator = class {
|
|
6598
6659
|
/**
|
|
6599
6660
|
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
|
|
@@ -6611,7 +6672,7 @@ var GuidGenerator = class {
|
|
|
6611
6672
|
}
|
|
6612
6673
|
};
|
|
6613
6674
|
// node_modules/@azure/msal-node/dist/utils/EncodingUtils.mjs
|
|
6614
|
-
/*! @azure/msal-node v7.1
|
|
6675
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6615
6676
|
var EncodingUtils = class EncodingUtils {
|
|
6616
6677
|
/**
|
|
6617
6678
|
* 'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
|
|
@@ -6648,7 +6709,7 @@ var EncodingUtils = class EncodingUtils {
|
|
|
6648
6709
|
}
|
|
6649
6710
|
};
|
|
6650
6711
|
// node_modules/@azure/msal-node/dist/crypto/HashUtils.mjs
|
|
6651
|
-
/*! @azure/msal-node v7.1
|
|
6712
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6652
6713
|
var HashUtils = class {
|
|
6653
6714
|
/**
|
|
6654
6715
|
* generate 'SHA256' hash
|
|
@@ -6659,7 +6720,7 @@ var HashUtils = class {
|
|
|
6659
6720
|
}
|
|
6660
6721
|
};
|
|
6661
6722
|
// node_modules/@azure/msal-node/dist/crypto/PkceGenerator.mjs
|
|
6662
|
-
/*! @azure/msal-node v7.1
|
|
6723
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6663
6724
|
/**
|
|
6664
6725
|
* https://tools.ietf.org/html/rfc7636#page-8
|
|
6665
6726
|
*/
|
|
@@ -6702,7 +6763,7 @@ var PkceGenerator = class {
|
|
|
6702
6763
|
}
|
|
6703
6764
|
};
|
|
6704
6765
|
// node_modules/@azure/msal-node/dist/crypto/CryptoProvider.mjs
|
|
6705
|
-
/*! @azure/msal-node v7.1
|
|
6766
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6706
6767
|
/**
|
|
6707
6768
|
* This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
|
|
6708
6769
|
* implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
|
|
@@ -6788,7 +6849,7 @@ var CryptoProvider = class {
|
|
|
6788
6849
|
}
|
|
6789
6850
|
};
|
|
6790
6851
|
// node_modules/@azure/msal-node/dist/cache/CacheHelpers.mjs
|
|
6791
|
-
/*! @azure/msal-node v7.1
|
|
6852
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6792
6853
|
/**
|
|
6793
6854
|
* Computes a combined hash from additional cache key components.
|
|
6794
6855
|
*
|
|
@@ -6841,7 +6902,7 @@ function generateAccountKey(account) {
|
|
|
6841
6902
|
].join(CACHE.KEY_SEPARATOR).toLowerCase();
|
|
6842
6903
|
}
|
|
6843
6904
|
// node_modules/@azure/msal-node/dist/cache/NodeStorage.mjs
|
|
6844
|
-
/*! @azure/msal-node v7.1
|
|
6905
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
6845
6906
|
/**
|
|
6846
6907
|
* This class implements Storage for node, reading cache from user specified storage location or an extension library
|
|
6847
6908
|
* @public
|
|
@@ -7207,7 +7268,7 @@ var NodeStorage = class extends CacheManager {
|
|
|
7207
7268
|
}
|
|
7208
7269
|
};
|
|
7209
7270
|
// node_modules/@azure/msal-node/dist/cache/TokenCache.mjs
|
|
7210
|
-
/*! @azure/msal-node v7.1
|
|
7271
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
7211
7272
|
const defaultSerializedCache = {
|
|
7212
7273
|
Account: {},
|
|
7213
7274
|
IdToken: {},
|
|
@@ -11517,6 +11578,7 @@ var require_sign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11517
11578
|
};
|
|
11518
11579
|
}));
|
|
11519
11580
|
// node_modules/@azure/msal-node/dist/error/ClientAuthErrorCodes.mjs
|
|
11581
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
11520
11582
|
var import_jsonwebtoken = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11521
11583
|
module.exports = {
|
|
11522
11584
|
decode: require_decode(),
|
|
@@ -11527,14 +11589,13 @@ var import_jsonwebtoken = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
|
|
|
11527
11589
|
TokenExpiredError: require_TokenExpiredError()
|
|
11528
11590
|
};
|
|
11529
11591
|
})))(), 1);
|
|
11530
|
-
/*! @azure/msal-node v7.1.2 2026-10-27 */
|
|
11531
11592
|
const userTimeoutReached = "user_timeout_reached";
|
|
11532
11593
|
const invalidAssertion = "invalid_assertion";
|
|
11533
11594
|
const deviceCodePollingCancelled = "device_code_polling_cancelled";
|
|
11534
11595
|
const deviceCodeExpired = "device_code_expired";
|
|
11535
11596
|
const deviceCodeUnknownError = "device_code_unknown_error";
|
|
11536
11597
|
// node_modules/@azure/msal-node/dist/client/ClientAssertion.mjs
|
|
11537
|
-
/*! @azure/msal-node v7.1
|
|
11598
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
11538
11599
|
/**
|
|
11539
11600
|
* Client assertion of type jwt-bearer used in confidential client flows
|
|
11540
11601
|
* @public
|
|
@@ -11641,11 +11702,11 @@ var ClientAssertion = class ClientAssertion {
|
|
|
11641
11702
|
}
|
|
11642
11703
|
};
|
|
11643
11704
|
// node_modules/@azure/msal-node/dist/packageMetadata.mjs
|
|
11644
|
-
/*! @azure/msal-node v7.1
|
|
11705
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
11645
11706
|
const name = "@azure/msal-node";
|
|
11646
|
-
const version = "7.1
|
|
11707
|
+
const version = "7.2.1";
|
|
11647
11708
|
// node_modules/@azure/msal-node/dist/client/BaseClient.mjs
|
|
11648
|
-
/*! @azure/msal-node v7.1
|
|
11709
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
11649
11710
|
/**
|
|
11650
11711
|
* Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.
|
|
11651
11712
|
* @internal
|
|
@@ -11696,7 +11757,7 @@ var BaseClient = class {
|
|
|
11696
11757
|
}
|
|
11697
11758
|
};
|
|
11698
11759
|
// node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.mjs
|
|
11699
|
-
/*! @azure/msal-node v7.1
|
|
11760
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
11700
11761
|
/**
|
|
11701
11762
|
* Oauth2.0 Password grant client
|
|
11702
11763
|
* Note: We are only supporting public clients for password grant and for purely testing purposes
|
|
@@ -11776,7 +11837,7 @@ var UsernamePasswordClient = class extends BaseClient {
|
|
|
11776
11837
|
}
|
|
11777
11838
|
};
|
|
11778
11839
|
// node_modules/@azure/msal-node/dist/protocol/Authorize.mjs
|
|
11779
|
-
/*! @azure/msal-node v7.1
|
|
11840
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
11780
11841
|
/**
|
|
11781
11842
|
* Constructs the full /authorize URL with request parameters
|
|
11782
11843
|
* @param config
|
|
@@ -11804,7 +11865,7 @@ function getAuthCodeRequestUrl(config, authority, request, logger) {
|
|
|
11804
11865
|
return getAuthorizeUrl(authority, parameters);
|
|
11805
11866
|
}
|
|
11806
11867
|
// node_modules/@azure/msal-node/dist/client/SilentRequestCoalescer.mjs
|
|
11807
|
-
/*! @azure/msal-node v7.1
|
|
11868
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
11808
11869
|
const activeSilentTokenRequests = /* @__PURE__ */ new WeakMap();
|
|
11809
11870
|
/**
|
|
11810
11871
|
* Shares an in-flight silent acquisition while preserving each caller's correlation ID.
|
|
@@ -11898,7 +11959,7 @@ function applyCallerCorrelationIdToResult(activeRequest, correlationId) {
|
|
|
11898
11959
|
}));
|
|
11899
11960
|
}
|
|
11900
11961
|
// node_modules/@azure/msal-node/dist/client/ClientApplication.mjs
|
|
11901
|
-
/*! @azure/msal-node v7.1
|
|
11962
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
11902
11963
|
/**
|
|
11903
11964
|
* Base abstract class for all ClientApplications - public and confidential
|
|
11904
11965
|
* @public
|
|
@@ -12228,19 +12289,21 @@ var ClientApplication = class {
|
|
|
12228
12289
|
}
|
|
12229
12290
|
};
|
|
12230
12291
|
// node_modules/@azure/msal-node/dist/network/LoopbackClient.mjs
|
|
12231
|
-
/*! @azure/msal-node v7.1
|
|
12292
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
12232
12293
|
var LoopbackClient = class {
|
|
12233
12294
|
constructor(preferredPort) {
|
|
12234
12295
|
this.preferredPort = preferredPort;
|
|
12235
12296
|
}
|
|
12236
12297
|
/**
|
|
12237
12298
|
* Spins up a loopback server which returns the server response when the localhost redirectUri is hit
|
|
12299
|
+
* @param expectedState - State sent in the authorization request
|
|
12238
12300
|
* @param successTemplate
|
|
12239
12301
|
* @param errorTemplate
|
|
12240
12302
|
* @returns
|
|
12241
12303
|
*/
|
|
12242
|
-
async listenForAuthCode(successTemplate, errorTemplate) {
|
|
12304
|
+
async listenForAuthCode(expectedState, successTemplate, errorTemplate) {
|
|
12243
12305
|
if (this.server) throw NodeAuthError.createLoopbackServerAlreadyExistsError();
|
|
12306
|
+
if (!expectedState) throw NodeAuthError.createStateNotFoundError("");
|
|
12244
12307
|
return new Promise((resolve, reject) => {
|
|
12245
12308
|
this.server = http.createServer((req, res) => {
|
|
12246
12309
|
const method = req.method?.toUpperCase();
|
|
@@ -12256,7 +12319,7 @@ var LoopbackClient = class {
|
|
|
12256
12319
|
return;
|
|
12257
12320
|
} else if (url === "/") {
|
|
12258
12321
|
if (method === "POST") {
|
|
12259
|
-
this.handlePostRequest(req, res, resolve, successTemplate, errorTemplate);
|
|
12322
|
+
this.handlePostRequest(req, res, resolve, expectedState, successTemplate, errorTemplate);
|
|
12260
12323
|
return;
|
|
12261
12324
|
}
|
|
12262
12325
|
res.end(successTemplate || "Auth code was successfully acquired. You can close this window now.");
|
|
@@ -12264,12 +12327,18 @@ var LoopbackClient = class {
|
|
|
12264
12327
|
}
|
|
12265
12328
|
if (method === "GET") {
|
|
12266
12329
|
const redirectUri = this.getRedirectUri();
|
|
12267
|
-
const
|
|
12330
|
+
const parsedUrl = new URL(url, redirectUri);
|
|
12331
|
+
const authCodeResponse = getDeserializedResponse(parsedUrl.search) || {};
|
|
12268
12332
|
if (!authCodeResponse.code && !authCodeResponse.error) {
|
|
12269
12333
|
res.writeHead(200);
|
|
12270
12334
|
res.end();
|
|
12271
12335
|
return;
|
|
12272
12336
|
}
|
|
12337
|
+
if (!this.isExpectedState(parsedUrl.searchParams, expectedState)) {
|
|
12338
|
+
res.writeHead(400);
|
|
12339
|
+
res.end("Invalid authorization response state.");
|
|
12340
|
+
return;
|
|
12341
|
+
}
|
|
12273
12342
|
res.writeHead(400);
|
|
12274
12343
|
res.end("OAuth responses must use form_post and cannot be returned in the URL.");
|
|
12275
12344
|
reject(NodeAuthError.createLoopbackServerQueryResponseNotSupportedError());
|
|
@@ -12289,7 +12358,7 @@ var LoopbackClient = class {
|
|
|
12289
12358
|
/**
|
|
12290
12359
|
* Handles POST requests for form_post response mode
|
|
12291
12360
|
*/
|
|
12292
|
-
handlePostRequest(req, res, resolve, successTemplate, errorTemplate) {
|
|
12361
|
+
handlePostRequest(req, res, resolve, expectedState, successTemplate, errorTemplate) {
|
|
12293
12362
|
if (req.headers["content-type"]?.split(";")[0]?.trim() !== "application/x-www-form-urlencoded") {
|
|
12294
12363
|
res.writeHead(415);
|
|
12295
12364
|
res.end("Unsupported Media Type");
|
|
@@ -12310,6 +12379,11 @@ var LoopbackClient = class {
|
|
|
12310
12379
|
res.end();
|
|
12311
12380
|
return;
|
|
12312
12381
|
}
|
|
12382
|
+
if (!this.isExpectedState(new URLSearchParams(body), expectedState)) {
|
|
12383
|
+
res.writeHead(400);
|
|
12384
|
+
res.end("Invalid authorization response state.");
|
|
12385
|
+
return;
|
|
12386
|
+
}
|
|
12313
12387
|
if (authCodeResponse.error) {
|
|
12314
12388
|
res.writeHead(200);
|
|
12315
12389
|
res.end(errorTemplate || `Error occurred: ${authCodeResponse.error}`);
|
|
@@ -12321,6 +12395,13 @@ var LoopbackClient = class {
|
|
|
12321
12395
|
});
|
|
12322
12396
|
}
|
|
12323
12397
|
/**
|
|
12398
|
+
* Requires exactly one state value matching the pending authorization request.
|
|
12399
|
+
*/
|
|
12400
|
+
isExpectedState(parameters, expectedState) {
|
|
12401
|
+
const states = parameters.getAll("state");
|
|
12402
|
+
return states.length === 1 && states[0] === expectedState;
|
|
12403
|
+
}
|
|
12404
|
+
/**
|
|
12324
12405
|
* Get the port that the loopback server is running on
|
|
12325
12406
|
* @returns
|
|
12326
12407
|
*/
|
|
@@ -12347,7 +12428,7 @@ var LoopbackClient = class {
|
|
|
12347
12428
|
}
|
|
12348
12429
|
};
|
|
12349
12430
|
// node_modules/@azure/msal-node/dist/client/DeviceCodeClient.mjs
|
|
12350
|
-
/*! @azure/msal-node v7.1
|
|
12431
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
12351
12432
|
/**
|
|
12352
12433
|
* OAuth2.0 Device code client
|
|
12353
12434
|
* @public
|
|
@@ -12520,7 +12601,7 @@ var DeviceCodeClient = class extends BaseClient {
|
|
|
12520
12601
|
}
|
|
12521
12602
|
};
|
|
12522
12603
|
// node_modules/@azure/msal-node/dist/client/PublicClientApplication.mjs
|
|
12523
|
-
/*! @azure/msal-node v7.1
|
|
12604
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
12524
12605
|
/**
|
|
12525
12606
|
* This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications
|
|
12526
12607
|
* are not trusted to safely store application secrets, and therefore can only request tokens in the name of an user.
|
|
@@ -12615,10 +12696,11 @@ var PublicClientApplication = class extends ClientApplication {
|
|
|
12615
12696
|
const loopbackClient = new LoopbackClient(preferredPort);
|
|
12616
12697
|
const responseMode = remainingProperties.responseMode;
|
|
12617
12698
|
if (responseMode !== void 0 && responseMode !== ResponseMode$1.FORM_POST) throw createClientConfigurationError(invalidResponseMode, correlationId);
|
|
12699
|
+
const state = setRequestState(this.cryptoProvider, remainingProperties.state ? this.cryptoProvider.base64Encode(remainingProperties.state) : remainingProperties.state, void 0, correlationId);
|
|
12618
12700
|
let authCodeResponse = {};
|
|
12619
12701
|
let authCodeListenerError = null;
|
|
12620
12702
|
try {
|
|
12621
|
-
const authCodeListener = loopbackClient.listenForAuthCode(successTemplate, errorTemplate).then((response) => {
|
|
12703
|
+
const authCodeListener = loopbackClient.listenForAuthCode(state, successTemplate, errorTemplate).then((response) => {
|
|
12622
12704
|
authCodeResponse = response;
|
|
12623
12705
|
}).catch((e) => {
|
|
12624
12706
|
authCodeListenerError = e;
|
|
@@ -12631,11 +12713,13 @@ var PublicClientApplication = class extends ClientApplication {
|
|
|
12631
12713
|
redirectUri,
|
|
12632
12714
|
responseMode: ResponseMode$1.FORM_POST,
|
|
12633
12715
|
codeChallenge: challenge,
|
|
12634
|
-
codeChallengeMethod: CodeChallengeMethodValues.S256
|
|
12716
|
+
codeChallengeMethod: CodeChallengeMethodValues.S256,
|
|
12717
|
+
state
|
|
12635
12718
|
};
|
|
12636
12719
|
await openBrowser(await this.getAuthCodeUrl(validRequest));
|
|
12637
12720
|
await authCodeListener;
|
|
12638
12721
|
if (authCodeListenerError) throw authCodeListenerError;
|
|
12722
|
+
this.validateState(state, authCodeResponse.state || "", correlationId);
|
|
12639
12723
|
if (authCodeResponse.error) throw new ServerError(authCodeResponse.error, correlationId, authCodeResponse.error_description, authCodeResponse.suberror);
|
|
12640
12724
|
else if (!authCodeResponse.code) throw NodeAuthError.createNoAuthCodeInResponseError(correlationId);
|
|
12641
12725
|
const clientInfo = authCodeResponse.client_info;
|
|
@@ -12643,7 +12727,8 @@ var PublicClientApplication = class extends ClientApplication {
|
|
|
12643
12727
|
code: authCodeResponse.code,
|
|
12644
12728
|
codeVerifier: verifier,
|
|
12645
12729
|
clientInfo: clientInfo || "",
|
|
12646
|
-
...validRequest
|
|
12730
|
+
...validRequest,
|
|
12731
|
+
state: remainingProperties.state
|
|
12647
12732
|
};
|
|
12648
12733
|
return await this.acquireTokenByCode(tokenRequest);
|
|
12649
12734
|
} finally {
|
|
@@ -12765,15 +12850,15 @@ var PublicClientApplication = class extends ClientApplication {
|
|
|
12765
12850
|
}
|
|
12766
12851
|
};
|
|
12767
12852
|
// node_modules/@azure/msal-node/dist/client/ClientCredentialClient.mjs
|
|
12768
|
-
/*! @azure/msal-node v7.1
|
|
12853
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
12769
12854
|
// node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.mjs
|
|
12770
|
-
/*! @azure/msal-node v7.1
|
|
12855
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
12771
12856
|
// node_modules/@azure/msal-node/dist/client/UserFederatedIdentityCredentialClient.mjs
|
|
12772
|
-
/*! @azure/msal-node v7.1
|
|
12857
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
12773
12858
|
// node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.mjs
|
|
12774
|
-
/*! @azure/msal-node v7.1
|
|
12859
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
12775
12860
|
// node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs
|
|
12776
|
-
/*! @azure/msal-node v7.1
|
|
12861
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
12777
12862
|
/**
|
|
12778
12863
|
* @internal
|
|
12779
12864
|
* Checks if a given date string is in ISO 8601 format.
|
|
@@ -12787,7 +12872,7 @@ function isIso8601(dateString) {
|
|
|
12787
12872
|
return !isNaN(date.getTime()) && date.toISOString() === dateString;
|
|
12788
12873
|
}
|
|
12789
12874
|
// node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.mjs
|
|
12790
|
-
/*! @azure/msal-node v7.1
|
|
12875
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
12791
12876
|
var HttpClientWithRetries = class {
|
|
12792
12877
|
constructor(httpClientNoRetries, retryPolicy, logger) {
|
|
12793
12878
|
this.httpClientNoRetries = httpClientNoRetries;
|
|
@@ -12816,7 +12901,7 @@ var HttpClientWithRetries = class {
|
|
|
12816
12901
|
}
|
|
12817
12902
|
};
|
|
12818
12903
|
// node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs
|
|
12819
|
-
/*! @azure/msal-node v7.1
|
|
12904
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
12820
12905
|
/**
|
|
12821
12906
|
* Managed Identity User Assigned Id Query Parameter Names
|
|
12822
12907
|
*/
|
|
@@ -13006,20 +13091,20 @@ BaseManagedIdentitySource.getValidatedEnvVariableUrlString = (envVariableStringN
|
|
|
13006
13091
|
throw createManagedIdentityError(MsiEnvironmentVariableUrlMalformedErrorCodes[envVariableStringName], "");
|
|
13007
13092
|
}
|
|
13008
13093
|
};
|
|
13009
|
-
/*! @azure/msal-node v7.1
|
|
13010
|
-
/*! @azure/msal-node v7.1
|
|
13011
|
-
/*! @azure/msal-node v7.1
|
|
13012
|
-
/*! @azure/msal-node v7.1
|
|
13094
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13095
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13096
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13097
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13013
13098
|
`${process.env["ProgramData"]}`;
|
|
13014
13099
|
`${process.env["ProgramFiles"]}`;
|
|
13015
|
-
/*! @azure/msal-node v7.1
|
|
13016
|
-
/*! @azure/msal-node v7.1
|
|
13017
|
-
/*! @azure/msal-node v7.1
|
|
13018
|
-
/*! @azure/msal-node v7.1
|
|
13019
|
-
/*! @azure/msal-node v7.1
|
|
13100
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13101
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13102
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13103
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13104
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13020
13105
|
`${ManagedIdentitySourceNames.MACHINE_LEARNING}`;
|
|
13021
|
-
/*! @azure/msal-node v7.1
|
|
13022
|
-
/*! @azure/msal-node v7.1
|
|
13106
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13107
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13023
13108
|
ManagedIdentitySourceNames.SERVICE_FABRIC;
|
|
13024
|
-
/*! @azure/msal-node v7.1
|
|
13109
|
+
/*! @azure/msal-node v7.2.1 2026-11-06 */
|
|
13025
13110
|
export { CryptoProvider, PublicClientApplication };
|