opencode-m365-copilot 0.3.1 → 0.3.3
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-C3DxtJPy.mjs → agent-CdFt3iSQ.mjs} +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/{dist-CBYT-Zyt.mjs → dist-Bx5AzuFm.mjs} +258 -135
- package/dist/{login-_9JzoRK8.mjs → login-CRnd-p8w.mjs} +2 -2
- package/dist/plugin.mjs +2 -2
- package/dist/{server-DO0_u884.mjs → server-Bfa7StU_.mjs} +11 -5
- package/dist/server.mjs +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as createLogger, b as AGENT_FILE, d as POWERPLATFORM_SCOPE, l as BAP_SCOPE, y as writePrivateFile } from "./server-
|
|
1
|
+
import { _ as createLogger, b as AGENT_FILE, d as POWERPLATFORM_SCOPE, l as BAP_SCOPE, y as writePrivateFile } from "./server-Bfa7StU_.mjs";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
//#region src/agent.ts
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as SECRETS_FILE, M as LOCAL_TITLE_MODEL, S as CONFIG_DIR, T as PROVIDER_ID, a as startServer, b as AGENT_FILE, g as createTokenClient, j as DEFAULT_MODEL, k as mergeOpencodeConfig, x as CACHE_FILE } from "./server-
|
|
3
|
-
import { t as getOrCreateAgent } from "./agent-
|
|
2
|
+
import { C as SECRETS_FILE, M as LOCAL_TITLE_MODEL, S as CONFIG_DIR, T as PROVIDER_ID, a as startServer, b as AGENT_FILE, g as createTokenClient, j as DEFAULT_MODEL, k as mergeOpencodeConfig, x as CACHE_FILE } from "./server-Bfa7StU_.mjs";
|
|
3
|
+
import { t as getOrCreateAgent } from "./agent-CdFt3iSQ.mjs";
|
|
4
4
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { homedir } from "node:os";
|
|
6
6
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -46,7 +46,7 @@ to complete SSO/MFA by hand once — the only option on tenants with push-only
|
|
|
46
46
|
MFA, FIDO2, or a federated IdP.`);
|
|
47
47
|
}
|
|
48
48
|
async function doLogin(args) {
|
|
49
|
-
const { login } = await import("./login-
|
|
49
|
+
const { login } = await import("./login-CRnd-p8w.mjs");
|
|
50
50
|
const interactive = args.includes("--interactive");
|
|
51
51
|
try {
|
|
52
52
|
const account = await login({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as __require, I as __toESM, P as __commonJSMin } from "./server-
|
|
1
|
+
import { F as __require, I as __toESM, P as __commonJSMin } from "./server-Bfa7StU_.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
|
//#region node_modules/@azure/msal-node/dist/cache/serializer/Serializer.mjs
|
|
6
|
-
/*! @azure/msal-node
|
|
6
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
7
7
|
/**
|
|
8
8
|
* This class serializes cache entities to be saved into in-memory object types defined internally
|
|
9
9
|
* @internal
|
|
@@ -143,7 +143,7 @@ var Serializer = class {
|
|
|
143
143
|
};
|
|
144
144
|
//#endregion
|
|
145
145
|
//#region node_modules/@azure/msal-common/dist/constants/AADServerParamKeys.mjs
|
|
146
|
-
/*! @azure/msal-common v16.14.
|
|
146
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
147
147
|
const CLIENT_ID = "client_id";
|
|
148
148
|
const REDIRECT_URI = "redirect_uri";
|
|
149
149
|
const RESPONSE_TYPE = "response_type";
|
|
@@ -190,7 +190,7 @@ const CLI_DATA = "clidata";
|
|
|
190
190
|
const ATTRIBUTE_TOKENS = "attribute_tokens";
|
|
191
191
|
//#endregion
|
|
192
192
|
//#region node_modules/@azure/msal-common/dist/utils/Constants.mjs
|
|
193
|
-
/*! @azure/msal-common v16.14.
|
|
193
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
194
194
|
const SKU = "msal.js.common";
|
|
195
195
|
const DEFAULT_AUTHORITY = "https://login.microsoftonline.com/common/";
|
|
196
196
|
const DEFAULT_AUTHORITY_HOST = "login.microsoftonline.com";
|
|
@@ -393,7 +393,7 @@ const EncodingTypes = {
|
|
|
393
393
|
};
|
|
394
394
|
//#endregion
|
|
395
395
|
//#region node_modules/@azure/msal-common/dist/error/AuthError.mjs
|
|
396
|
-
/*! @azure/msal-common v16.14.
|
|
396
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
397
397
|
function getDefaultErrorMessage(code) {
|
|
398
398
|
return `See https://aka.ms/msal.js.errors#${code} for details`;
|
|
399
399
|
}
|
|
@@ -418,7 +418,7 @@ function createAuthError(code, correlationId, additionalMessage) {
|
|
|
418
418
|
}
|
|
419
419
|
//#endregion
|
|
420
420
|
//#region node_modules/@azure/msal-common/dist/error/ClientAuthError.mjs
|
|
421
|
-
/*! @azure/msal-common v16.14.
|
|
421
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
422
422
|
/**
|
|
423
423
|
* ClientAuthErrorMessage class containing string constants used by error codes and messages.
|
|
424
424
|
*/
|
|
@@ -437,7 +437,7 @@ function createClientAuthError(errorCode, correlationId, additionalMessage) {
|
|
|
437
437
|
}
|
|
438
438
|
//#endregion
|
|
439
439
|
//#region node_modules/@azure/msal-common/dist/error/ClientAuthErrorCodes.mjs
|
|
440
|
-
/*! @azure/msal-common v16.14.
|
|
440
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
441
441
|
const clientInfoDecodingError = "client_info_decoding_error";
|
|
442
442
|
const clientInfoEmptyError = "client_info_empty_error";
|
|
443
443
|
const tokenParsingError = "token_parsing_error";
|
|
@@ -468,7 +468,7 @@ const resourceParameterRequired = "resource_parameter_required";
|
|
|
468
468
|
const misplacedResourceParam = "misplaced_resource_parameter";
|
|
469
469
|
//#endregion
|
|
470
470
|
//#region node_modules/@azure/msal-common/dist/account/ClientInfo.mjs
|
|
471
|
-
/*! @azure/msal-common v16.14.
|
|
471
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
472
472
|
/**
|
|
473
473
|
* Function to build a client info object from server clientInfo string
|
|
474
474
|
* @param rawClientInfo
|
|
@@ -497,7 +497,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
|
|
|
497
497
|
}
|
|
498
498
|
//#endregion
|
|
499
499
|
//#region node_modules/@azure/msal-common/dist/account/AuthToken.mjs
|
|
500
|
-
/*! @azure/msal-common v16.14.
|
|
500
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
501
501
|
/**
|
|
502
502
|
* Extract token by decoding the rawToken
|
|
503
503
|
*
|
|
@@ -549,7 +549,7 @@ function getJWSPayload(authToken, correlationId) {
|
|
|
549
549
|
}
|
|
550
550
|
//#endregion
|
|
551
551
|
//#region node_modules/@azure/msal-common/dist/account/AccountInfo.mjs
|
|
552
|
-
/*! @azure/msal-common v16.14.
|
|
552
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
553
553
|
/**
|
|
554
554
|
* Returns true if tenantId matches the utid portion of homeAccountId
|
|
555
555
|
* @param tenantId
|
|
@@ -626,7 +626,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
|
|
|
626
626
|
}
|
|
627
627
|
//#endregion
|
|
628
628
|
//#region node_modules/@azure/msal-common/dist/authority/AuthorityType.mjs
|
|
629
|
-
/*! @azure/msal-common v16.14.
|
|
629
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
630
630
|
/**
|
|
631
631
|
* Authority types supported by MSAL.
|
|
632
632
|
*/
|
|
@@ -637,7 +637,7 @@ const AuthorityType = {
|
|
|
637
637
|
};
|
|
638
638
|
//#endregion
|
|
639
639
|
//#region node_modules/@azure/msal-common/dist/account/TokenClaims.mjs
|
|
640
|
-
/*! @azure/msal-common v16.14.
|
|
640
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
641
641
|
/**
|
|
642
642
|
* Gets tenantId from available ID token claims to set as credential realm with the following precedence:
|
|
643
643
|
* 1. tid - if the token is acquired from an Azure AD tenant tid will be present
|
|
@@ -653,7 +653,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
|
653
653
|
}
|
|
654
654
|
//#endregion
|
|
655
655
|
//#region node_modules/@azure/msal-common/dist/authority/ProtocolMode.mjs
|
|
656
|
-
/*! @azure/msal-common v16.14.
|
|
656
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
657
657
|
/**
|
|
658
658
|
* Protocol modes supported by MSAL.
|
|
659
659
|
*/
|
|
@@ -674,7 +674,7 @@ const ProtocolMode = {
|
|
|
674
674
|
};
|
|
675
675
|
//#endregion
|
|
676
676
|
//#region node_modules/@azure/msal-common/dist/cache/utils/AccountEntityUtils.mjs
|
|
677
|
-
/*! @azure/msal-common v16.14.
|
|
677
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
678
678
|
/**
|
|
679
679
|
* Returns the AccountInfo interface for this account.
|
|
680
680
|
* @internal
|
|
@@ -771,11 +771,11 @@ function isAccountEntity(entity) {
|
|
|
771
771
|
}
|
|
772
772
|
//#endregion
|
|
773
773
|
//#region node_modules/@azure/msal-common/dist/error/AuthErrorCodes.mjs
|
|
774
|
-
/*! @azure/msal-common v16.14.
|
|
774
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
775
775
|
const postRequestFailed = "post_request_failed";
|
|
776
776
|
//#endregion
|
|
777
777
|
//#region node_modules/@azure/msal-common/dist/error/ClientConfigurationError.mjs
|
|
778
|
-
/*! @azure/msal-common v16.14.
|
|
778
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
779
779
|
/**
|
|
780
780
|
* Error thrown when there is an error in configuration of the MSAL.js library.
|
|
781
781
|
*/
|
|
@@ -791,7 +791,7 @@ function createClientConfigurationError(errorCode, correlationId) {
|
|
|
791
791
|
}
|
|
792
792
|
//#endregion
|
|
793
793
|
//#region node_modules/@azure/msal-common/dist/error/ClientConfigurationErrorCodes.mjs
|
|
794
|
-
/*! @azure/msal-common v16.14.
|
|
794
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
795
795
|
const redirectUriEmpty = "redirect_uri_empty";
|
|
796
796
|
const authorityUriInsecure = "authority_uri_insecure";
|
|
797
797
|
const urlParseError = "url_parse_error";
|
|
@@ -813,13 +813,13 @@ const invalidDpopNonce = "invalid_dpop_nonce";
|
|
|
813
813
|
const dpopMissingResourceContext = "dpop_missing_resource_context";
|
|
814
814
|
//#endregion
|
|
815
815
|
//#region node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.mjs
|
|
816
|
-
/*! @azure/msal-common v16.14.
|
|
816
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
817
817
|
function isOpenIdConfigResponse(response) {
|
|
818
818
|
return response.hasOwnProperty("authorization_endpoint") && response.hasOwnProperty("token_endpoint") && response.hasOwnProperty("issuer") && response.hasOwnProperty("jwks_uri");
|
|
819
819
|
}
|
|
820
820
|
//#endregion
|
|
821
821
|
//#region node_modules/@azure/msal-common/dist/utils/StringUtils.mjs
|
|
822
|
-
/*! @azure/msal-common v16.14.
|
|
822
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
823
823
|
/**
|
|
824
824
|
* @hidden
|
|
825
825
|
*/
|
|
@@ -889,7 +889,7 @@ var StringUtils = class {
|
|
|
889
889
|
};
|
|
890
890
|
//#endregion
|
|
891
891
|
//#region node_modules/@azure/msal-common/dist/url/UrlString.mjs
|
|
892
|
-
/*! @azure/msal-common v16.14.
|
|
892
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
893
893
|
/**
|
|
894
894
|
* Url object class which can perform various transformations on url strings.
|
|
895
895
|
*/
|
|
@@ -996,7 +996,7 @@ var UrlString = class UrlString {
|
|
|
996
996
|
};
|
|
997
997
|
//#endregion
|
|
998
998
|
//#region node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.mjs
|
|
999
|
-
/*! @azure/msal-common v16.14.
|
|
999
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
1000
1000
|
const endpointHosts = [
|
|
1001
1001
|
{ host: "login.microsoftonline.com" },
|
|
1002
1002
|
{ host: "login.partner.microsoftonline.cn" },
|
|
@@ -1127,7 +1127,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
//#endregion
|
|
1129
1129
|
//#region node_modules/@azure/msal-common/dist/authority/AuthorityOptions.mjs
|
|
1130
|
-
/*! @azure/msal-common v16.14.
|
|
1130
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
1131
1131
|
const AzureCloudInstance = {
|
|
1132
1132
|
None: "none",
|
|
1133
1133
|
AzurePublic: "https://login.microsoftonline.com",
|
|
@@ -1137,19 +1137,19 @@ const AzureCloudInstance = {
|
|
|
1137
1137
|
};
|
|
1138
1138
|
//#endregion
|
|
1139
1139
|
//#region node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.mjs
|
|
1140
|
-
/*! @azure/msal-common v16.14.
|
|
1140
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
1141
1141
|
function isCloudInstanceDiscoveryResponse(response) {
|
|
1142
1142
|
return response.hasOwnProperty("tenant_discovery_endpoint") && response.hasOwnProperty("metadata");
|
|
1143
1143
|
}
|
|
1144
1144
|
//#endregion
|
|
1145
1145
|
//#region node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs
|
|
1146
|
-
/*! @azure/msal-common v16.14.
|
|
1146
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
1147
1147
|
function isCloudInstanceDiscoveryErrorResponse(response) {
|
|
1148
1148
|
return response.hasOwnProperty("error") && response.hasOwnProperty("error_description");
|
|
1149
1149
|
}
|
|
1150
1150
|
//#endregion
|
|
1151
1151
|
//#region node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvents.mjs
|
|
1152
|
-
/*! @azure/msal-common v16.14.
|
|
1152
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
1153
1153
|
/**
|
|
1154
1154
|
* Time spent sending/waiting for the response of a request to the token endpoint
|
|
1155
1155
|
*/
|
|
@@ -1208,7 +1208,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
|
|
|
1208
1208
|
const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
|
|
1209
1209
|
//#endregion
|
|
1210
1210
|
//#region node_modules/@azure/msal-common/dist/utils/FunctionWrappers.mjs
|
|
1211
|
-
/*! @azure/msal-common v16.14.
|
|
1211
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
1212
1212
|
/**
|
|
1213
1213
|
* Wraps a function with a performance measurement.
|
|
1214
1214
|
* Usage: invoke(functionToCall, performanceClient, "EventName", "correlationId")(...argsToPassToFunction)
|
|
@@ -1277,7 +1277,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
|
|
|
1277
1277
|
};
|
|
1278
1278
|
//#endregion
|
|
1279
1279
|
//#region node_modules/@azure/msal-common/dist/authority/RegionDiscovery.mjs
|
|
1280
|
-
/*! @azure/msal-common v16.14.
|
|
1280
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
1281
1281
|
var RegionDiscovery = class RegionDiscovery {
|
|
1282
1282
|
constructor(networkInterface, logger, performanceClient, correlationId) {
|
|
1283
1283
|
this.networkInterface = networkInterface;
|
|
@@ -1348,7 +1348,7 @@ var RegionDiscovery = class RegionDiscovery {
|
|
|
1348
1348
|
RegionDiscovery.IMDS_OPTIONS = { headers: { Metadata: "true" } };
|
|
1349
1349
|
//#endregion
|
|
1350
1350
|
//#region node_modules/@azure/msal-common/dist/utils/TimeUtils.mjs
|
|
1351
|
-
/*! @azure/msal-common v16.14.
|
|
1351
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
1352
1352
|
/**
|
|
1353
1353
|
* Utility functions for managing date and time operations.
|
|
1354
1354
|
*/
|
|
@@ -1393,7 +1393,7 @@ function delay(t, value) {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
//#endregion
|
|
1395
1395
|
//#region node_modules/@azure/msal-common/dist/cache/utils/CacheHelpers.mjs
|
|
1396
|
-
/*! @azure/msal-common v16.14.
|
|
1396
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
1397
1397
|
/**
|
|
1398
1398
|
* Create IdTokenEntity
|
|
1399
1399
|
* @param homeAccountId
|
|
@@ -1593,7 +1593,7 @@ function serializeAttributeTokens(attributeTokens) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
//#endregion
|
|
1595
1595
|
//#region node_modules/@azure/msal-common/dist/authority/Authority.mjs
|
|
1596
|
-
/*! @azure/msal-common v16.14.
|
|
1596
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
1597
1597
|
/**
|
|
1598
1598
|
* The authority class validates the authority URIs used by the user, and retrieves the OpenID Configuration Data from the
|
|
1599
1599
|
* endpoint. It will store the pertinent config data in this object for use during token calls.
|
|
@@ -2327,7 +2327,7 @@ function buildStaticAuthorityOptions(authOptions) {
|
|
|
2327
2327
|
}
|
|
2328
2328
|
//#endregion
|
|
2329
2329
|
//#region node_modules/@azure/msal-common/dist/authority/AuthorityFactory.mjs
|
|
2330
|
-
/*! @azure/msal-common v16.14.
|
|
2330
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
2331
2331
|
/**
|
|
2332
2332
|
* Create an authority object of the correct type based on the url
|
|
2333
2333
|
* Performs basic authority validation - checks to see if the authority is of a valid type (i.e. aad, b2c, adfs)
|
|
@@ -2354,7 +2354,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
|
|
|
2354
2354
|
}
|
|
2355
2355
|
//#endregion
|
|
2356
2356
|
//#region node_modules/@azure/msal-common/dist/request/ScopeSet.mjs
|
|
2357
|
-
/*! @azure/msal-common v16.14.
|
|
2357
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
2358
2358
|
/**
|
|
2359
2359
|
* The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes
|
|
2360
2360
|
* the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions
|
|
@@ -2506,7 +2506,7 @@ var ScopeSet = class ScopeSet {
|
|
|
2506
2506
|
};
|
|
2507
2507
|
//#endregion
|
|
2508
2508
|
//#region node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.mjs
|
|
2509
|
-
/*! @azure/msal-common v16.14.
|
|
2509
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
2510
2510
|
function instrumentBrokerParams(parameters, correlationId, performanceClient) {
|
|
2511
2511
|
if (!correlationId) return;
|
|
2512
2512
|
const clientId = parameters.get(CLIENT_ID);
|
|
@@ -2915,7 +2915,7 @@ function addAttributeTokens(parameters, attributeTokens) {
|
|
|
2915
2915
|
}
|
|
2916
2916
|
//#endregion
|
|
2917
2917
|
//#region node_modules/@azure/msal-common/dist/utils/UrlUtils.mjs
|
|
2918
|
-
/*! @azure/msal-common v16.14.
|
|
2918
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
2919
2919
|
/**
|
|
2920
2920
|
* Parses hash string from given string. Returns empty string if no hash symbol is found.
|
|
2921
2921
|
* @param hashString
|
|
@@ -2951,7 +2951,7 @@ function mapToQueryString(parameters) {
|
|
|
2951
2951
|
}
|
|
2952
2952
|
//#endregion
|
|
2953
2953
|
//#region node_modules/@azure/msal-common/dist/crypto/ICrypto.mjs
|
|
2954
|
-
/*! @azure/msal-common v16.14.
|
|
2954
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
2955
2955
|
/**
|
|
2956
2956
|
* Shared JOSE algorithm literals used by MSAL package internals.
|
|
2957
2957
|
* @internal
|
|
@@ -2995,7 +2995,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
|
|
|
2995
2995
|
};
|
|
2996
2996
|
//#endregion
|
|
2997
2997
|
//#region node_modules/@azure/msal-common/dist/crypto/ITokenBindingKeyManager.mjs
|
|
2998
|
-
/*! @azure/msal-common v16.14.
|
|
2998
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
2999
2999
|
/**
|
|
3000
3000
|
* Default token-binding key manager used when a platform-specific implementation
|
|
3001
3001
|
* has not been provided.
|
|
@@ -3014,7 +3014,7 @@ const DEFAULT_TOKEN_BINDING_KEY_MANAGER = {
|
|
|
3014
3014
|
};
|
|
3015
3015
|
//#endregion
|
|
3016
3016
|
//#region node_modules/@azure/msal-common/dist/logger/Logger.mjs
|
|
3017
|
-
/*! @azure/msal-common v16.14.
|
|
3017
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
3018
3018
|
/**
|
|
3019
3019
|
* Log message level.
|
|
3020
3020
|
*/
|
|
@@ -3245,17 +3245,17 @@ var Logger = class Logger {
|
|
|
3245
3245
|
};
|
|
3246
3246
|
//#endregion
|
|
3247
3247
|
//#region node_modules/@azure/msal-common/dist/packageMetadata.mjs
|
|
3248
|
-
/*! @azure/msal-common v16.14.
|
|
3248
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
3249
3249
|
const name$1 = "@azure/msal-common";
|
|
3250
|
-
const version$1 = "16.14.
|
|
3250
|
+
const version$1 = "16.14.1";
|
|
3251
3251
|
//#endregion
|
|
3252
3252
|
//#region node_modules/@azure/msal-common/dist/error/CacheErrorCodes.mjs
|
|
3253
|
-
/*! @azure/msal-common v16.14.
|
|
3253
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
3254
3254
|
const cacheQuotaExceeded = "cache_quota_exceeded";
|
|
3255
3255
|
const cacheErrorUnknown = "cache_error_unknown";
|
|
3256
3256
|
//#endregion
|
|
3257
3257
|
//#region node_modules/@azure/msal-common/dist/error/CacheError.mjs
|
|
3258
|
-
/*! @azure/msal-common v16.14.
|
|
3258
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
3259
3259
|
/**
|
|
3260
3260
|
* Error thrown when there is an error with the cache
|
|
3261
3261
|
*/
|
|
@@ -3281,7 +3281,7 @@ function createCacheError(e) {
|
|
|
3281
3281
|
}
|
|
3282
3282
|
//#endregion
|
|
3283
3283
|
//#region node_modules/@azure/msal-common/dist/cache/CacheManager.mjs
|
|
3284
|
-
/*! @azure/msal-common v16.14.
|
|
3284
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
3285
3285
|
/**
|
|
3286
3286
|
* Interface class which implement cache storage functions used by MSAL to perform validity checks, and store tokens.
|
|
3287
3287
|
* @internal
|
|
@@ -4130,7 +4130,7 @@ var DefaultStorageClass = class extends CacheManager {
|
|
|
4130
4130
|
};
|
|
4131
4131
|
//#endregion
|
|
4132
4132
|
//#region node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.mjs
|
|
4133
|
-
/*! @azure/msal-common v16.14.
|
|
4133
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4134
4134
|
/**
|
|
4135
4135
|
* State of the performance event.
|
|
4136
4136
|
*
|
|
@@ -4144,7 +4144,7 @@ const PerformanceEventStatus = {
|
|
|
4144
4144
|
};
|
|
4145
4145
|
//#endregion
|
|
4146
4146
|
//#region node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.mjs
|
|
4147
|
-
/*! @azure/msal-common v16.14.
|
|
4147
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4148
4148
|
var StubPerformanceClient = class {
|
|
4149
4149
|
generateId() {
|
|
4150
4150
|
return "callback-id";
|
|
@@ -4186,7 +4186,7 @@ var StubPerformanceClient = class {
|
|
|
4186
4186
|
};
|
|
4187
4187
|
//#endregion
|
|
4188
4188
|
//#region node_modules/@azure/msal-common/dist/config/ClientConfiguration.mjs
|
|
4189
|
-
/*! @azure/msal-common v16.14.
|
|
4189
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4190
4190
|
const DEFAULT_SYSTEM_OPTIONS$1 = {
|
|
4191
4191
|
tokenRenewalOffsetSeconds: 300,
|
|
4192
4192
|
preventCorsPreflight: false
|
|
@@ -4244,7 +4244,7 @@ function buildClientConfiguration({ authOptions: userAuthOptions, systemOptions:
|
|
|
4244
4244
|
...userSystemOptions
|
|
4245
4245
|
},
|
|
4246
4246
|
loggerOptions,
|
|
4247
|
-
storageInterface: storageImplementation || new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, "@azure/msal-common", "16.14.
|
|
4247
|
+
storageInterface: storageImplementation || new DefaultStorageClass(userAuthOptions.clientId, DEFAULT_CRYPTO_IMPLEMENTATION, new Logger(loggerOptions, "@azure/msal-common", "16.14.1"), new StubPerformanceClient(), void 0, resolvedTokenBindingKeyManager),
|
|
4248
4248
|
networkInterface: networkImplementation || DEFAULT_NETWORK_IMPLEMENTATION,
|
|
4249
4249
|
cryptoInterface: cryptoImplementation || DEFAULT_CRYPTO_IMPLEMENTATION,
|
|
4250
4250
|
tokenBindingKeyManager: resolvedTokenBindingKeyManager,
|
|
@@ -4284,7 +4284,7 @@ function isOidcProtocolMode(config) {
|
|
|
4284
4284
|
}
|
|
4285
4285
|
//#endregion
|
|
4286
4286
|
//#region node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.mjs
|
|
4287
|
-
/*! @azure/msal-common v16.14.
|
|
4287
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4288
4288
|
/**
|
|
4289
4289
|
* This class instance helps track the memory changes facilitating
|
|
4290
4290
|
* decisions to read from and write to the persistent cache
|
|
@@ -4308,7 +4308,7 @@ function isOidcProtocolMode(config) {
|
|
|
4308
4308
|
};
|
|
4309
4309
|
//#endregion
|
|
4310
4310
|
//#region node_modules/@azure/msal-common/dist/error/JoseHeaderError.mjs
|
|
4311
|
-
/*! @azure/msal-common v16.14.
|
|
4311
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4312
4312
|
/**
|
|
4313
4313
|
* Error thrown when there is an error in the client code running on the browser.
|
|
4314
4314
|
*/
|
|
@@ -4325,7 +4325,7 @@ function createJoseHeaderError(code, correlationId) {
|
|
|
4325
4325
|
}
|
|
4326
4326
|
//#endregion
|
|
4327
4327
|
//#region node_modules/@azure/msal-common/dist/utils/ObjectUtils.mjs
|
|
4328
|
-
/*! @azure/msal-common v16.14.
|
|
4328
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4329
4329
|
/**
|
|
4330
4330
|
* Checks whether a value is a plain JSON-like object.
|
|
4331
4331
|
* Allows objects with null prototypes, but rejects arrays and object subclasses.
|
|
@@ -4339,14 +4339,14 @@ function isPlainObject(value) {
|
|
|
4339
4339
|
}
|
|
4340
4340
|
//#endregion
|
|
4341
4341
|
//#region node_modules/@azure/msal-common/dist/error/JoseHeaderErrorCodes.mjs
|
|
4342
|
-
/*! @azure/msal-common v16.14.
|
|
4342
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4343
4343
|
const missingKidError = "missing_kid_error";
|
|
4344
4344
|
const missingAlgError = "missing_alg_error";
|
|
4345
4345
|
const missingJwkError = "missing_jwk_error";
|
|
4346
4346
|
const invalidJwkError = "invalid_jwk_error";
|
|
4347
4347
|
//#endregion
|
|
4348
4348
|
//#region node_modules/@azure/msal-common/dist/crypto/JoseHeader.mjs
|
|
4349
|
-
/*! @azure/msal-common v16.14.
|
|
4349
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4350
4350
|
/** @internal */
|
|
4351
4351
|
var JoseHeader = class JoseHeader {
|
|
4352
4352
|
constructor(options, correlationId) {
|
|
@@ -4393,7 +4393,7 @@ var JoseHeader = class JoseHeader {
|
|
|
4393
4393
|
};
|
|
4394
4394
|
//#endregion
|
|
4395
4395
|
//#region node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.mjs
|
|
4396
|
-
/*! @azure/msal-common v16.14.
|
|
4396
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4397
4397
|
const KeyLocation = { SW: "sw" };
|
|
4398
4398
|
const SHR_TOKEN_BINDING_KEY_TYPE = "shr";
|
|
4399
4399
|
const SHR_TOKEN_BINDING_KEY_ALGORITHM = JsonWebTokenAlgorithms.RS256;
|
|
@@ -4478,7 +4478,7 @@ var PopTokenGenerator = class {
|
|
|
4478
4478
|
};
|
|
4479
4479
|
//#endregion
|
|
4480
4480
|
//#region node_modules/@azure/msal-common/dist/crypto/DpopProofGenerator.mjs
|
|
4481
|
-
/*! @azure/msal-common v16.14.
|
|
4481
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4482
4482
|
const DPOP_HTM_REGEX = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
4483
4483
|
const DPOP_TOKEN_BINDING_KEY_TYPE = "dpop";
|
|
4484
4484
|
const DPOP_JWT_HEADER_ALGORITHM = JsonWebTokenAlgorithms.ES256;
|
|
@@ -4603,7 +4603,7 @@ var DpopProofGenerator = class {
|
|
|
4603
4603
|
};
|
|
4604
4604
|
//#endregion
|
|
4605
4605
|
//#region node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthErrorCodes.mjs
|
|
4606
|
-
/*! @azure/msal-common v16.14.
|
|
4606
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4607
4607
|
/**
|
|
4608
4608
|
* MSAL-defined interaction required error code indicating no tokens are found in cache.
|
|
4609
4609
|
* @public
|
|
@@ -4616,7 +4616,7 @@ const noTokensFound = "no_tokens_found";
|
|
|
4616
4616
|
const refreshTokenExpired = "refresh_token_expired";
|
|
4617
4617
|
//#endregion
|
|
4618
4618
|
//#region node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.mjs
|
|
4619
|
-
/*! @azure/msal-common v16.14.
|
|
4619
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4620
4620
|
/**
|
|
4621
4621
|
* InteractionRequiredServerErrorMessage contains string constants used by error codes and messages returned by the server indicating interaction is required
|
|
4622
4622
|
*/
|
|
@@ -4674,7 +4674,7 @@ function createInteractionRequiredAuthError(errorCode, correlationId, errorMessa
|
|
|
4674
4674
|
}
|
|
4675
4675
|
//#endregion
|
|
4676
4676
|
//#region node_modules/@azure/msal-common/dist/error/ServerError.mjs
|
|
4677
|
-
/*! @azure/msal-common v16.14.
|
|
4677
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4678
4678
|
/**
|
|
4679
4679
|
* Error thrown when there is an error with the server code, for example, unavailability.
|
|
4680
4680
|
*/
|
|
@@ -4689,7 +4689,7 @@ var ServerError = class ServerError extends AuthError {
|
|
|
4689
4689
|
};
|
|
4690
4690
|
//#endregion
|
|
4691
4691
|
//#region node_modules/@azure/msal-common/dist/utils/ProtocolUtils.mjs
|
|
4692
|
-
/*! @azure/msal-common v16.14.
|
|
4692
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4693
4693
|
/**
|
|
4694
4694
|
* Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
|
|
4695
4695
|
* @param base64Decode
|
|
@@ -4715,7 +4715,7 @@ function parseRequestState(base64Decode, state, correlationId) {
|
|
|
4715
4715
|
}
|
|
4716
4716
|
//#endregion
|
|
4717
4717
|
//#region node_modules/@azure/msal-common/dist/response/ResponseHandler.mjs
|
|
4718
|
-
/*! @azure/msal-common v16.14.
|
|
4718
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4719
4719
|
/**
|
|
4720
4720
|
* Class that handles response parsing.
|
|
4721
4721
|
* @internal
|
|
@@ -4760,11 +4760,15 @@ var ResponseHandler = class ResponseHandler {
|
|
|
4760
4760
|
*/
|
|
4761
4761
|
async handleServerTokenResponse(serverTokenResponse, authority, reqTimestamp, request, apiId, authCodePayload, userAssertionHash, handlingRefreshTokenResponse, forceCacheRefreshTokenResponse, serverRequestId, additionalCacheKeyComponents) {
|
|
4762
4762
|
let idTokenClaims;
|
|
4763
|
-
if (serverTokenResponse.id_token)
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4763
|
+
if (serverTokenResponse.id_token) idTokenClaims = extractTokenClaims(serverTokenResponse.id_token || "", this.cryptoObj.base64Decode, request.correlationId);
|
|
4764
|
+
if (authCodePayload && Object.prototype.hasOwnProperty.call(authCodePayload, "nonce")) {
|
|
4765
|
+
const expectedNonce = authCodePayload.nonce;
|
|
4766
|
+
const tokenNonce = idTokenClaims?.nonce;
|
|
4767
|
+
if (tokenNonce !== void 0 && expectedNonce === void 0) {
|
|
4768
|
+
this.logger.warning("Authorization code response contains an ID Token nonce, but no expected nonce was supplied. Rejecting the response.", request.correlationId);
|
|
4769
|
+
throw createClientAuthError(nonceMismatch, request.correlationId);
|
|
4767
4770
|
}
|
|
4771
|
+
if (expectedNonce !== void 0 && (typeof expectedNonce !== "string" || typeof tokenNonce !== "string" || expectedNonce !== tokenNonce)) throw createClientAuthError(nonceMismatch, request.correlationId);
|
|
4768
4772
|
}
|
|
4769
4773
|
this.homeAccountIdentifier = generateHomeAccountId(serverTokenResponse.client_info || "", authority.authorityType, this.logger, this.cryptoObj, request.correlationId, idTokenClaims);
|
|
4770
4774
|
let requestStateObj;
|
|
@@ -4981,14 +4985,14 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
|
|
|
4981
4985
|
}
|
|
4982
4986
|
//#endregion
|
|
4983
4987
|
//#region node_modules/@azure/msal-common/dist/account/CcsCredential.mjs
|
|
4984
|
-
/*! @azure/msal-common v16.14.
|
|
4988
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4985
4989
|
const CcsCredentialType = {
|
|
4986
4990
|
HOME_ACCOUNT_ID: "home_account_id",
|
|
4987
4991
|
UPN: "UPN"
|
|
4988
4992
|
};
|
|
4989
4993
|
//#endregion
|
|
4990
4994
|
//#region node_modules/@azure/msal-common/dist/utils/ClientAssertionUtils.mjs
|
|
4991
|
-
/*! @azure/msal-common v16.14.
|
|
4995
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
4992
4996
|
async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiPath) {
|
|
4993
4997
|
if (typeof clientAssertion === "string") return clientAssertion;
|
|
4994
4998
|
else return clientAssertion({
|
|
@@ -4999,7 +5003,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint, fmiP
|
|
|
4999
5003
|
}
|
|
5000
5004
|
//#endregion
|
|
5001
5005
|
//#region node_modules/@azure/msal-common/dist/network/RequestThumbprint.mjs
|
|
5002
|
-
/*! @azure/msal-common v16.14.
|
|
5006
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
5003
5007
|
function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
5004
5008
|
return {
|
|
5005
5009
|
clientId,
|
|
@@ -5019,7 +5023,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
|
|
|
5019
5023
|
}
|
|
5020
5024
|
//#endregion
|
|
5021
5025
|
//#region node_modules/@azure/msal-common/dist/network/ThrottlingUtils.mjs
|
|
5022
|
-
/*! @azure/msal-common v16.14.
|
|
5026
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
5023
5027
|
/** @internal */
|
|
5024
5028
|
var ThrottlingUtils = class ThrottlingUtils {
|
|
5025
5029
|
/**
|
|
@@ -5095,7 +5099,7 @@ var ThrottlingUtils = class ThrottlingUtils {
|
|
|
5095
5099
|
};
|
|
5096
5100
|
//#endregion
|
|
5097
5101
|
//#region node_modules/@azure/msal-common/dist/error/NetworkError.mjs
|
|
5098
|
-
/*! @azure/msal-common v16.14.
|
|
5102
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
5099
5103
|
/**
|
|
5100
5104
|
* Represents network related errors
|
|
5101
5105
|
*/
|
|
@@ -5122,7 +5126,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
|
|
|
5122
5126
|
}
|
|
5123
5127
|
//#endregion
|
|
5124
5128
|
//#region node_modules/@azure/msal-common/dist/protocol/Token.mjs
|
|
5125
|
-
/*! @azure/msal-common v16.14.
|
|
5129
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
5126
5130
|
/**
|
|
5127
5131
|
* Creates default headers for requests to token endpoint
|
|
5128
5132
|
*/
|
|
@@ -5228,7 +5232,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
|
|
|
5228
5232
|
}
|
|
5229
5233
|
//#endregion
|
|
5230
5234
|
//#region node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.mjs
|
|
5231
|
-
/*! @azure/msal-common v16.14.
|
|
5235
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
5232
5236
|
/**
|
|
5233
5237
|
* Oauth2.0 Authorization Code client
|
|
5234
5238
|
* @internal
|
|
@@ -5388,7 +5392,7 @@ var AuthorizationCodeClient = class {
|
|
|
5388
5392
|
};
|
|
5389
5393
|
//#endregion
|
|
5390
5394
|
//#region node_modules/@azure/msal-common/dist/protocol/Authorize.mjs
|
|
5391
|
-
/*! @azure/msal-common v16.14.
|
|
5395
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
5392
5396
|
/**
|
|
5393
5397
|
* Returns map of parameters that are applicable to all calls to /authorize whether using PKCE or EAR
|
|
5394
5398
|
* @param config
|
|
@@ -5499,7 +5503,7 @@ function extractLoginHint(account) {
|
|
|
5499
5503
|
}
|
|
5500
5504
|
//#endregion
|
|
5501
5505
|
//#region node_modules/@azure/msal-common/dist/client/RefreshTokenClient.mjs
|
|
5502
|
-
/*! @azure/msal-common v16.14.
|
|
5506
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
5503
5507
|
const DEFAULT_REFRESH_TOKEN_EXPIRATION_OFFSET_SECONDS = 300;
|
|
5504
5508
|
/**
|
|
5505
5509
|
* OAuth2.0 refresh token client
|
|
@@ -5646,7 +5650,7 @@ var RefreshTokenClient = class {
|
|
|
5646
5650
|
};
|
|
5647
5651
|
//#endregion
|
|
5648
5652
|
//#region node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.mjs
|
|
5649
|
-
/*! @azure/msal-common v16.14.
|
|
5653
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
5650
5654
|
const skuGroupSeparator = ",";
|
|
5651
5655
|
const skuValueSeparator = "|";
|
|
5652
5656
|
function makeExtraSkuString(params) {
|
|
@@ -5841,7 +5845,7 @@ var ServerTelemetryManager = class ServerTelemetryManager {
|
|
|
5841
5845
|
};
|
|
5842
5846
|
//#endregion
|
|
5843
5847
|
//#region node_modules/@azure/msal-common/dist/client/SilentFlowClient.mjs
|
|
5844
|
-
/*! @azure/msal-common v16.14.
|
|
5848
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
5845
5849
|
/** @internal */
|
|
5846
5850
|
var SilentFlowClient = class {
|
|
5847
5851
|
constructor(configuration, performanceClient) {
|
|
@@ -5926,7 +5930,7 @@ var SilentFlowClient = class {
|
|
|
5926
5930
|
};
|
|
5927
5931
|
//#endregion
|
|
5928
5932
|
//#region node_modules/@azure/msal-common/dist/request/BaseAuthRequest.mjs
|
|
5929
|
-
/*! @azure/msal-common v16.14.
|
|
5933
|
+
/*! @azure/msal-common v16.14.1 2026-09-15 */
|
|
5930
5934
|
/**
|
|
5931
5935
|
* Helper to enforce resource parameter presence in token requests when isMcp is set in the configuration.
|
|
5932
5936
|
* If resource parameter is set in both the request and in extraQueryParameters or extraParameters, an error will be thrown.
|
|
@@ -5945,7 +5949,7 @@ function containsResourceParam(params) {
|
|
|
5945
5949
|
}
|
|
5946
5950
|
//#endregion
|
|
5947
5951
|
//#region node_modules/@azure/msal-node/dist/cache/serializer/Deserializer.mjs
|
|
5948
|
-
/*! @azure/msal-node
|
|
5952
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
5949
5953
|
/**
|
|
5950
5954
|
* This class deserializes cache entities read from the file into in-memory object types defined internally
|
|
5951
5955
|
* @internal
|
|
@@ -6093,7 +6097,7 @@ var Deserializer = class {
|
|
|
6093
6097
|
};
|
|
6094
6098
|
}
|
|
6095
6099
|
};
|
|
6096
|
-
/*! @azure/msal-node
|
|
6100
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6097
6101
|
/**
|
|
6098
6102
|
* Managed Identity Query Parameters - used in network requests
|
|
6099
6103
|
*/
|
|
@@ -6206,7 +6210,7 @@ const LOOPBACK_SERVER_CONSTANTS = {
|
|
|
6206
6210
|
};
|
|
6207
6211
|
//#endregion
|
|
6208
6212
|
//#region node_modules/@azure/msal-node/dist/network/HttpClient.mjs
|
|
6209
|
-
/*! @azure/msal-node
|
|
6213
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6210
6214
|
/**
|
|
6211
6215
|
* HTTP client implementation using Node.js native fetch API.
|
|
6212
6216
|
*
|
|
@@ -6343,7 +6347,7 @@ function getFetchHeaders(options) {
|
|
|
6343
6347
|
}
|
|
6344
6348
|
//#endregion
|
|
6345
6349
|
//#region node_modules/@azure/msal-node/dist/error/ManagedIdentityErrorCodes.mjs
|
|
6346
|
-
/*! @azure/msal-node
|
|
6350
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6347
6351
|
const invalidFileExtension = "invalid_file_extension";
|
|
6348
6352
|
const invalidFilePath = "invalid_file_path";
|
|
6349
6353
|
const invalidManagedIdentityIdType = "invalid_managed_identity_id_type";
|
|
@@ -6367,7 +6371,7 @@ const MsiEnvironmentVariableUrlMalformedErrorCodes = {
|
|
|
6367
6371
|
};
|
|
6368
6372
|
//#endregion
|
|
6369
6373
|
//#region node_modules/@azure/msal-node/dist/error/ManagedIdentityError.mjs
|
|
6370
|
-
/*! @azure/msal-node
|
|
6374
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6371
6375
|
/**
|
|
6372
6376
|
* ManagedIdentityErrorMessage class containing string constants used by error codes and messages.
|
|
6373
6377
|
*/
|
|
@@ -6404,10 +6408,10 @@ function createManagedIdentityError(errorCode, correlationId) {
|
|
|
6404
6408
|
}
|
|
6405
6409
|
//#endregion
|
|
6406
6410
|
//#region node_modules/@azure/msal-node/dist/config/ManagedIdentityId.mjs
|
|
6407
|
-
/*! @azure/msal-node
|
|
6411
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6408
6412
|
//#endregion
|
|
6409
6413
|
//#region node_modules/@azure/msal-node/dist/error/NodeAuthError.mjs
|
|
6410
|
-
/*! @azure/msal-node
|
|
6414
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6411
6415
|
/**
|
|
6412
6416
|
* NodeAuthErrorMessage class containing string constants used by error codes and messages.
|
|
6413
6417
|
*/
|
|
@@ -6436,6 +6440,10 @@ const NodeAuthErrorMessage = {
|
|
|
6436
6440
|
code: "loopback_server_timeout",
|
|
6437
6441
|
desc: "Timed out waiting for auth code listener to be registered."
|
|
6438
6442
|
},
|
|
6443
|
+
loopbackServerQueryResponseNotSupported: {
|
|
6444
|
+
code: "loopback_server_query_response_not_supported",
|
|
6445
|
+
desc: "The loopback server received an OAuth response in the URL. Interactive authentication requires form_post."
|
|
6446
|
+
},
|
|
6439
6447
|
stateNotFoundError: {
|
|
6440
6448
|
code: "state_not_found",
|
|
6441
6449
|
desc: "State not found. Please verify that the request originated from msal."
|
|
@@ -6491,6 +6499,12 @@ var NodeAuthError = class NodeAuthError extends AuthError {
|
|
|
6491
6499
|
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerTimeout.code, correlationId, `${NodeAuthErrorMessage.loopbackServerTimeout.desc}`);
|
|
6492
6500
|
}
|
|
6493
6501
|
/**
|
|
6502
|
+
* Creates an error thrown if the loopback server receives an OAuth response in a query string.
|
|
6503
|
+
*/
|
|
6504
|
+
static createLoopbackServerQueryResponseNotSupportedError() {
|
|
6505
|
+
return new NodeAuthError(NodeAuthErrorMessage.loopbackServerQueryResponseNotSupported.code, "", NodeAuthErrorMessage.loopbackServerQueryResponseNotSupported.desc);
|
|
6506
|
+
}
|
|
6507
|
+
/**
|
|
6494
6508
|
* Creates an error thrown when the state is not present.
|
|
6495
6509
|
*/
|
|
6496
6510
|
static createStateNotFoundError(correlationId = "") {
|
|
@@ -6511,7 +6525,7 @@ var NodeAuthError = class NodeAuthError extends AuthError {
|
|
|
6511
6525
|
};
|
|
6512
6526
|
//#endregion
|
|
6513
6527
|
//#region node_modules/@azure/msal-node/dist/config/Configuration.mjs
|
|
6514
|
-
/*! @azure/msal-node
|
|
6528
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6515
6529
|
const DEFAULT_AUTH_OPTIONS = {
|
|
6516
6530
|
clientId: "",
|
|
6517
6531
|
authority: DEFAULT_AUTHORITY,
|
|
@@ -6586,7 +6600,7 @@ function buildAppConfiguration({ auth, broker, cache, system, telemetry }) {
|
|
|
6586
6600
|
}
|
|
6587
6601
|
//#endregion
|
|
6588
6602
|
//#region node_modules/@azure/msal-node/dist/crypto/GuidGenerator.mjs
|
|
6589
|
-
/*! @azure/msal-node
|
|
6603
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6590
6604
|
var GuidGenerator = class {
|
|
6591
6605
|
/**
|
|
6592
6606
|
* Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
|
|
@@ -6605,7 +6619,7 @@ var GuidGenerator = class {
|
|
|
6605
6619
|
};
|
|
6606
6620
|
//#endregion
|
|
6607
6621
|
//#region node_modules/@azure/msal-node/dist/utils/EncodingUtils.mjs
|
|
6608
|
-
/*! @azure/msal-node
|
|
6622
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6609
6623
|
var EncodingUtils = class EncodingUtils {
|
|
6610
6624
|
/**
|
|
6611
6625
|
* 'utf8': Multibyte encoded Unicode characters. Many web pages and other document formats use UTF-8.
|
|
@@ -6643,7 +6657,7 @@ var EncodingUtils = class EncodingUtils {
|
|
|
6643
6657
|
};
|
|
6644
6658
|
//#endregion
|
|
6645
6659
|
//#region node_modules/@azure/msal-node/dist/crypto/HashUtils.mjs
|
|
6646
|
-
/*! @azure/msal-node
|
|
6660
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6647
6661
|
var HashUtils = class {
|
|
6648
6662
|
/**
|
|
6649
6663
|
* generate 'SHA256' hash
|
|
@@ -6655,7 +6669,7 @@ var HashUtils = class {
|
|
|
6655
6669
|
};
|
|
6656
6670
|
//#endregion
|
|
6657
6671
|
//#region node_modules/@azure/msal-node/dist/crypto/PkceGenerator.mjs
|
|
6658
|
-
/*! @azure/msal-node
|
|
6672
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6659
6673
|
/**
|
|
6660
6674
|
* https://tools.ietf.org/html/rfc7636#page-8
|
|
6661
6675
|
*/
|
|
@@ -6699,7 +6713,7 @@ var PkceGenerator = class {
|
|
|
6699
6713
|
};
|
|
6700
6714
|
//#endregion
|
|
6701
6715
|
//#region node_modules/@azure/msal-node/dist/crypto/CryptoProvider.mjs
|
|
6702
|
-
/*! @azure/msal-node
|
|
6716
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6703
6717
|
/**
|
|
6704
6718
|
* This class implements MSAL node's crypto interface, which allows it to perform base64 encoding and decoding, generating cryptographically random GUIDs and
|
|
6705
6719
|
* implementing Proof Key for Code Exchange specs for the OAuth Authorization Code Flow using PKCE (rfc here: https://tools.ietf.org/html/rfc7636).
|
|
@@ -6786,7 +6800,7 @@ var CryptoProvider = class {
|
|
|
6786
6800
|
};
|
|
6787
6801
|
//#endregion
|
|
6788
6802
|
//#region node_modules/@azure/msal-node/dist/cache/CacheHelpers.mjs
|
|
6789
|
-
/*! @azure/msal-node
|
|
6803
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6790
6804
|
/**
|
|
6791
6805
|
* Computes a combined hash from additional cache key components.
|
|
6792
6806
|
*
|
|
@@ -6840,7 +6854,7 @@ function generateAccountKey(account) {
|
|
|
6840
6854
|
}
|
|
6841
6855
|
//#endregion
|
|
6842
6856
|
//#region node_modules/@azure/msal-node/dist/cache/NodeStorage.mjs
|
|
6843
|
-
/*! @azure/msal-node
|
|
6857
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
6844
6858
|
/**
|
|
6845
6859
|
* This class implements Storage for node, reading cache from user specified storage location or an extension library
|
|
6846
6860
|
* @public
|
|
@@ -7207,7 +7221,7 @@ var NodeStorage = class extends CacheManager {
|
|
|
7207
7221
|
};
|
|
7208
7222
|
//#endregion
|
|
7209
7223
|
//#region node_modules/@azure/msal-node/dist/cache/TokenCache.mjs
|
|
7210
|
-
/*! @azure/msal-node
|
|
7224
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
7211
7225
|
const defaultSerializedCache = {
|
|
7212
7226
|
Account: {},
|
|
7213
7227
|
IdToken: {},
|
|
@@ -11603,7 +11617,7 @@ var import_jsonwebtoken = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
|
|
|
11603
11617
|
TokenExpiredError: require_TokenExpiredError()
|
|
11604
11618
|
};
|
|
11605
11619
|
})))(), 1);
|
|
11606
|
-
/*! @azure/msal-node
|
|
11620
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
11607
11621
|
const userTimeoutReached = "user_timeout_reached";
|
|
11608
11622
|
const invalidAssertion = "invalid_assertion";
|
|
11609
11623
|
const deviceCodePollingCancelled = "device_code_polling_cancelled";
|
|
@@ -11611,7 +11625,7 @@ const deviceCodeExpired = "device_code_expired";
|
|
|
11611
11625
|
const deviceCodeUnknownError = "device_code_unknown_error";
|
|
11612
11626
|
//#endregion
|
|
11613
11627
|
//#region node_modules/@azure/msal-node/dist/client/ClientAssertion.mjs
|
|
11614
|
-
/*! @azure/msal-node
|
|
11628
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
11615
11629
|
/**
|
|
11616
11630
|
* Client assertion of type jwt-bearer used in confidential client flows
|
|
11617
11631
|
* @public
|
|
@@ -11719,12 +11733,12 @@ var ClientAssertion = class ClientAssertion {
|
|
|
11719
11733
|
};
|
|
11720
11734
|
//#endregion
|
|
11721
11735
|
//#region node_modules/@azure/msal-node/dist/packageMetadata.mjs
|
|
11722
|
-
/*! @azure/msal-node
|
|
11736
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
11723
11737
|
const name = "@azure/msal-node";
|
|
11724
|
-
const version = "
|
|
11738
|
+
const version = "7.0.0";
|
|
11725
11739
|
//#endregion
|
|
11726
11740
|
//#region node_modules/@azure/msal-node/dist/client/BaseClient.mjs
|
|
11727
|
-
/*! @azure/msal-node
|
|
11741
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
11728
11742
|
/**
|
|
11729
11743
|
* Base application class which will construct requests to send to and handle responses from the Microsoft STS using the authorization code flow.
|
|
11730
11744
|
* @internal
|
|
@@ -11776,7 +11790,7 @@ var BaseClient = class {
|
|
|
11776
11790
|
};
|
|
11777
11791
|
//#endregion
|
|
11778
11792
|
//#region node_modules/@azure/msal-node/dist/client/UsernamePasswordClient.mjs
|
|
11779
|
-
/*! @azure/msal-node
|
|
11793
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
11780
11794
|
/**
|
|
11781
11795
|
* Oauth2.0 Password grant client
|
|
11782
11796
|
* Note: We are only supporting public clients for password grant and for purely testing purposes
|
|
@@ -11857,7 +11871,7 @@ var UsernamePasswordClient = class extends BaseClient {
|
|
|
11857
11871
|
};
|
|
11858
11872
|
//#endregion
|
|
11859
11873
|
//#region node_modules/@azure/msal-node/dist/protocol/Authorize.mjs
|
|
11860
|
-
/*! @azure/msal-node
|
|
11874
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
11861
11875
|
/**
|
|
11862
11876
|
* Constructs the full /authorize URL with request parameters
|
|
11863
11877
|
* @param config
|
|
@@ -11885,8 +11899,103 @@ function getAuthCodeRequestUrl(config, authority, request, logger) {
|
|
|
11885
11899
|
return getAuthorizeUrl(authority, parameters);
|
|
11886
11900
|
}
|
|
11887
11901
|
//#endregion
|
|
11902
|
+
//#region node_modules/@azure/msal-node/dist/client/SilentRequestCoalescer.mjs
|
|
11903
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
11904
|
+
const activeSilentTokenRequests = /* @__PURE__ */ new WeakMap();
|
|
11905
|
+
/**
|
|
11906
|
+
* Shares an in-flight silent acquisition while preserving each caller's correlation ID.
|
|
11907
|
+
*/
|
|
11908
|
+
function acquireTokenSilentDeduped(owner, logger, silentRequestKey, correlationId, acquireToken) {
|
|
11909
|
+
const existingRequests = activeSilentTokenRequests.get(owner);
|
|
11910
|
+
const activeRequests = existingRequests || /* @__PURE__ */ new Map();
|
|
11911
|
+
if (!existingRequests) activeSilentTokenRequests.set(owner, activeRequests);
|
|
11912
|
+
const inProgressRequest = activeRequests.get(silentRequestKey);
|
|
11913
|
+
if (inProgressRequest) {
|
|
11914
|
+
logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call", correlationId);
|
|
11915
|
+
return applyCallerCorrelationIdToResult(inProgressRequest, correlationId);
|
|
11916
|
+
}
|
|
11917
|
+
logger.verbose("acquireTokenSilent called for the first time, storing active request", correlationId);
|
|
11918
|
+
const activeRequest = Promise.resolve().then(acquireToken).finally(() => {
|
|
11919
|
+
activeRequests.delete(silentRequestKey);
|
|
11920
|
+
if (activeRequests.size === 0) activeSilentTokenRequests.delete(owner);
|
|
11921
|
+
});
|
|
11922
|
+
activeRequests.set(silentRequestKey, activeRequest);
|
|
11923
|
+
return applyCallerCorrelationIdToResult(activeRequest, correlationId);
|
|
11924
|
+
}
|
|
11925
|
+
/**
|
|
11926
|
+
* Builds the key used to identify equivalent in-progress silent requests.
|
|
11927
|
+
*/
|
|
11928
|
+
function getSilentRequestKey(input) {
|
|
11929
|
+
const { request } = input;
|
|
11930
|
+
const authority = input.requestType === "native" ? request.authority : input.authority;
|
|
11931
|
+
const commonKeyFields = {
|
|
11932
|
+
requestType: input.requestType,
|
|
11933
|
+
clientId: input.requestType === "native" ? input.request.clientId : input.clientId,
|
|
11934
|
+
authority,
|
|
11935
|
+
scopes: canonicalizeRequestValues(request.scopes),
|
|
11936
|
+
claims: request.claims,
|
|
11937
|
+
authenticationScheme: request.authenticationScheme,
|
|
11938
|
+
resourceRequestMethod: request.resourceRequestMethod,
|
|
11939
|
+
resourceRequestUri: request.resourceRequestUri,
|
|
11940
|
+
forceRefresh: request.forceRefresh,
|
|
11941
|
+
redirectUri: request.redirectUri || "",
|
|
11942
|
+
resource: request.resource,
|
|
11943
|
+
extraParameters: canonicalizeRequestValues(request.extraParameters)
|
|
11944
|
+
};
|
|
11945
|
+
if (input.requestType === "native") return JSON.stringify({
|
|
11946
|
+
...commonKeyFields,
|
|
11947
|
+
accountId: input.request.accountId,
|
|
11948
|
+
shrNonce: input.request.shrNonce,
|
|
11949
|
+
extraScopesToConsent: canonicalizeRequestValues(input.request.extraScopesToConsent),
|
|
11950
|
+
loginHint: input.request.loginHint,
|
|
11951
|
+
prompt: input.request.prompt
|
|
11952
|
+
});
|
|
11953
|
+
const nonNativeRequest = input.request;
|
|
11954
|
+
const thumbprint = getRequestThumbprint(input.clientId, {
|
|
11955
|
+
...nonNativeRequest,
|
|
11956
|
+
authority
|
|
11957
|
+
}, nonNativeRequest.account.homeAccountId);
|
|
11958
|
+
return JSON.stringify({
|
|
11959
|
+
...thumbprint,
|
|
11960
|
+
...commonKeyFields,
|
|
11961
|
+
accountTenantId: nonNativeRequest.account.tenantId,
|
|
11962
|
+
accountEnvironment: nonNativeRequest.account.environment,
|
|
11963
|
+
refreshTokenExpirationOffsetSeconds: nonNativeRequest.refreshTokenExpirationOffsetSeconds,
|
|
11964
|
+
extraQueryParameters: canonicalizeRequestValues(nonNativeRequest.extraQueryParameters),
|
|
11965
|
+
skipBrokerClaims: thumbprint.embeddedClientId || nonNativeRequest.extraParameters?.["brk_client_id"] ? nonNativeRequest.skipBrokerClaims : void 0
|
|
11966
|
+
});
|
|
11967
|
+
}
|
|
11968
|
+
/**
|
|
11969
|
+
* Copies mutable native request values so execution cannot diverge from the stored key.
|
|
11970
|
+
*/
|
|
11971
|
+
function snapshotNativeRequest(request) {
|
|
11972
|
+
return {
|
|
11973
|
+
...request,
|
|
11974
|
+
scopes: [...request.scopes],
|
|
11975
|
+
extraParameters: request.extraParameters ? { ...request.extraParameters } : void 0,
|
|
11976
|
+
extraScopesToConsent: request.extraScopesToConsent ? [...request.extraScopesToConsent] : void 0
|
|
11977
|
+
};
|
|
11978
|
+
}
|
|
11979
|
+
/**
|
|
11980
|
+
* Canonicalizes scope sets and request dictionaries without changing the outgoing request.
|
|
11981
|
+
*/
|
|
11982
|
+
function canonicalizeRequestValues(values) {
|
|
11983
|
+
if (Array.isArray(values)) return Array.from(new Set(values.map((scope) => scope.trim()).filter((scope) => scope.length > 0))).sort();
|
|
11984
|
+
return values ? Object.keys(values).sort().map((key) => [key, values[key]]) : void 0;
|
|
11985
|
+
}
|
|
11986
|
+
/**
|
|
11987
|
+
* Applies the caller's correlation ID to successful results.
|
|
11988
|
+
* Shared failures retain the original error and underlying operation correlation ID.
|
|
11989
|
+
*/
|
|
11990
|
+
function applyCallerCorrelationIdToResult(activeRequest, correlationId) {
|
|
11991
|
+
return activeRequest.then((result) => ({
|
|
11992
|
+
...result,
|
|
11993
|
+
correlationId
|
|
11994
|
+
}));
|
|
11995
|
+
}
|
|
11996
|
+
//#endregion
|
|
11888
11997
|
//#region node_modules/@azure/msal-node/dist/client/ClientApplication.mjs
|
|
11889
|
-
/*! @azure/msal-node
|
|
11998
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
11890
11999
|
/**
|
|
11891
12000
|
* Base abstract class for all ClientApplications - public and confidential
|
|
11892
12001
|
* @public
|
|
@@ -11943,10 +12052,11 @@ var ClientApplication = class {
|
|
|
11943
12052
|
state: ""
|
|
11944
12053
|
};
|
|
11945
12054
|
}
|
|
11946
|
-
|
|
12055
|
+
const expectedNonce = request.nonce !== void 0 ? request.nonce : validatedAuthCodePayload?.nonce;
|
|
12056
|
+
validatedAuthCodePayload = {
|
|
11947
12057
|
...validatedAuthCodePayload,
|
|
11948
12058
|
code: request.code,
|
|
11949
|
-
nonce:
|
|
12059
|
+
nonce: expectedNonce
|
|
11950
12060
|
};
|
|
11951
12061
|
const validRequest = {
|
|
11952
12062
|
...request,
|
|
@@ -11996,6 +12106,7 @@ var ClientApplication = class {
|
|
|
11996
12106
|
*
|
|
11997
12107
|
* This API expects the user to provide an account object and looks into the cache to retrieve the token if present.
|
|
11998
12108
|
* There is also an optional "forceRefresh" boolean the user can send to bypass the cache for access_token and id_token.
|
|
12109
|
+
* Concurrent requests with the same request thumbprint return the same in-progress result.
|
|
11999
12110
|
* In case the refresh_token is expired or not found, an error is thrown
|
|
12000
12111
|
* and the guidance is for the user to call any interactive token acquisition API (eg: `acquireTokenByCode()`).
|
|
12001
12112
|
*/
|
|
@@ -12005,9 +12116,19 @@ var ClientApplication = class {
|
|
|
12005
12116
|
...await this.initializeBaseRequest(request),
|
|
12006
12117
|
forceRefresh: request.forceRefresh || false
|
|
12007
12118
|
};
|
|
12119
|
+
if (!validRequest.account) return this.acquireTokenSilentAsync(validRequest, request.azureCloudOptions);
|
|
12120
|
+
const silentRequestKey = getSilentRequestKey({
|
|
12121
|
+
requestType: "non-native",
|
|
12122
|
+
request: validRequest,
|
|
12123
|
+
authority: Authority.generateAuthority(validRequest.authority, request.azureCloudOptions || this.config.auth.azureCloudOptions),
|
|
12124
|
+
clientId: this.config.auth.clientId
|
|
12125
|
+
});
|
|
12126
|
+
return acquireTokenSilentDeduped(this, this.logger, silentRequestKey, validRequest.correlationId, () => this.acquireTokenSilentAsync(validRequest, request.azureCloudOptions));
|
|
12127
|
+
}
|
|
12128
|
+
async acquireTokenSilentAsync(validRequest, azureCloudOptions) {
|
|
12008
12129
|
const serverTelemetryManager = this.initializeServerTelemetryManager(ApiId.acquireTokenSilent, validRequest.correlationId, validRequest.forceRefresh);
|
|
12009
12130
|
try {
|
|
12010
|
-
const discoveredAuthority = await this.createAuthority(validRequest.authority, validRequest.correlationId, void 0,
|
|
12131
|
+
const discoveredAuthority = await this.createAuthority(validRequest.authority, validRequest.correlationId, void 0, azureCloudOptions);
|
|
12011
12132
|
const clientConfiguration = await this.buildOauthClientConfiguration(discoveredAuthority, validRequest.correlationId, validRequest.redirectUri || "", serverTelemetryManager);
|
|
12012
12133
|
const silentFlowClient = new SilentFlowClient(clientConfiguration, new StubPerformanceClient());
|
|
12013
12134
|
this.logger.verbose("Silent flow client created", validRequest.correlationId);
|
|
@@ -12205,7 +12326,7 @@ var ClientApplication = class {
|
|
|
12205
12326
|
};
|
|
12206
12327
|
//#endregion
|
|
12207
12328
|
//#region node_modules/@azure/msal-node/dist/network/LoopbackClient.mjs
|
|
12208
|
-
/*! @azure/msal-node
|
|
12329
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12209
12330
|
var LoopbackClient = class {
|
|
12210
12331
|
constructor(preferredPort) {
|
|
12211
12332
|
this.preferredPort = preferredPort;
|
|
@@ -12247,12 +12368,9 @@ var LoopbackClient = class {
|
|
|
12247
12368
|
res.end();
|
|
12248
12369
|
return;
|
|
12249
12370
|
}
|
|
12250
|
-
|
|
12251
|
-
|
|
12252
|
-
|
|
12253
|
-
}
|
|
12254
|
-
if (authCodeResponse.error) res.end(errorTemplate || `Error occurred: ${authCodeResponse.error}`);
|
|
12255
|
-
resolve(authCodeResponse);
|
|
12371
|
+
res.writeHead(400);
|
|
12372
|
+
res.end("OAuth responses must use form_post and cannot be returned in the URL.");
|
|
12373
|
+
reject(NodeAuthError.createLoopbackServerQueryResponseNotSupportedError());
|
|
12256
12374
|
} else {
|
|
12257
12375
|
res.writeHead(200);
|
|
12258
12376
|
res.end();
|
|
@@ -12328,7 +12446,7 @@ var LoopbackClient = class {
|
|
|
12328
12446
|
};
|
|
12329
12447
|
//#endregion
|
|
12330
12448
|
//#region node_modules/@azure/msal-node/dist/client/DeviceCodeClient.mjs
|
|
12331
|
-
/*! @azure/msal-node
|
|
12449
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12332
12450
|
/**
|
|
12333
12451
|
* OAuth2.0 Device code client
|
|
12334
12452
|
* @public
|
|
@@ -12502,7 +12620,7 @@ var DeviceCodeClient = class extends BaseClient {
|
|
|
12502
12620
|
};
|
|
12503
12621
|
//#endregion
|
|
12504
12622
|
//#region node_modules/@azure/msal-node/dist/client/PublicClientApplication.mjs
|
|
12505
|
-
/*! @azure/msal-node
|
|
12623
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12506
12624
|
/**
|
|
12507
12625
|
* This class is to be used to acquire tokens for public client applications (desktop, mobile). Public client applications
|
|
12508
12626
|
* are not trusted to safely store application secrets, and therefore can only request tokens in the name of an user.
|
|
@@ -12595,8 +12713,8 @@ var PublicClientApplication = class extends ClientApplication {
|
|
|
12595
12713
|
}
|
|
12596
12714
|
const { verifier, challenge } = await this.cryptoProvider.generatePkceCodes();
|
|
12597
12715
|
const loopbackClient = new LoopbackClient(preferredPort);
|
|
12598
|
-
const responseMode = remainingProperties.responseMode
|
|
12599
|
-
if (responseMode !==
|
|
12716
|
+
const responseMode = remainingProperties.responseMode;
|
|
12717
|
+
if (responseMode !== void 0 && responseMode !== ResponseMode$1.FORM_POST) throw createClientConfigurationError(invalidResponseMode, correlationId);
|
|
12600
12718
|
let authCodeResponse = {};
|
|
12601
12719
|
let authCodeListenerError = null;
|
|
12602
12720
|
try {
|
|
@@ -12611,7 +12729,7 @@ var PublicClientApplication = class extends ClientApplication {
|
|
|
12611
12729
|
correlationId,
|
|
12612
12730
|
scopes: request.scopes || OIDC_DEFAULT_SCOPES,
|
|
12613
12731
|
redirectUri,
|
|
12614
|
-
responseMode,
|
|
12732
|
+
responseMode: ResponseMode$1.FORM_POST,
|
|
12615
12733
|
codeChallenge: challenge,
|
|
12616
12734
|
codeChallengeMethod: CodeChallengeMethodValues.S256
|
|
12617
12735
|
};
|
|
@@ -12642,7 +12760,8 @@ var PublicClientApplication = class extends ClientApplication {
|
|
|
12642
12760
|
this.logger.trace("acquireTokenSilent called", correlationId);
|
|
12643
12761
|
enforceResourceParameter(this.config.auth.isMcp, request);
|
|
12644
12762
|
if (this.nativeBrokerPlugin) {
|
|
12645
|
-
const
|
|
12763
|
+
const nativeBrokerPlugin = this.nativeBrokerPlugin;
|
|
12764
|
+
const brokerRequest = snapshotNativeRequest({
|
|
12646
12765
|
...request,
|
|
12647
12766
|
clientId: this.config.auth.clientId,
|
|
12648
12767
|
scopes: request.scopes || OIDC_DEFAULT_SCOPES,
|
|
@@ -12656,8 +12775,12 @@ var PublicClientApplication = class extends ClientApplication {
|
|
|
12656
12775
|
},
|
|
12657
12776
|
accountId: request.account.nativeAccountId,
|
|
12658
12777
|
forceRefresh: request.forceRefresh || false
|
|
12659
|
-
};
|
|
12660
|
-
|
|
12778
|
+
});
|
|
12779
|
+
const silentRequestKey = getSilentRequestKey({
|
|
12780
|
+
requestType: "native",
|
|
12781
|
+
request: brokerRequest
|
|
12782
|
+
});
|
|
12783
|
+
return acquireTokenSilentDeduped(this, this.logger, silentRequestKey, correlationId, () => nativeBrokerPlugin.acquireTokenSilent(brokerRequest));
|
|
12661
12784
|
}
|
|
12662
12785
|
if (request.redirectUri) {
|
|
12663
12786
|
if (!this.config.broker.nativeBrokerPlugin) throw NodeAuthError.createRedirectUriNotSupportedError(correlationId);
|
|
@@ -12743,19 +12866,19 @@ var PublicClientApplication = class extends ClientApplication {
|
|
|
12743
12866
|
};
|
|
12744
12867
|
//#endregion
|
|
12745
12868
|
//#region node_modules/@azure/msal-node/dist/client/ClientCredentialClient.mjs
|
|
12746
|
-
/*! @azure/msal-node
|
|
12869
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12747
12870
|
//#endregion
|
|
12748
12871
|
//#region node_modules/@azure/msal-node/dist/client/OnBehalfOfClient.mjs
|
|
12749
|
-
/*! @azure/msal-node
|
|
12872
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12750
12873
|
//#endregion
|
|
12751
12874
|
//#region node_modules/@azure/msal-node/dist/client/UserFederatedIdentityCredentialClient.mjs
|
|
12752
|
-
/*! @azure/msal-node
|
|
12875
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12753
12876
|
//#endregion
|
|
12754
12877
|
//#region node_modules/@azure/msal-node/dist/client/ConfidentialClientApplication.mjs
|
|
12755
|
-
/*! @azure/msal-node
|
|
12878
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12756
12879
|
//#endregion
|
|
12757
12880
|
//#region node_modules/@azure/msal-node/dist/utils/TimeUtils.mjs
|
|
12758
|
-
/*! @azure/msal-node
|
|
12881
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12759
12882
|
/**
|
|
12760
12883
|
* @internal
|
|
12761
12884
|
* Checks if a given date string is in ISO 8601 format.
|
|
@@ -12770,7 +12893,7 @@ function isIso8601(dateString) {
|
|
|
12770
12893
|
}
|
|
12771
12894
|
//#endregion
|
|
12772
12895
|
//#region node_modules/@azure/msal-node/dist/network/HttpClientWithRetries.mjs
|
|
12773
|
-
/*! @azure/msal-node
|
|
12896
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12774
12897
|
var HttpClientWithRetries = class {
|
|
12775
12898
|
constructor(httpClientNoRetries, retryPolicy, logger) {
|
|
12776
12899
|
this.httpClientNoRetries = httpClientNoRetries;
|
|
@@ -12800,7 +12923,7 @@ var HttpClientWithRetries = class {
|
|
|
12800
12923
|
};
|
|
12801
12924
|
//#endregion
|
|
12802
12925
|
//#region node_modules/@azure/msal-node/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs
|
|
12803
|
-
/*! @azure/msal-node
|
|
12926
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12804
12927
|
/**
|
|
12805
12928
|
* Managed Identity User Assigned Id Query Parameter Names
|
|
12806
12929
|
*/
|
|
@@ -12990,21 +13113,21 @@ BaseManagedIdentitySource.getValidatedEnvVariableUrlString = (envVariableStringN
|
|
|
12990
13113
|
throw createManagedIdentityError(MsiEnvironmentVariableUrlMalformedErrorCodes[envVariableStringName], "");
|
|
12991
13114
|
}
|
|
12992
13115
|
};
|
|
12993
|
-
/*! @azure/msal-node
|
|
12994
|
-
/*! @azure/msal-node
|
|
12995
|
-
/*! @azure/msal-node
|
|
12996
|
-
/*! @azure/msal-node
|
|
13116
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13117
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13118
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13119
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
12997
13120
|
`${process.env["ProgramData"]}`;
|
|
12998
13121
|
`${process.env["ProgramFiles"]}`;
|
|
12999
|
-
/*! @azure/msal-node
|
|
13000
|
-
/*! @azure/msal-node
|
|
13001
|
-
/*! @azure/msal-node
|
|
13002
|
-
/*! @azure/msal-node
|
|
13003
|
-
/*! @azure/msal-node
|
|
13122
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13123
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13124
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13125
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13126
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13004
13127
|
`${ManagedIdentitySourceNames.MACHINE_LEARNING}`;
|
|
13005
|
-
/*! @azure/msal-node
|
|
13006
|
-
/*! @azure/msal-node
|
|
13128
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13129
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13007
13130
|
ManagedIdentitySourceNames.SERVICE_FABRIC;
|
|
13008
|
-
/*! @azure/msal-node
|
|
13131
|
+
/*! @azure/msal-node v7.0.0 2026-09-23 */
|
|
13009
13132
|
//#endregion
|
|
13010
13133
|
export { CryptoProvider, PublicClientApplication };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as SECRETS_FILE, S as CONFIG_DIR, _ as createLogger, c as AUTHORITY, f as REDIRECT_URI, h as createCachePlugin, m as authCodeFromUrl, o as object, p as SYDNEY_SCOPES, s as string, u as CLIENT_ID, v as ensurePrivateDir } from "./server-
|
|
1
|
+
import { C as SECRETS_FILE, S as CONFIG_DIR, _ as createLogger, c as AUTHORITY, f as REDIRECT_URI, h as createCachePlugin, m as authCodeFromUrl, o as object, p as SYDNEY_SCOPES, s as string, u as CLIENT_ID, v as ensurePrivateDir } from "./server-Bfa7StU_.mjs";
|
|
2
2
|
import { chmodSync, existsSync, readFileSync, statSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
//#region src/login.ts
|
|
@@ -96,7 +96,7 @@ async function login(options = {}) {
|
|
|
96
96
|
const secrets = loadSecrets(options.secretsFile);
|
|
97
97
|
const interactive = options.interactive ?? !secrets?.mfaSecret;
|
|
98
98
|
if (!interactive && !secrets) throw new Error(`No credentials at ${options.secretsFile ?? SECRETS_FILE}. Create it with { "email", "password", "mfaSecret" }, or sign in interactively with --interactive.`);
|
|
99
|
-
const { PublicClientApplication, CryptoProvider } = await import("./dist-
|
|
99
|
+
const { PublicClientApplication, CryptoProvider } = await import("./dist-Bx5AzuFm.mjs");
|
|
100
100
|
const app = new PublicClientApplication({
|
|
101
101
|
auth: {
|
|
102
102
|
clientId: CLIENT_ID,
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as resolveOptions, D as buildModelInfos, E as applyPluginConfig, N as isLocalModel, O as buildProviderInfo, T as PROVIDER_ID, _ as createLogger, a as startServer, g as createTokenClient, j as DEFAULT_MODEL, r as SESSION_ID_HEADER, t as AUX_REQUEST_KIND_HEADER, w as PLUGIN_ID } from "./server-
|
|
2
|
-
import { t as getOrCreateAgent } from "./agent-
|
|
1
|
+
import { A as resolveOptions, D as buildModelInfos, E as applyPluginConfig, N as isLocalModel, O as buildProviderInfo, T as PROVIDER_ID, _ as createLogger, a as startServer, g as createTokenClient, j as DEFAULT_MODEL, r as SESSION_ID_HEADER, t as AUX_REQUEST_KIND_HEADER, w as PLUGIN_ID } from "./server-Bfa7StU_.mjs";
|
|
2
|
+
import { t as getOrCreateAgent } from "./agent-CdFt3iSQ.mjs";
|
|
3
3
|
//#region src/runtime.ts
|
|
4
4
|
/**
|
|
5
5
|
* The part of the plugin that is the same under both opencode plugin APIs.
|
|
@@ -1004,7 +1004,7 @@ function createTokenClient(options = {}) {
|
|
|
1004
1004
|
const cache = /* @__PURE__ */ new Map();
|
|
1005
1005
|
async function client() {
|
|
1006
1006
|
if (app) return app;
|
|
1007
|
-
const { PublicClientApplication } = await import("./dist-
|
|
1007
|
+
const { PublicClientApplication } = await import("./dist-Bx5AzuFm.mjs");
|
|
1008
1008
|
app = new PublicClientApplication({
|
|
1009
1009
|
auth: {
|
|
1010
1010
|
clientId: CLIENT_ID,
|
|
@@ -3172,11 +3172,16 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3172
3172
|
this._bufferedAmount = 0;
|
|
3173
3173
|
this._isServer = false;
|
|
3174
3174
|
this._redirects = 0;
|
|
3175
|
-
if (protocols === void 0)
|
|
3176
|
-
|
|
3175
|
+
if (protocols === void 0) {
|
|
3176
|
+
if (!options || options.protocols === void 0) protocols = [];
|
|
3177
|
+
else if (Array.isArray(options.protocols)) protocols = options.protocols;
|
|
3178
|
+
else protocols = [options.protocols];
|
|
3179
|
+
} else if (!Array.isArray(protocols)) {
|
|
3177
3180
|
if (typeof protocols === "object" && protocols !== null) {
|
|
3178
3181
|
options = protocols;
|
|
3179
|
-
protocols = [];
|
|
3182
|
+
if (options.protocols === void 0) protocols = [];
|
|
3183
|
+
else if (Array.isArray(options.protocols)) protocols = options.protocols;
|
|
3184
|
+
else protocols = [options.protocols];
|
|
3180
3185
|
} else protocols = [protocols];
|
|
3181
3186
|
}
|
|
3182
3187
|
initAsClient(this, address, protocols, options);
|
|
@@ -3366,12 +3371,12 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3366
3371
|
if (this._closeFrameSent && (this._closeFrameReceived || this._receiver._writableState.errorEmitted)) this._socket.end();
|
|
3367
3372
|
return;
|
|
3368
3373
|
}
|
|
3369
|
-
this._readyState = WebSocket.CLOSING;
|
|
3370
3374
|
this._sender.close(code, data, !this._isServer, (err) => {
|
|
3371
3375
|
if (err) return;
|
|
3372
3376
|
this._closeFrameSent = true;
|
|
3373
3377
|
if (this._closeFrameReceived || this._receiver._writableState.errorEmitted) this._socket.end();
|
|
3374
3378
|
});
|
|
3379
|
+
this._readyState = WebSocket.CLOSING;
|
|
3375
3380
|
setCloseTimer(this);
|
|
3376
3381
|
}
|
|
3377
3382
|
/**
|
|
@@ -3654,6 +3659,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3654
3659
|
socketPath: void 0,
|
|
3655
3660
|
hostname: void 0,
|
|
3656
3661
|
protocol: void 0,
|
|
3662
|
+
protocols: void 0,
|
|
3657
3663
|
timeout: void 0,
|
|
3658
3664
|
method: "GET",
|
|
3659
3665
|
host: void 0,
|
package/dist/server.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as startServer, i as generateApiKey, j as DEFAULT_MODEL, n as DEFAULT_MAX_BODY_BYTES, r as SESSION_ID_HEADER, t as AUX_REQUEST_KIND_HEADER } from "./server-
|
|
1
|
+
import { a as startServer, i as generateApiKey, j as DEFAULT_MODEL, n as DEFAULT_MAX_BODY_BYTES, r as SESSION_ID_HEADER, t as AUX_REQUEST_KIND_HEADER } from "./server-Bfa7StU_.mjs";
|
|
2
2
|
export { AUX_REQUEST_KIND_HEADER, DEFAULT_MAX_BODY_BYTES, DEFAULT_MODEL, SESSION_ID_HEADER, generateApiKey, startServer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-m365-copilot",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Use your org's Microsoft 365 Copilot as the model backend for opencode",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"typecheck": "tsc --noEmit"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@azure/msal-node": "^
|
|
35
|
+
"@azure/msal-node": "^7.0.0",
|
|
36
36
|
"otpauth": "^9.5.0",
|
|
37
37
|
"ws": "^8.20.0",
|
|
38
38
|
"zod": "^4.3.6"
|