Estructura inicial del proyecto
This commit is contained in:
16
backend/node_modules/@azure/identity/dist/browser/credentials/authorityValidationOptions.d.ts
generated
vendored
Normal file
16
backend/node_modules/@azure/identity/dist/browser/credentials/authorityValidationOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Provides options to configure how the Identity library
|
||||
* does authority validation during authentication requests
|
||||
* to Microsoft Entra ID.
|
||||
*/
|
||||
export interface AuthorityValidationOptions {
|
||||
/**
|
||||
* The field determines whether instance discovery is performed when attempting to authenticate.
|
||||
* Setting this to `true` will completely disable both instance discovery and authority validation.
|
||||
* As a result, it's crucial to ensure that the configured authority host is valid and trustworthy.
|
||||
* This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack.
|
||||
* The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority.
|
||||
*/
|
||||
disableInstanceDiscovery?: boolean;
|
||||
}
|
||||
//# sourceMappingURL=authorityValidationOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorityValidationOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorityValidationOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"authorityValidationOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/authorityValidationOptions.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/authorityValidationOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/authorityValidationOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=authorityValidationOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorityValidationOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorityValidationOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"authorityValidationOptions.js","sourceRoot":"","sources":["../../../src/credentials/authorityValidationOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Provides options to configure how the Identity library\n * does authority validation during authentication requests\n * to Microsoft Entra ID.\n */\nexport interface AuthorityValidationOptions {\n /**\n * The field determines whether instance discovery is performed when attempting to authenticate.\n * Setting this to `true` will completely disable both instance discovery and authority validation.\n * As a result, it's crucial to ensure that the configured authority host is valid and trustworthy.\n * This functionality is intended for use in scenarios where the metadata endpoint cannot be reached, such as in private clouds or Azure Stack.\n * The process of instance discovery entails retrieving authority metadata from https://login.microsoft.com/ to validate the authority.\n */\n disableInstanceDiscovery?: boolean;\n}\n"]}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredential-browser.d.mts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredential-browser.d.mts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"authorizationCodeCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/authorizationCodeCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAOlG,qBAAa,2BAA4B,YAAW,eAAe;IACjE;;OAEG;gBAED,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAC3B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,kCAAkC;gBAG5C,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAC3B,QAAQ,EAAE,MAAM,EAChB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,kCAAkC;IAOvC,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAI/C"}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredential-browser.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredential-browser.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"authorizationCodeCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/authorizationCodeCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,kIAAkI,CACnI,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,6BAA6B,CAAC,CAAC;AAE/D,MAAM,OAAO,2BAA2B;IAmBtC;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ;QACb,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\nimport type { AuthorizationCodeCredentialOptions } from \"./authorizationCodeCredentialOptions.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"AuthorizationCodeCredential is not supported in the browser. InteractiveBrowserCredential is more appropriate for this use case.\",\n);\nconst logger = credentialLogger(\"AuthorizationCodeCredential\");\n\nexport class AuthorizationCodeCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor(\n tenantId: string | \"common\",\n clientId: string,\n clientSecret: string,\n authorizationCode: string,\n redirectUri: string,\n options?: AuthorizationCodeCredentialOptions,\n );\n constructor(\n tenantId: string | \"common\",\n clientId: string,\n authorizationCode: string,\n redirectUri: string,\n options?: AuthorizationCodeCredentialOptions,\n );\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|
||||
11
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredential.d.ts
generated
vendored
Normal file
11
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
||||
import type { AuthorizationCodeCredentialOptions } from "./authorizationCodeCredentialOptions.js";
|
||||
export declare class AuthorizationCodeCredential implements TokenCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor(tenantId: string | "common", clientId: string, clientSecret: string, authorizationCode: string, redirectUri: string, options?: AuthorizationCodeCredentialOptions);
|
||||
constructor(tenantId: string | "common", clientId: string, authorizationCode: string, redirectUri: string, options?: AuthorizationCodeCredentialOptions);
|
||||
getToken(): Promise<AccessToken | null>;
|
||||
}
|
||||
//# sourceMappingURL=authorizationCodeCredential-browser.d.mts.map
|
||||
16
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredential.js
generated
vendored
Normal file
16
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredential.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { credentialLogger, formatError } from "../util/logging.js";
|
||||
const BrowserNotSupportedError = new Error("AuthorizationCodeCredential is not supported in the browser. InteractiveBrowserCredential is more appropriate for this use case.");
|
||||
const logger = credentialLogger("AuthorizationCodeCredential");
|
||||
export class AuthorizationCodeCredential {
|
||||
constructor() {
|
||||
logger.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
getToken() {
|
||||
logger.getToken.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=authorizationCodeCredential-browser.mjs.map
|
||||
8
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts
generated
vendored
Normal file
8
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
import type { AuthorityValidationOptions } from "./authorityValidationOptions.js";
|
||||
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
||||
/**
|
||||
* Options for the {@link AuthorizationCodeCredential}
|
||||
*/
|
||||
export interface AuthorizationCodeCredentialOptions extends MultiTenantTokenCredentialOptions, AuthorityValidationOptions {
|
||||
}
|
||||
//# sourceMappingURL=authorizationCodeCredentialOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredentialOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"authorizationCodeCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/authorizationCodeCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,kCACf,SAAQ,iCAAiC,EACvC,0BAA0B;CAAG"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredentialOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredentialOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=authorizationCodeCredentialOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredentialOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/authorizationCodeCredentialOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"authorizationCodeCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/authorizationCodeCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Options for the {@link AuthorizationCodeCredential}\n */\nexport interface AuthorizationCodeCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n AuthorityValidationOptions {}\n"]}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredential-browser.d.mts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredential-browser.d.mts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azureCliCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/azureCliCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAMrE;;;GAGG;AACH,qBAAa,kBAAmB,YAAW,eAAe;IACxD;;OAEG;;IAMH,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAIxC"}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredential-browser.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredential-browser.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azureCliCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/azureCliCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;AAClG,MAAM,MAAM,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AAEtD;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAC7B;;OAEG;IACH;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAED,QAAQ;QACN,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\"AzureCliCredential is not supported in the browser.\");\nconst logger = credentialLogger(\"AzureCliCredential\");\n\n/**\n * This credential will use the currently logged-in user login information\n * via the Azure CLI ('az') commandline tool.\n */\nexport class AzureCliCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|
||||
13
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredential.d.ts
generated
vendored
Normal file
13
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
||||
/**
|
||||
* This credential will use the currently logged-in user login information
|
||||
* via the Azure CLI ('az') commandline tool.
|
||||
*/
|
||||
export declare class AzureCliCredential implements TokenCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor();
|
||||
getToken(): Promise<AccessToken | null>;
|
||||
}
|
||||
//# sourceMappingURL=azureCliCredential-browser.d.mts.map
|
||||
23
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredential.js
generated
vendored
Normal file
23
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredential.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { credentialLogger, formatError } from "../util/logging.js";
|
||||
const BrowserNotSupportedError = new Error("AzureCliCredential is not supported in the browser.");
|
||||
const logger = credentialLogger("AzureCliCredential");
|
||||
/**
|
||||
* This credential will use the currently logged-in user login information
|
||||
* via the Azure CLI ('az') commandline tool.
|
||||
*/
|
||||
export class AzureCliCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor() {
|
||||
logger.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
getToken() {
|
||||
logger.getToken.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=azureCliCredential-browser.mjs.map
|
||||
20
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredentialOptions.d.ts
generated
vendored
Normal file
20
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredentialOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
||||
/**
|
||||
* Options for the {@link AzureCliCredential}
|
||||
*/
|
||||
export interface AzureCliCredentialOptions extends MultiTenantTokenCredentialOptions {
|
||||
/**
|
||||
* Allows specifying a tenant ID
|
||||
*/
|
||||
tenantId?: string;
|
||||
/**
|
||||
* Process timeout configurable for making token requests, provided in milliseconds
|
||||
*/
|
||||
processTimeoutInMs?: number;
|
||||
/**
|
||||
* Subscription is the name or ID of a subscription. Set this to acquire tokens for an account other
|
||||
* than the Azure CLI's current account.
|
||||
*/
|
||||
subscription?: string;
|
||||
}
|
||||
//# sourceMappingURL=azureCliCredentialOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredentialOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredentialOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azureCliCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureCliCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,iCAAiC;IAClF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredentialOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredentialOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=azureCliCredentialOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredentialOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureCliCredentialOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azureCliCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/azureCliCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Options for the {@link AzureCliCredential}\n */\nexport interface AzureCliCredentialOptions extends MultiTenantTokenCredentialOptions {\n /**\n * Allows specifying a tenant ID\n */\n tenantId?: string;\n /**\n * Process timeout configurable for making token requests, provided in milliseconds\n */\n processTimeoutInMs?: number;\n /**\n * Subscription is the name or ID of a subscription. Set this to acquire tokens for an account other\n * than the Azure CLI's current account.\n */\n subscription?: string;\n}\n"]}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredential-browser.d.mts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azureDeveloperCliCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/azureDeveloperCliCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAQrE;;;GAGG;AACH,qBAAa,2BAA4B,YAAW,eAAe;IACjE;;OAEG;;IAMH,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAIxC"}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredential-browser.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredential-browser.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azureDeveloperCliCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/azureDeveloperCliCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,8DAA8D,CAC/D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,6BAA6B,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,OAAO,2BAA2B;IACtC;;OAEG;IACH;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAED,QAAQ;QACN,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"AzureDeveloperCliCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"AzureDeveloperCliCredential\");\n\n/**\n * This credential will use the currently logged-in user login information\n * via the Azure Developer CLI ('azd') commandline tool.\n */\nexport class AzureDeveloperCliCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|
||||
13
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredential.d.ts
generated
vendored
Normal file
13
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
||||
/**
|
||||
* This credential will use the currently logged-in user login information
|
||||
* via the Azure Developer CLI ('azd') commandline tool.
|
||||
*/
|
||||
export declare class AzureDeveloperCliCredential implements TokenCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor();
|
||||
getToken(): Promise<AccessToken | null>;
|
||||
}
|
||||
//# sourceMappingURL=azureDeveloperCliCredential-browser.d.mts.map
|
||||
23
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredential.js
generated
vendored
Normal file
23
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredential.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { credentialLogger, formatError } from "../util/logging.js";
|
||||
const BrowserNotSupportedError = new Error("AzureDeveloperCliCredential is not supported in the browser.");
|
||||
const logger = credentialLogger("AzureDeveloperCliCredential");
|
||||
/**
|
||||
* This credential will use the currently logged-in user login information
|
||||
* via the Azure Developer CLI ('azd') commandline tool.
|
||||
*/
|
||||
export class AzureDeveloperCliCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor() {
|
||||
logger.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
getToken() {
|
||||
logger.getToken.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=azureDeveloperCliCredential-browser.mjs.map
|
||||
15
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts
generated
vendored
Normal file
15
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
||||
/**
|
||||
* Options for the {@link AzureDeveloperCliCredential}
|
||||
*/
|
||||
export interface AzureDeveloperCliCredentialOptions extends MultiTenantTokenCredentialOptions {
|
||||
/**
|
||||
* Allows specifying a tenant ID
|
||||
*/
|
||||
tenantId?: string;
|
||||
/**
|
||||
* Process timeout configurable for making token requests, provided in milliseconds
|
||||
*/
|
||||
processTimeoutInMs?: number;
|
||||
}
|
||||
//# sourceMappingURL=azureDeveloperCliCredentialOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredentialOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azureDeveloperCliCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureDeveloperCliCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,iCAAiC;IAC3F;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredentialOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredentialOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=azureDeveloperCliCredentialOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredentialOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azureDeveloperCliCredentialOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azureDeveloperCliCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/azureDeveloperCliCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Options for the {@link AzureDeveloperCliCredential}\n */\nexport interface AzureDeveloperCliCredentialOptions extends MultiTenantTokenCredentialOptions {\n /**\n * Allows specifying a tenant ID\n */\n tenantId?: string;\n /**\n * Process timeout configurable for making token requests, provided in milliseconds\n */\n processTimeoutInMs?: number;\n}\n"]}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredential-browser.d.mts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredential-browser.d.mts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azurePipelinesCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/azurePipelinesCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAQrE;;;GAGG;AACH,qBAAa,wBAAyB,YAAW,eAAe;IAC9D;;OAEG;;IAMI,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAI/C"}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredential-browser.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredential-browser.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azurePipelinesCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/azurePipelinesCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,2DAA2D,CAC5D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,OAAO,wBAAwB;IACnC;;OAEG;IACH;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ;QACb,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"AzurePipelinesCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"AzurePipelinesCredential\");\n\n/**\n * Enables authentication to Microsoft Entra ID using a PEM-encoded\n * certificate that is assigned to an App Registration.\n */\nexport class AzurePipelinesCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|
||||
13
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredential.d.ts
generated
vendored
Normal file
13
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
||||
/**
|
||||
* Enables authentication to Microsoft Entra ID using a PEM-encoded
|
||||
* certificate that is assigned to an App Registration.
|
||||
*/
|
||||
export declare class AzurePipelinesCredential implements TokenCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor();
|
||||
getToken(): Promise<AccessToken | null>;
|
||||
}
|
||||
//# sourceMappingURL=azurePipelinesCredential-browser.d.mts.map
|
||||
23
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredential.js
generated
vendored
Normal file
23
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredential.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { credentialLogger, formatError } from "../util/logging.js";
|
||||
const BrowserNotSupportedError = new Error("AzurePipelinesCredential is not supported in the browser.");
|
||||
const logger = credentialLogger("AzurePipelinesCredential");
|
||||
/**
|
||||
* Enables authentication to Microsoft Entra ID using a PEM-encoded
|
||||
* certificate that is assigned to an App Registration.
|
||||
*/
|
||||
export class AzurePipelinesCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor() {
|
||||
logger.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
getToken() {
|
||||
logger.getToken.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=azurePipelinesCredential-browser.mjs.map
|
||||
9
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts
generated
vendored
Normal file
9
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import type { AuthorityValidationOptions } from "./authorityValidationOptions.js";
|
||||
import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
|
||||
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
||||
/**
|
||||
* Optional parameters for the {@link AzurePipelinesCredential} class.
|
||||
*/
|
||||
export interface AzurePipelinesCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
||||
}
|
||||
//# sourceMappingURL=azurePipelinesCredentialOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredentialOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azurePipelinesCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/azurePipelinesCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,+BACf,SAAQ,iCAAiC,EACvC,4BAA4B,EAC5B,0BAA0B;CAAG"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredentialOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredentialOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=azurePipelinesCredentialOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredentialOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePipelinesCredentialOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azurePipelinesCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/azurePipelinesCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Optional parameters for the {@link AzurePipelinesCredential} class.\n */\nexport interface AzurePipelinesCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n CredentialPersistenceOptions,\n AuthorityValidationOptions {}\n"]}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredential-browser.d.mts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredential-browser.d.mts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azurePowerShellCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/azurePowerShellCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAQrE;;GAEG;AACH,qBAAa,yBAA0B,YAAW,eAAe;IAC/D;;OAEG;;IAMH,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAIxC"}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredential-browser.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredential-browser.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azurePowerShellCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/azurePowerShellCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,4DAA4D,CAC7D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,2BAA2B,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACH;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAED,QAAQ;QACN,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"AzurePowerShellCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"AzurePowerShellCredential\");\n\n/**\n * This credential will use the currently-logged-in user's login information via the Azure Power Shell command line tool.\n */\nexport class AzurePowerShellCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|
||||
12
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredential.d.ts
generated
vendored
Normal file
12
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
||||
/**
|
||||
* This credential will use the currently-logged-in user's login information via the Azure Power Shell command line tool.
|
||||
*/
|
||||
export declare class AzurePowerShellCredential implements TokenCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor();
|
||||
getToken(): Promise<AccessToken | null>;
|
||||
}
|
||||
//# sourceMappingURL=azurePowerShellCredential-browser.d.mts.map
|
||||
22
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredential.js
generated
vendored
Normal file
22
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredential.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { credentialLogger, formatError } from "../util/logging.js";
|
||||
const BrowserNotSupportedError = new Error("AzurePowerShellCredential is not supported in the browser.");
|
||||
const logger = credentialLogger("AzurePowerShellCredential");
|
||||
/**
|
||||
* This credential will use the currently-logged-in user's login information via the Azure Power Shell command line tool.
|
||||
*/
|
||||
export class AzurePowerShellCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor() {
|
||||
logger.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
getToken() {
|
||||
logger.getToken.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=azurePowerShellCredential-browser.mjs.map
|
||||
15
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts
generated
vendored
Normal file
15
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
||||
/**
|
||||
* Options for the {@link AzurePowerShellCredential}
|
||||
*/
|
||||
export interface AzurePowerShellCredentialOptions extends MultiTenantTokenCredentialOptions {
|
||||
/**
|
||||
* Allows specifying a tenant ID
|
||||
*/
|
||||
tenantId?: string;
|
||||
/**
|
||||
* Process timeout configurable for making token requests, provided in milliseconds
|
||||
*/
|
||||
processTimeoutInMs?: number;
|
||||
}
|
||||
//# sourceMappingURL=azurePowerShellCredentialOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredentialOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azurePowerShellCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/azurePowerShellCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,iCAAiC;IACzF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredentialOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredentialOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=azurePowerShellCredentialOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredentialOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/azurePowerShellCredentialOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"azurePowerShellCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/azurePowerShellCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Options for the {@link AzurePowerShellCredential}\n */\nexport interface AzurePowerShellCredentialOptions extends MultiTenantTokenCredentialOptions {\n /**\n * Allows specifying a tenant ID\n */\n tenantId?: string;\n /**\n * Process timeout configurable for making token requests, provided in milliseconds\n */\n processTimeoutInMs?: number;\n}\n"]}
|
||||
13
backend/node_modules/@azure/identity/dist/browser/credentials/brokerAuthOptions.d.ts
generated
vendored
Normal file
13
backend/node_modules/@azure/identity/dist/browser/credentials/brokerAuthOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import type { BrokerOptions } from "../msal/nodeFlows/brokerOptions.js";
|
||||
/**
|
||||
* Configuration options for InteractiveBrowserCredential
|
||||
* to support WAM Broker Authentication.
|
||||
*/
|
||||
export interface BrokerAuthOptions {
|
||||
/**
|
||||
* Options to allow broker authentication when using InteractiveBrowserCredential
|
||||
*
|
||||
*/
|
||||
brokerOptions?: BrokerOptions;
|
||||
}
|
||||
//# sourceMappingURL=brokerAuthOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/brokerAuthOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/brokerAuthOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"brokerAuthOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/brokerAuthOptions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE;;;GAGG;AAEH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B"}
|
||||
2
backend/node_modules/@azure/identity/dist/browser/credentials/brokerAuthOptions.js
generated
vendored
Normal file
2
backend/node_modules/@azure/identity/dist/browser/credentials/brokerAuthOptions.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export {};
|
||||
//# sourceMappingURL=brokerAuthOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/brokerAuthOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/brokerAuthOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"brokerAuthOptions.js","sourceRoot":"","sources":["../../../src/credentials/brokerAuthOptions.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport type { BrokerOptions } from \"../msal/nodeFlows/brokerOptions.js\";\n\n/**\n * Configuration options for InteractiveBrowserCredential\n * to support WAM Broker Authentication.\n */\n\nexport interface BrokerAuthOptions {\n /**\n * Options to allow broker authentication when using InteractiveBrowserCredential\n *\n */\n brokerOptions?: BrokerOptions;\n}\n"]}
|
||||
35
backend/node_modules/@azure/identity/dist/browser/credentials/brokerCredential.d.ts
generated
vendored
Normal file
35
backend/node_modules/@azure/identity/dist/browser/credentials/brokerCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
|
||||
import { TokenCredentialOptions } from "../tokenCredentialOptions.js";
|
||||
import { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
||||
/**
|
||||
* Enables authentication to Microsoft Entra ID using WAM (Web Account Manager) broker.
|
||||
* This credential uses the default account logged into the OS via a broker.
|
||||
*/
|
||||
export declare class BrokerCredential implements TokenCredential {
|
||||
private brokerMsalClient;
|
||||
private brokerTenantId?;
|
||||
private brokerAdditionallyAllowedTenantIds;
|
||||
/**
|
||||
* Creates an instance of BrokerCredential with the required broker options.
|
||||
*
|
||||
* This credential uses WAM (Web Account Manager) for authentication, which provides
|
||||
* better security and user experience on Windows platforms.
|
||||
*
|
||||
* @param options - Options for configuring the broker credential, including required broker options.
|
||||
*/
|
||||
constructor(options: {
|
||||
tenantId?: string;
|
||||
} & TokenCredentialOptions & MultiTenantTokenCredentialOptions);
|
||||
/**
|
||||
* Authenticates with Microsoft Entra ID using WAM broker and returns an access token if successful.
|
||||
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
||||
*
|
||||
* This method extends the base getToken method to support silentAuthenticationOnly option
|
||||
* when using broker authentication.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure the token request, including silentAuthenticationOnly option.
|
||||
*/
|
||||
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
||||
}
|
||||
//# sourceMappingURL=brokerCredential.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/brokerCredential.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/brokerCredential.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"brokerCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/brokerCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAatF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAK3F;;;GAGG;AACH,qBAAa,gBAAiB,YAAW,eAAe;IACtD,OAAO,CAAC,gBAAgB,CAAa;IACrC,OAAO,CAAC,cAAc,CAAC,CAAS;IAChC,OAAO,CAAC,kCAAkC,CAAW;IAErD;;;;;;;OAOG;gBAED,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,sBAAsB,GAAG,iCAAiC;IAwB7F;;;;;;;;;OASG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;CA4B/F"}
|
||||
69
backend/node_modules/@azure/identity/dist/browser/credentials/brokerCredential.js
generated
vendored
Normal file
69
backend/node_modules/@azure/identity/dist/browser/credentials/brokerCredential.js
generated
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { processMultiTenantRequest, resolveAdditionallyAllowedTenantIds, resolveTenantId, } from "../util/tenantIdUtils.js";
|
||||
import { credentialLogger, formatError } from "../util/logging.js";
|
||||
import { ensureScopes } from "../util/scopeUtils.js";
|
||||
import { tracingClient } from "../util/tracing.js";
|
||||
import { createMsalClient } from "../msal/nodeFlows/msalClient.js";
|
||||
import { DeveloperSignOnClientId } from "../constants.js";
|
||||
import { CredentialUnavailableError } from "../errors.js";
|
||||
const logger = credentialLogger("BrokerCredential");
|
||||
/**
|
||||
* Enables authentication to Microsoft Entra ID using WAM (Web Account Manager) broker.
|
||||
* This credential uses the default account logged into the OS via a broker.
|
||||
*/
|
||||
export class BrokerCredential {
|
||||
brokerMsalClient;
|
||||
brokerTenantId;
|
||||
brokerAdditionallyAllowedTenantIds;
|
||||
/**
|
||||
* Creates an instance of BrokerCredential with the required broker options.
|
||||
*
|
||||
* This credential uses WAM (Web Account Manager) for authentication, which provides
|
||||
* better security and user experience on Windows platforms.
|
||||
*
|
||||
* @param options - Options for configuring the broker credential, including required broker options.
|
||||
*/
|
||||
constructor(options) {
|
||||
this.brokerTenantId = resolveTenantId(logger, options.tenantId);
|
||||
this.brokerAdditionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds(options?.additionallyAllowedTenants);
|
||||
const msalClientOptions = {
|
||||
...options,
|
||||
tokenCredentialOptions: options,
|
||||
logger,
|
||||
brokerOptions: {
|
||||
enabled: true,
|
||||
parentWindowHandle: new Uint8Array(0),
|
||||
useDefaultBrokerAccount: true,
|
||||
},
|
||||
};
|
||||
this.brokerMsalClient = createMsalClient(DeveloperSignOnClientId, this.brokerTenantId, msalClientOptions);
|
||||
}
|
||||
/**
|
||||
* Authenticates with Microsoft Entra ID using WAM broker and returns an access token if successful.
|
||||
* If authentication fails, a {@link CredentialUnavailableError} will be thrown with the details of the failure.
|
||||
*
|
||||
* This method extends the base getToken method to support silentAuthenticationOnly option
|
||||
* when using broker authentication.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure the token request, including silentAuthenticationOnly option.
|
||||
*/
|
||||
async getToken(scopes, options = {}) {
|
||||
return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
|
||||
newOptions.tenantId = processMultiTenantRequest(this.brokerTenantId, newOptions, this.brokerAdditionallyAllowedTenantIds, logger);
|
||||
const arrayScopes = ensureScopes(scopes);
|
||||
try {
|
||||
return this.brokerMsalClient.getBrokeredToken(arrayScopes, true, {
|
||||
...newOptions,
|
||||
disableAutomaticAuthentication: true,
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
logger.getToken.info(formatError(arrayScopes, e));
|
||||
throw new CredentialUnavailableError("Failed to acquire token using broker authentication", { cause: e });
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=brokerCredential.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/brokerCredential.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/brokerCredential.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
19
backend/node_modules/@azure/identity/dist/browser/credentials/browserCustomizationOptions.d.ts
generated
vendored
Normal file
19
backend/node_modules/@azure/identity/dist/browser/credentials/browserCustomizationOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Shared configuration options for browser customization
|
||||
*/
|
||||
export interface BrowserCustomizationOptions {
|
||||
/**
|
||||
* Shared configuration options for browser customization
|
||||
*/
|
||||
browserCustomizationOptions?: {
|
||||
/**
|
||||
* Format for error messages for display in browser
|
||||
*/
|
||||
errorMessage?: string;
|
||||
/**
|
||||
* Format for success messages for display in browser
|
||||
*/
|
||||
successMessage?: string;
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=browserCustomizationOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/browserCustomizationOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/browserCustomizationOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"browserCustomizationOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/browserCustomizationOptions.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,2BAA2B,CAAC,EAAE;QAC5B;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/browserCustomizationOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/browserCustomizationOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=browserCustomizationOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/browserCustomizationOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/browserCustomizationOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"browserCustomizationOptions.js","sourceRoot":"","sources":["../../../src/credentials/browserCustomizationOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Shared configuration options for browser customization\n */\nexport interface BrowserCustomizationOptions {\n /**\n * Shared configuration options for browser customization\n */\n browserCustomizationOptions?: {\n /**\n * Format for error messages for display in browser\n */\n errorMessage?: string;\n /**\n * Format for success messages for display in browser\n */\n successMessage?: string;\n };\n}\n"]}
|
||||
51
backend/node_modules/@azure/identity/dist/browser/credentials/chainedTokenCredential.d.ts
generated
vendored
Normal file
51
backend/node_modules/@azure/identity/dist/browser/credentials/chainedTokenCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export declare const logger: import("../util/logging.js").CredentialLogger;
|
||||
/**
|
||||
* Enables multiple `TokenCredential` implementations to be tried in order until
|
||||
* one of the getToken methods returns an access token. For more information, see
|
||||
* [ChainedTokenCredential overview](https://aka.ms/azsdk/js/identity/credential-chains#use-chainedtokencredential-for-granularity).
|
||||
*/
|
||||
export declare class ChainedTokenCredential implements TokenCredential {
|
||||
private _sources;
|
||||
/**
|
||||
* Creates an instance of ChainedTokenCredential using the given credentials.
|
||||
*
|
||||
* @param sources - `TokenCredential` implementations to be tried in order.
|
||||
*
|
||||
* Example usage:
|
||||
* ```ts snippet:chained_token_credential_example
|
||||
* import { ClientSecretCredential, ChainedTokenCredential } from "@azure/identity";
|
||||
*
|
||||
* const tenantId = "<tenant-id>";
|
||||
* const clientId = "<client-id>";
|
||||
* const clientSecret = "<client-secret>";
|
||||
* const anotherClientId = "<another-client-id>";
|
||||
* const anotherSecret = "<another-client-secret>";
|
||||
*
|
||||
* const firstCredential = new ClientSecretCredential(tenantId, clientId, clientSecret);
|
||||
* const secondCredential = new ClientSecretCredential(tenantId, anotherClientId, anotherSecret);
|
||||
*
|
||||
* const credentialChain = new ChainedTokenCredential(firstCredential, secondCredential);
|
||||
* ```
|
||||
*/
|
||||
constructor(...sources: TokenCredential[]);
|
||||
/**
|
||||
* Returns the first access token returned by one of the chained
|
||||
* `TokenCredential` implementations. Throws an {@link AggregateAuthenticationError}
|
||||
* when one or more credentials throws an {@link AuthenticationError} and
|
||||
* no credentials have returned an access token.
|
||||
*
|
||||
* This method is called automatically by Azure SDK client libraries. You may call this method
|
||||
* directly, but you must also handle token caching and token refreshing.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure any requests this
|
||||
* `TokenCredential` implementation might make.
|
||||
*/
|
||||
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>;
|
||||
private getTokenInternal;
|
||||
}
|
||||
//# sourceMappingURL=chainedTokenCredential.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/chainedTokenCredential.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/chainedTokenCredential.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"chainedTokenCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/chainedTokenCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKtF;;GAEG;AACH,eAAO,MAAM,MAAM,+CAA6C,CAAC;AAEjE;;;;GAIG;AACH,qBAAa,sBAAuB,YAAW,eAAe;IAC5D,OAAO,CAAC,QAAQ,CAAyB;IAEzC;;;;;;;;;;;;;;;;;;;;OAoBG;gBACS,GAAG,OAAO,EAAE,eAAe,EAAE;IAIzC;;;;;;;;;;;;OAYG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;YAKhF,gBAAgB;CAiD/B"}
|
||||
92
backend/node_modules/@azure/identity/dist/browser/credentials/chainedTokenCredential.js
generated
vendored
Normal file
92
backend/node_modules/@azure/identity/dist/browser/credentials/chainedTokenCredential.js
generated
vendored
Normal file
@ -0,0 +1,92 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { AggregateAuthenticationError, CredentialUnavailableError } from "../errors.js";
|
||||
import { credentialLogger, formatError, formatSuccess } from "../util/logging.js";
|
||||
import { tracingClient } from "../util/tracing.js";
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export const logger = credentialLogger("ChainedTokenCredential");
|
||||
/**
|
||||
* Enables multiple `TokenCredential` implementations to be tried in order until
|
||||
* one of the getToken methods returns an access token. For more information, see
|
||||
* [ChainedTokenCredential overview](https://aka.ms/azsdk/js/identity/credential-chains#use-chainedtokencredential-for-granularity).
|
||||
*/
|
||||
export class ChainedTokenCredential {
|
||||
_sources = [];
|
||||
/**
|
||||
* Creates an instance of ChainedTokenCredential using the given credentials.
|
||||
*
|
||||
* @param sources - `TokenCredential` implementations to be tried in order.
|
||||
*
|
||||
* Example usage:
|
||||
* ```ts snippet:chained_token_credential_example
|
||||
* import { ClientSecretCredential, ChainedTokenCredential } from "@azure/identity";
|
||||
*
|
||||
* const tenantId = "<tenant-id>";
|
||||
* const clientId = "<client-id>";
|
||||
* const clientSecret = "<client-secret>";
|
||||
* const anotherClientId = "<another-client-id>";
|
||||
* const anotherSecret = "<another-client-secret>";
|
||||
*
|
||||
* const firstCredential = new ClientSecretCredential(tenantId, clientId, clientSecret);
|
||||
* const secondCredential = new ClientSecretCredential(tenantId, anotherClientId, anotherSecret);
|
||||
*
|
||||
* const credentialChain = new ChainedTokenCredential(firstCredential, secondCredential);
|
||||
* ```
|
||||
*/
|
||||
constructor(...sources) {
|
||||
this._sources = sources;
|
||||
}
|
||||
/**
|
||||
* Returns the first access token returned by one of the chained
|
||||
* `TokenCredential` implementations. Throws an {@link AggregateAuthenticationError}
|
||||
* when one or more credentials throws an {@link AuthenticationError} and
|
||||
* no credentials have returned an access token.
|
||||
*
|
||||
* This method is called automatically by Azure SDK client libraries. You may call this method
|
||||
* directly, but you must also handle token caching and token refreshing.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure any requests this
|
||||
* `TokenCredential` implementation might make.
|
||||
*/
|
||||
async getToken(scopes, options = {}) {
|
||||
const { token } = await this.getTokenInternal(scopes, options);
|
||||
return token;
|
||||
}
|
||||
async getTokenInternal(scopes, options = {}) {
|
||||
let token = null;
|
||||
let successfulCredential;
|
||||
const errors = [];
|
||||
return tracingClient.withSpan("ChainedTokenCredential.getToken", options, async (updatedOptions) => {
|
||||
for (let i = 0; i < this._sources.length && token === null; i++) {
|
||||
try {
|
||||
token = await this._sources[i].getToken(scopes, updatedOptions);
|
||||
successfulCredential = this._sources[i];
|
||||
}
|
||||
catch (err) {
|
||||
if (err.name === "CredentialUnavailableError" ||
|
||||
err.name === "AuthenticationRequiredError") {
|
||||
errors.push(err);
|
||||
}
|
||||
else {
|
||||
logger.getToken.info(formatError(scopes, err));
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!token && errors.length > 0) {
|
||||
const err = new AggregateAuthenticationError(errors, "ChainedTokenCredential authentication failed.");
|
||||
logger.getToken.info(formatError(scopes, err));
|
||||
throw err;
|
||||
}
|
||||
logger.getToken.info(`Result for ${successfulCredential.constructor.name}: ${formatSuccess(scopes)}`);
|
||||
if (token === null) {
|
||||
throw new CredentialUnavailableError("Failed to retrieve a valid token");
|
||||
}
|
||||
return { token, successfulCredential };
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=chainedTokenCredential.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/chainedTokenCredential.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/chainedTokenCredential.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredential-browser.d.mts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredential-browser.d.mts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientAssertionCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/clientAssertionCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAQrE;;GAEG;AACH,qBAAa,yBAA0B,YAAW,eAAe;IAC/D;;OAEG;;IAMI,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAI/C"}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredential-browser.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredential-browser.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientAssertionCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/clientAssertionCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,4DAA4D,CAC7D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,2BAA2B,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,OAAO,yBAAyB;IACpC;;OAEG;IACH;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ;QACb,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"ClientAssertionCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"ClientAssertionCredential\");\n\n/**\n * Authenticates a service principal with a JWT assertion.\n */\nexport class ClientAssertionCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|
||||
12
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredential.d.ts
generated
vendored
Normal file
12
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
||||
/**
|
||||
* Authenticates a service principal with a JWT assertion.
|
||||
*/
|
||||
export declare class ClientAssertionCredential implements TokenCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor();
|
||||
getToken(): Promise<AccessToken | null>;
|
||||
}
|
||||
//# sourceMappingURL=clientAssertionCredential-browser.d.mts.map
|
||||
22
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredential.js
generated
vendored
Normal file
22
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredential.js
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { credentialLogger, formatError } from "../util/logging.js";
|
||||
const BrowserNotSupportedError = new Error("ClientAssertionCredential is not supported in the browser.");
|
||||
const logger = credentialLogger("ClientAssertionCredential");
|
||||
/**
|
||||
* Authenticates a service principal with a JWT assertion.
|
||||
*/
|
||||
export class ClientAssertionCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor() {
|
||||
logger.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
getToken() {
|
||||
logger.getToken.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=clientAssertionCredential-browser.mjs.map
|
||||
9
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredentialOptions.d.ts
generated
vendored
Normal file
9
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredentialOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import type { AuthorityValidationOptions } from "./authorityValidationOptions.js";
|
||||
import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
|
||||
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
||||
/**
|
||||
* Options for the {@link ClientAssertionCredential}
|
||||
*/
|
||||
export interface ClientAssertionCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
||||
}
|
||||
//# sourceMappingURL=clientAssertionCredentialOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredentialOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredentialOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientAssertionCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/clientAssertionCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,gCACf,SAAQ,iCAAiC,EACvC,4BAA4B,EAC5B,0BAA0B;CAAG"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredentialOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredentialOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=clientAssertionCredentialOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredentialOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientAssertionCredentialOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientAssertionCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/clientAssertionCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Options for the {@link ClientAssertionCredential}\n */\nexport interface ClientAssertionCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n CredentialPersistenceOptions,\n AuthorityValidationOptions {}\n"]}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredential-browser.d.mts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredential-browser.d.mts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientCertificateCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/clientCertificateCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAQrE;;;GAGG;AACH,qBAAa,2BAA4B,YAAW,eAAe;IACjE;;OAEG;;IAMI,QAAQ,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CAI/C"}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredential-browser.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredential-browser.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientCertificateCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/clientCertificateCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,8DAA8D,CAC/D,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,6BAA6B,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,OAAO,2BAA2B;IACtC;;OAEG;IACH;QACE,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ;QACb,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AccessToken, TokenCredential } from \"@azure/core-auth\";\nimport { credentialLogger, formatError } from \"../util/logging.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"ClientCertificateCredential is not supported in the browser.\",\n);\nconst logger = credentialLogger(\"ClientCertificateCredential\");\n\n/**\n * Enables authentication to Microsoft Entra ID using a PEM-encoded\n * certificate that is assigned to an App Registration.\n */\nexport class ClientCertificateCredential implements TokenCredential {\n /**\n * Only available in Node.js\n */\n constructor() {\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(): Promise<AccessToken | null> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|
||||
13
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredential.d.ts
generated
vendored
Normal file
13
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import type { AccessToken, TokenCredential } from "@azure/core-auth";
|
||||
/**
|
||||
* Enables authentication to Microsoft Entra ID using a PEM-encoded
|
||||
* certificate that is assigned to an App Registration.
|
||||
*/
|
||||
export declare class ClientCertificateCredential implements TokenCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor();
|
||||
getToken(): Promise<AccessToken | null>;
|
||||
}
|
||||
//# sourceMappingURL=clientCertificateCredential-browser.d.mts.map
|
||||
23
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredential.js
generated
vendored
Normal file
23
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredential.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { credentialLogger, formatError } from "../util/logging.js";
|
||||
const BrowserNotSupportedError = new Error("ClientCertificateCredential is not supported in the browser.");
|
||||
const logger = credentialLogger("ClientCertificateCredential");
|
||||
/**
|
||||
* Enables authentication to Microsoft Entra ID using a PEM-encoded
|
||||
* certificate that is assigned to an App Registration.
|
||||
*/
|
||||
export class ClientCertificateCredential {
|
||||
/**
|
||||
* Only available in Node.js
|
||||
*/
|
||||
constructor() {
|
||||
logger.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
getToken() {
|
||||
logger.getToken.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=clientCertificateCredential-browser.mjs.map
|
||||
32
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialModels.d.ts
generated
vendored
Normal file
32
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialModels.d.ts
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Required configuration options for the {@link ClientCertificateCredential}, with the string contents of a PEM certificate
|
||||
*/
|
||||
export interface ClientCertificatePEMCertificate {
|
||||
/**
|
||||
* The PEM-encoded public/private key certificate on the filesystem.
|
||||
* Ensure that certificate is in PEM format and contains both the public and private keys.
|
||||
*/
|
||||
certificate: string;
|
||||
/**
|
||||
* The password for the certificate file.
|
||||
*/
|
||||
certificatePassword?: string;
|
||||
}
|
||||
/**
|
||||
* Required configuration options for the {@link ClientCertificateCredential}, with the path to a PEM certificate.
|
||||
*/
|
||||
export interface ClientCertificatePEMCertificatePath {
|
||||
/**
|
||||
* The path to the PEM-encoded public/private key certificate on the filesystem.
|
||||
*/
|
||||
certificatePath: string;
|
||||
/**
|
||||
* The password for the certificate file.
|
||||
*/
|
||||
certificatePassword?: string;
|
||||
}
|
||||
/**
|
||||
* Required configuration options for the {@link ClientCertificateCredential}, with either the string contents of a PEM certificate, or the path to a PEM certificate.
|
||||
*/
|
||||
export type ClientCertificateCredentialPEMConfiguration = ClientCertificatePEMCertificate | ClientCertificatePEMCertificatePath;
|
||||
//# sourceMappingURL=clientCertificateCredentialModels.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialModels.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialModels.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientCertificateCredentialModels.d.ts","sourceRoot":"","sources":["../../../src/credentials/clientCertificateCredentialModels.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AACD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AACD;;GAEG;AACH,MAAM,MAAM,2CAA2C,GACnD,+BAA+B,GAC/B,mCAAmC,CAAC"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialModels.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialModels.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=clientCertificateCredentialModels.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialModels.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialModels.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientCertificateCredentialModels.js","sourceRoot":"","sources":["../../../src/credentials/clientCertificateCredentialModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Required configuration options for the {@link ClientCertificateCredential}, with the string contents of a PEM certificate\n */\nexport interface ClientCertificatePEMCertificate {\n /**\n * The PEM-encoded public/private key certificate on the filesystem.\n * Ensure that certificate is in PEM format and contains both the public and private keys.\n */\n certificate: string;\n\n /**\n * The password for the certificate file.\n */\n certificatePassword?: string;\n}\n/**\n * Required configuration options for the {@link ClientCertificateCredential}, with the path to a PEM certificate.\n */\nexport interface ClientCertificatePEMCertificatePath {\n /**\n * The path to the PEM-encoded public/private key certificate on the filesystem.\n */\n certificatePath: string;\n\n /**\n * The password for the certificate file.\n */\n certificatePassword?: string;\n}\n/**\n * Required configuration options for the {@link ClientCertificateCredential}, with either the string contents of a PEM certificate, or the path to a PEM certificate.\n */\nexport type ClientCertificateCredentialPEMConfiguration =\n | ClientCertificatePEMCertificate\n | ClientCertificatePEMCertificatePath;\n"]}
|
||||
14
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialOptions.d.ts
generated
vendored
Normal file
14
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
import type { AuthorityValidationOptions } from "./authorityValidationOptions.js";
|
||||
import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
|
||||
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
||||
/**
|
||||
* Optional parameters for the {@link ClientCertificateCredential} class.
|
||||
*/
|
||||
export interface ClientCertificateCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
||||
/**
|
||||
* Option to include x5c header for SubjectName and Issuer name authorization.
|
||||
* Set this option to send base64 encoded public certificate in the client assertion header as an x5c claim
|
||||
*/
|
||||
sendCertificateChain?: boolean;
|
||||
}
|
||||
//# sourceMappingURL=clientCertificateCredentialOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientCertificateCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/clientCertificateCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,kCACf,SAAQ,iCAAiC,EACvC,4BAA4B,EAC5B,0BAA0B;IAC5B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAQhC"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=clientCertificateCredentialOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientCertificateCredentialOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientCertificateCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/clientCertificateCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Optional parameters for the {@link ClientCertificateCredential} class.\n */\nexport interface ClientCertificateCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n CredentialPersistenceOptions,\n AuthorityValidationOptions {\n /**\n * Option to include x5c header for SubjectName and Issuer name authorization.\n * Set this option to send base64 encoded public certificate in the client assertion header as an x5c claim\n */\n sendCertificateChain?: boolean;\n // TODO: Export again once we're ready to release this feature.\n // /**\n // * Specifies a regional authority. Please refer to the {@link RegionalAuthority} type for the accepted values.\n // * If {@link RegionalAuthority.AutoDiscoverRegion} is specified, we will try to discover the regional authority endpoint.\n // * If the property is not specified, the credential uses the global authority endpoint.\n // */\n // regionalAuthority?: string;\n}\n"]}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredential-browser.d.mts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredential-browser.d.mts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientSecretCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/clientSecretCredential-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAOtF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAWxF;;;;;;;GAOG;AACH,qBAAa,sBAAuB,YAAW,eAAe;IAC5D,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,4BAA4B,CAAW;IAC/C,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,YAAY,CAAS;IAE7B;;;;;;;;;OASG;gBAED,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B;IAWzC;;;;;;;;;OASG;IACU,QAAQ,CACnB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EACzB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CA2C/B"}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredential-browser.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredential-browser.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
40
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredential.d.ts
generated
vendored
Normal file
40
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
import type { AccessToken, GetTokenOptions, TokenCredential } from "@azure/core-auth";
|
||||
import type { ClientSecretCredentialOptions } from "./clientSecretCredentialOptions.js";
|
||||
/**
|
||||
* Enables authentication to Microsoft Entra ID using a client secret
|
||||
* that was generated for an App Registration. More information on how
|
||||
* to configure a client secret can be found here:
|
||||
*
|
||||
* https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-access-web-apis#add-credentials-to-your-web-application
|
||||
*
|
||||
*/
|
||||
export declare class ClientSecretCredential implements TokenCredential {
|
||||
private identityClient;
|
||||
private tenantId;
|
||||
private additionallyAllowedTenantIds;
|
||||
private clientId;
|
||||
private clientSecret;
|
||||
/**
|
||||
* Creates an instance of the ClientSecretCredential with the details
|
||||
* needed to authenticate against Microsoft Entra ID with a client
|
||||
* secret.
|
||||
*
|
||||
* @param tenantId - The Microsoft Entra tenant (directory) ID.
|
||||
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
||||
* @param clientSecret - A client secret that was generated for the App Registration.
|
||||
* @param options - Options for configuring the client which makes the authentication request.
|
||||
*/
|
||||
constructor(tenantId: string, clientId: string, clientSecret: string, options?: ClientSecretCredentialOptions);
|
||||
/**
|
||||
* Authenticates with Microsoft Entra ID and returns an access token if
|
||||
* successful. If authentication cannot be performed at this time, this method may
|
||||
* return null. If an error occurs during authentication, an {@link AuthenticationError}
|
||||
* containing failure details will be thrown.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure any requests this
|
||||
* TokenCredential implementation might make.
|
||||
*/
|
||||
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;
|
||||
}
|
||||
//# sourceMappingURL=clientSecretCredential-browser.d.mts.map
|
||||
88
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredential.js
generated
vendored
Normal file
88
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredential.js
generated
vendored
Normal file
@ -0,0 +1,88 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { createHttpHeaders, createPipelineRequest } from "@azure/core-rest-pipeline";
|
||||
import { credentialLogger, formatError, formatSuccess } from "../util/logging.js";
|
||||
import { processMultiTenantRequest, resolveAdditionallyAllowedTenantIds, } from "../util/tenantIdUtils.js";
|
||||
import { IdentityClient } from "../client/identityClient.js";
|
||||
import { getIdentityTokenEndpointSuffix } from "../util/identityTokenEndpoint.js";
|
||||
import { tracingClient } from "../util/tracing.js";
|
||||
const logger = credentialLogger("ClientSecretCredential");
|
||||
// This credential is exported on browser bundles for development purposes.
|
||||
// For this credential to work in browsers, browsers would need to have security features disabled.
|
||||
// Please do not disable your browser security features.
|
||||
/**
|
||||
* Enables authentication to Microsoft Entra ID using a client secret
|
||||
* that was generated for an App Registration. More information on how
|
||||
* to configure a client secret can be found here:
|
||||
*
|
||||
* https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-access-web-apis#add-credentials-to-your-web-application
|
||||
*
|
||||
*/
|
||||
export class ClientSecretCredential {
|
||||
identityClient;
|
||||
tenantId;
|
||||
additionallyAllowedTenantIds;
|
||||
clientId;
|
||||
clientSecret;
|
||||
/**
|
||||
* Creates an instance of the ClientSecretCredential with the details
|
||||
* needed to authenticate against Microsoft Entra ID with a client
|
||||
* secret.
|
||||
*
|
||||
* @param tenantId - The Microsoft Entra tenant (directory) ID.
|
||||
* @param clientId - The client (application) ID of an App Registration in the tenant.
|
||||
* @param clientSecret - A client secret that was generated for the App Registration.
|
||||
* @param options - Options for configuring the client which makes the authentication request.
|
||||
*/
|
||||
constructor(tenantId, clientId, clientSecret, options) {
|
||||
this.identityClient = new IdentityClient(options);
|
||||
this.tenantId = tenantId;
|
||||
this.additionallyAllowedTenantIds = resolveAdditionallyAllowedTenantIds(options?.additionallyAllowedTenants);
|
||||
this.clientId = clientId;
|
||||
this.clientSecret = clientSecret;
|
||||
}
|
||||
/**
|
||||
* Authenticates with Microsoft Entra ID and returns an access token if
|
||||
* successful. If authentication cannot be performed at this time, this method may
|
||||
* return null. If an error occurs during authentication, an {@link AuthenticationError}
|
||||
* containing failure details will be thrown.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure any requests this
|
||||
* TokenCredential implementation might make.
|
||||
*/
|
||||
async getToken(scopes, options = {}) {
|
||||
return tracingClient.withSpan(`${this.constructor.name}.getToken`, options, async (newOptions) => {
|
||||
const tenantId = processMultiTenantRequest(this.tenantId, newOptions, this.additionallyAllowedTenantIds);
|
||||
const query = new URLSearchParams({
|
||||
response_type: "token",
|
||||
grant_type: "client_credentials",
|
||||
client_id: this.clientId,
|
||||
client_secret: this.clientSecret,
|
||||
scope: typeof scopes === "string" ? scopes : scopes.join(" "),
|
||||
});
|
||||
try {
|
||||
const urlSuffix = getIdentityTokenEndpointSuffix(tenantId);
|
||||
const request = createPipelineRequest({
|
||||
url: `${this.identityClient.authorityHost}/${tenantId}/${urlSuffix}`,
|
||||
method: "POST",
|
||||
body: query.toString(),
|
||||
headers: createHttpHeaders({
|
||||
Accept: "application/json",
|
||||
"Content-Type": "application/x-www-form-urlencoded",
|
||||
}),
|
||||
abortSignal: options && options.abortSignal,
|
||||
tracingOptions: newOptions?.tracingOptions,
|
||||
});
|
||||
const tokenResponse = await this.identityClient.sendTokenRequest(request);
|
||||
logger.getToken.info(formatSuccess(scopes));
|
||||
return (tokenResponse && tokenResponse.accessToken) || null;
|
||||
}
|
||||
catch (err) {
|
||||
logger.getToken.info(formatError(scopes, err));
|
||||
throw err;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=clientSecretCredential-browser.mjs.map
|
||||
9
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredentialOptions.d.ts
generated
vendored
Normal file
9
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredentialOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import type { AuthorityValidationOptions } from "./authorityValidationOptions.js";
|
||||
import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
|
||||
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
||||
/**
|
||||
* Optional parameters for the {@link ClientSecretCredential} class.
|
||||
*/
|
||||
export interface ClientSecretCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions, AuthorityValidationOptions {
|
||||
}
|
||||
//# sourceMappingURL=clientSecretCredentialOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredentialOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredentialOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientSecretCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/clientSecretCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,6BACf,SAAQ,iCAAiC,EACvC,4BAA4B,EAC5B,0BAA0B;CAQ7B"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredentialOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredentialOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=clientSecretCredentialOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredentialOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/clientSecretCredentialOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"clientSecretCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/clientSecretCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AuthorityValidationOptions } from \"./authorityValidationOptions.js\";\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Optional parameters for the {@link ClientSecretCredential} class.\n */\nexport interface ClientSecretCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n CredentialPersistenceOptions,\n AuthorityValidationOptions {\n // TODO: Export again once we're ready to release this feature.\n // /**\n // * Specifies a regional authority. Please refer to the {@link RegionalAuthority} type for the accepted values.\n // * If {@link RegionalAuthority.AutoDiscoverRegion} is specified, we will try to discover the regional authority endpoint.\n // * If the property is not specified, the credential uses the global authority endpoint.\n // */\n // regionalAuthority?: string;\n}\n"]}
|
||||
30
backend/node_modules/@azure/identity/dist/browser/credentials/credentialPersistenceOptions.d.ts
generated
vendored
Normal file
30
backend/node_modules/@azure/identity/dist/browser/credentials/credentialPersistenceOptions.d.ts
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
import type { TokenCachePersistenceOptions } from "../msal/nodeFlows/tokenCachePersistenceOptions.js";
|
||||
/**
|
||||
* Shared configuration options for credentials that support persistent token
|
||||
* caching.
|
||||
*/
|
||||
export interface CredentialPersistenceOptions {
|
||||
/**
|
||||
* Options to provide to the persistence layer (if one is available) when
|
||||
* storing credentials.
|
||||
*
|
||||
* You must first register a persistence provider plugin. See the
|
||||
* `@azure/identity-cache-persistence` package on NPM.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* ```ts snippet:credential_persistence_options_example
|
||||
* import { useIdentityPlugin, DeviceCodeCredential } from "@azure/identity";
|
||||
*
|
||||
* useIdentityPlugin(cachePersistencePlugin);
|
||||
*
|
||||
* const credential = new DeviceCodeCredential({
|
||||
* tokenCachePersistenceOptions: {
|
||||
* enabled: true,
|
||||
* },
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
tokenCachePersistenceOptions?: TokenCachePersistenceOptions;
|
||||
}
|
||||
//# sourceMappingURL=credentialPersistenceOptions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/credentialPersistenceOptions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/credentialPersistenceOptions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"credentialPersistenceOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/credentialPersistenceOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AAEtG;;;GAGG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;;;;;;;;;;;;;;OAoBG;IAEH,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;CAC7D"}
|
||||
4
backend/node_modules/@azure/identity/dist/browser/credentials/credentialPersistenceOptions.js
generated
vendored
Normal file
4
backend/node_modules/@azure/identity/dist/browser/credentials/credentialPersistenceOptions.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
export {};
|
||||
//# sourceMappingURL=credentialPersistenceOptions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/credentialPersistenceOptions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/credentialPersistenceOptions.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"credentialPersistenceOptions.js","sourceRoot":"","sources":["../../../src/credentials/credentialPersistenceOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { TokenCachePersistenceOptions } from \"../msal/nodeFlows/tokenCachePersistenceOptions.js\";\n\n/**\n * Shared configuration options for credentials that support persistent token\n * caching.\n */\nexport interface CredentialPersistenceOptions {\n /**\n * Options to provide to the persistence layer (if one is available) when\n * storing credentials.\n *\n * You must first register a persistence provider plugin. See the\n * `@azure/identity-cache-persistence` package on NPM.\n *\n * Example:\n *\n * ```ts snippet:credential_persistence_options_example\n * import { useIdentityPlugin, DeviceCodeCredential } from \"@azure/identity\";\n *\n * useIdentityPlugin(cachePersistencePlugin);\n *\n * const credential = new DeviceCodeCredential({\n * tokenCachePersistenceOptions: {\n * enabled: true,\n * },\n * });\n * ```\n */\n\n tokenCachePersistenceOptions?: TokenCachePersistenceOptions;\n}\n"]}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredential-browser.d.mts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredential-browser.d.mts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"defaultAzureCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/defaultAzureCredential-browser.mts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAO3E;;;;;GAKG;AACH,qBAAa,sBAAuB,SAAQ,sBAAsB;IAChE;;;;OAIG;gBACS,uBAAuB,CAAC,EAAE,sBAAsB;IAMrD,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC;CAIxC"}
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredential-browser.mjs.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredential-browser.mjs.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"defaultAzureCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/defaultAzureCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,MAAM,wBAAwB,GAAG,IAAI,KAAK,CACxC,mGAAmG,CACpG,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,wBAAwB,CAAC,CAAC;AAE1D;;;;;GAKG;AACH,MAAM,OAAO,sBAAuB,SAAQ,sBAAsB;IAChE;;;;OAIG;IACH,YAAY,uBAAgD;QAC1D,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QACvD,MAAM,wBAAwB,CAAC;IACjC,CAAC;IAEM,QAAQ;QACb,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,CAAC;QAChE,MAAM,wBAAwB,CAAC;IACjC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { credentialLogger, formatError } from \"../util/logging.js\";\nimport type { AccessToken } from \"@azure/core-auth\";\nimport { ChainedTokenCredential } from \"./chainedTokenCredential.js\";\nimport type { TokenCredentialOptions } from \"../tokenCredentialOptions.js\";\n\nconst BrowserNotSupportedError = new Error(\n \"DefaultAzureCredential is not supported in the browser. Use InteractiveBrowserCredential instead.\",\n);\nconst logger = credentialLogger(\"DefaultAzureCredential\");\n\n/**\n * Provides a default {@link ChainedTokenCredential} configuration for\n * applications that will be deployed to Azure.\n *\n * Only available in Node.js.\n */\nexport class DefaultAzureCredential extends ChainedTokenCredential {\n /**\n * Creates an instance of the DefaultAzureCredential class.\n *\n * @param options - Options for configuring the client which makes the authentication request.\n */\n constructor(_tokenCredentialOptions?: TokenCredentialOptions) {\n super();\n logger.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n\n public getToken(): Promise<AccessToken> {\n logger.getToken.info(formatError(\"\", BrowserNotSupportedError));\n throw BrowserNotSupportedError;\n }\n}\n"]}
|
||||
19
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredential.d.ts
generated
vendored
Normal file
19
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredential.d.ts
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
import type { AccessToken } from "@azure/core-auth";
|
||||
import { ChainedTokenCredential } from "./chainedTokenCredential.js";
|
||||
import type { TokenCredentialOptions } from "../tokenCredentialOptions.js";
|
||||
/**
|
||||
* Provides a default {@link ChainedTokenCredential} configuration for
|
||||
* applications that will be deployed to Azure.
|
||||
*
|
||||
* Only available in Node.js.
|
||||
*/
|
||||
export declare class DefaultAzureCredential extends ChainedTokenCredential {
|
||||
/**
|
||||
* Creates an instance of the DefaultAzureCredential class.
|
||||
*
|
||||
* @param options - Options for configuring the client which makes the authentication request.
|
||||
*/
|
||||
constructor(_tokenCredentialOptions?: TokenCredentialOptions);
|
||||
getToken(): Promise<AccessToken>;
|
||||
}
|
||||
//# sourceMappingURL=defaultAzureCredential-browser.d.mts.map
|
||||
29
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredential.js
generated
vendored
Normal file
29
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredential.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { credentialLogger, formatError } from "../util/logging.js";
|
||||
import { ChainedTokenCredential } from "./chainedTokenCredential.js";
|
||||
const BrowserNotSupportedError = new Error("DefaultAzureCredential is not supported in the browser. Use InteractiveBrowserCredential instead.");
|
||||
const logger = credentialLogger("DefaultAzureCredential");
|
||||
/**
|
||||
* Provides a default {@link ChainedTokenCredential} configuration for
|
||||
* applications that will be deployed to Azure.
|
||||
*
|
||||
* Only available in Node.js.
|
||||
*/
|
||||
export class DefaultAzureCredential extends ChainedTokenCredential {
|
||||
/**
|
||||
* Creates an instance of the DefaultAzureCredential class.
|
||||
*
|
||||
* @param options - Options for configuring the client which makes the authentication request.
|
||||
*/
|
||||
constructor(_tokenCredentialOptions) {
|
||||
super();
|
||||
logger.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
getToken() {
|
||||
logger.getToken.info(formatError("", BrowserNotSupportedError));
|
||||
throw BrowserNotSupportedError;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=defaultAzureCredential-browser.mjs.map
|
||||
64
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredentialFunctions.d.ts
generated
vendored
Normal file
64
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredentialFunctions.d.ts
generated
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
import type { TokenCredential } from "@azure/core-auth";
|
||||
import type { DefaultAzureCredentialClientIdOptions, DefaultAzureCredentialOptions, DefaultAzureCredentialResourceIdOptions } from "./defaultAzureCredentialOptions.js";
|
||||
/**
|
||||
* Creates a {@link BrokerCredential} instance with the provided options.
|
||||
* This credential uses the Windows Authentication Manager (WAM) broker for authentication.
|
||||
* It will only attempt to authenticate silently using the default broker account
|
||||
*
|
||||
* @param options - Options for configuring the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export declare function createDefaultBrokerCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
||||
/**
|
||||
* Creates a {@link VisualStudioCodeCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export declare function createDefaultVisualStudioCodeCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
||||
/**
|
||||
* Creates a {@link ManagedIdentityCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export declare function createDefaultManagedIdentityCredential(options?: (DefaultAzureCredentialOptions | DefaultAzureCredentialResourceIdOptions | DefaultAzureCredentialClientIdOptions) & {
|
||||
sendProbeRequest?: boolean;
|
||||
}): TokenCredential;
|
||||
/**
|
||||
* Creates a {@link WorkloadIdentityCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export declare function createDefaultWorkloadIdentityCredential(options?: DefaultAzureCredentialOptions | DefaultAzureCredentialClientIdOptions): TokenCredential;
|
||||
/**
|
||||
* Creates a {@link AzureDeveloperCliCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export declare function createDefaultAzureDeveloperCliCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
||||
/**
|
||||
* Creates a {@link AzureCliCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export declare function createDefaultAzureCliCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
||||
/**
|
||||
* Creates a {@link AzurePowerShellCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export declare function createDefaultAzurePowershellCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
||||
/**
|
||||
* Creates an {@link EnvironmentCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export declare function createDefaultEnvironmentCredential(options?: DefaultAzureCredentialOptions): TokenCredential;
|
||||
//# sourceMappingURL=defaultAzureCredentialFunctions.d.ts.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredentialFunctions.d.ts.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredentialFunctions.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"defaultAzureCredentialFunctions.d.ts","sourceRoot":"","sources":["../../../src/credentials/defaultAzureCredentialFunctions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EACV,qCAAqC,EACrC,6BAA6B,EAC7B,uCAAuC,EACxC,MAAM,oCAAoC,CAAC;AAe5C;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,uCAAuC,CACrD,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,GAAE,CACL,6BAA6B,GAC7B,uCAAuC,GACvC,qCAAqC,CACxC,GAAG;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAO,GACtC,eAAe,CAkDjB;AAED;;;;;GAKG;AACH,wBAAgB,uCAAuC,CACrD,OAAO,CAAC,EAAE,6BAA6B,GAAG,qCAAqC,GAC9E,eAAe,CA4BjB;AAED;;;;;GAKG;AACH,wBAAgB,wCAAwC,CACtD,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAChD,OAAO,GAAE,6BAAkC,GAC1C,eAAe,CAEjB"}
|
||||
147
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredentialFunctions.js
generated
vendored
Normal file
147
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredentialFunctions.js
generated
vendored
Normal file
@ -0,0 +1,147 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { EnvironmentCredential } from "./environmentCredential.js";
|
||||
import { ManagedIdentityCredential } from "./managedIdentityCredential/index.js";
|
||||
import { WorkloadIdentityCredential } from "./workloadIdentityCredential.js";
|
||||
import { AzureDeveloperCliCredential } from "./azureDeveloperCliCredential.js";
|
||||
import { AzureCliCredential } from "./azureCliCredential.js";
|
||||
import { AzurePowerShellCredential } from "./azurePowerShellCredential.js";
|
||||
import { VisualStudioCodeCredential } from "./visualStudioCodeCredential.js";
|
||||
import { BrokerCredential } from "./brokerCredential.js";
|
||||
/**
|
||||
* Creates a {@link BrokerCredential} instance with the provided options.
|
||||
* This credential uses the Windows Authentication Manager (WAM) broker for authentication.
|
||||
* It will only attempt to authenticate silently using the default broker account
|
||||
*
|
||||
* @param options - Options for configuring the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export function createDefaultBrokerCredential(options = {}) {
|
||||
return new BrokerCredential(options);
|
||||
}
|
||||
/**
|
||||
* Creates a {@link VisualStudioCodeCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export function createDefaultVisualStudioCodeCredential(options = {}) {
|
||||
return new VisualStudioCodeCredential(options);
|
||||
}
|
||||
/**
|
||||
* Creates a {@link ManagedIdentityCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export function createDefaultManagedIdentityCredential(options = {}) {
|
||||
options.retryOptions ??= {
|
||||
maxRetries: 5,
|
||||
retryDelayInMs: 800,
|
||||
};
|
||||
// ManagedIdentityCredential inside DAC chain should send a probe request by default.
|
||||
// This is different from standalone ManagedIdentityCredential behavior
|
||||
// or when AZURE_TOKEN_CREDENTIALS is set to only ManagedIdentityCredential.
|
||||
options.sendProbeRequest ??= true;
|
||||
const managedIdentityClientId = options?.managedIdentityClientId ??
|
||||
process.env.AZURE_CLIENT_ID;
|
||||
const workloadIdentityClientId = options?.workloadIdentityClientId ??
|
||||
managedIdentityClientId;
|
||||
const managedResourceId = options
|
||||
?.managedIdentityResourceId;
|
||||
const workloadFile = process.env.AZURE_FEDERATED_TOKEN_FILE;
|
||||
const tenantId = options?.tenantId ?? process.env.AZURE_TENANT_ID;
|
||||
if (managedResourceId) {
|
||||
const managedIdentityResourceIdOptions = {
|
||||
...options,
|
||||
resourceId: managedResourceId,
|
||||
};
|
||||
return new ManagedIdentityCredential(managedIdentityResourceIdOptions);
|
||||
}
|
||||
if (workloadFile && workloadIdentityClientId) {
|
||||
const workloadIdentityCredentialOptions = {
|
||||
...options,
|
||||
tenantId: tenantId,
|
||||
};
|
||||
return new ManagedIdentityCredential(workloadIdentityClientId, workloadIdentityCredentialOptions);
|
||||
}
|
||||
if (managedIdentityClientId) {
|
||||
const managedIdentityClientOptions = {
|
||||
...options,
|
||||
clientId: managedIdentityClientId,
|
||||
};
|
||||
return new ManagedIdentityCredential(managedIdentityClientOptions);
|
||||
}
|
||||
// We may be able to return a UnavailableCredential here, but that may be a breaking change
|
||||
return new ManagedIdentityCredential(options);
|
||||
}
|
||||
/**
|
||||
* Creates a {@link WorkloadIdentityCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export function createDefaultWorkloadIdentityCredential(options) {
|
||||
const managedIdentityClientId = options?.managedIdentityClientId ??
|
||||
process.env.AZURE_CLIENT_ID;
|
||||
const workloadIdentityClientId = options?.workloadIdentityClientId ??
|
||||
managedIdentityClientId;
|
||||
const workloadFile = process.env.AZURE_FEDERATED_TOKEN_FILE;
|
||||
const tenantId = options?.tenantId ?? process.env.AZURE_TENANT_ID;
|
||||
if (workloadFile && workloadIdentityClientId) {
|
||||
const workloadIdentityCredentialOptions = {
|
||||
...options,
|
||||
tenantId,
|
||||
clientId: workloadIdentityClientId,
|
||||
tokenFilePath: workloadFile,
|
||||
};
|
||||
return new WorkloadIdentityCredential(workloadIdentityCredentialOptions);
|
||||
}
|
||||
if (tenantId) {
|
||||
const workloadIdentityClientTenantOptions = {
|
||||
...options,
|
||||
tenantId,
|
||||
};
|
||||
return new WorkloadIdentityCredential(workloadIdentityClientTenantOptions);
|
||||
}
|
||||
// We may be able to return a UnavailableCredential here, but that may be a breaking change
|
||||
return new WorkloadIdentityCredential(options);
|
||||
}
|
||||
/**
|
||||
* Creates a {@link AzureDeveloperCliCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export function createDefaultAzureDeveloperCliCredential(options = {}) {
|
||||
return new AzureDeveloperCliCredential(options);
|
||||
}
|
||||
/**
|
||||
* Creates a {@link AzureCliCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export function createDefaultAzureCliCredential(options = {}) {
|
||||
return new AzureCliCredential(options);
|
||||
}
|
||||
/**
|
||||
* Creates a {@link AzurePowerShellCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export function createDefaultAzurePowershellCredential(options = {}) {
|
||||
return new AzurePowerShellCredential(options);
|
||||
}
|
||||
/**
|
||||
* Creates an {@link EnvironmentCredential} from the provided options.
|
||||
* @param options - Options to configure the credential.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
export function createDefaultEnvironmentCredential(options = {}) {
|
||||
return new EnvironmentCredential(options);
|
||||
}
|
||||
//# sourceMappingURL=defaultAzureCredentialFunctions.js.map
|
||||
1
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredentialFunctions.js.map
generated
vendored
Normal file
1
backend/node_modules/@azure/identity/dist/browser/credentials/defaultAzureCredentialFunctions.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user