@azure/identity 4.9.2-alpha.20250506.3 → 4.9.2-alpha.20250509.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/browser/credentials/azureApplicationCredential-browser.d.mts.map +0 -1
- package/dist/browser/credentials/azureApplicationCredential-browser.mjs.map +0 -1
- package/dist/browser/credentials/azureApplicationCredential.d.ts +0 -24
- package/dist/browser/credentials/azureApplicationCredential.js +0 -34
- package/dist/browser/credentials/azureApplicationCredentialOptions.d.ts +0 -13
- package/dist/browser/credentials/azureApplicationCredentialOptions.d.ts.map +0 -1
- package/dist/browser/credentials/azureApplicationCredentialOptions.js +0 -4
- package/dist/browser/credentials/azureApplicationCredentialOptions.js.map +0 -1
- package/dist/commonjs/credentials/azureApplicationCredential.d.ts +0 -24
- package/dist/commonjs/credentials/azureApplicationCredential.d.ts.map +0 -1
- package/dist/commonjs/credentials/azureApplicationCredential.js +0 -36
- package/dist/commonjs/credentials/azureApplicationCredential.js.map +0 -1
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.d.ts +0 -13
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.d.ts.map +0 -1
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.js +0 -5
- package/dist/commonjs/credentials/azureApplicationCredentialOptions.js.map +0 -1
- package/dist/esm/credentials/azureApplicationCredential.d.ts +0 -24
- package/dist/esm/credentials/azureApplicationCredential.d.ts.map +0 -1
- package/dist/esm/credentials/azureApplicationCredential.js +0 -32
- package/dist/esm/credentials/azureApplicationCredential.js.map +0 -1
- package/dist/esm/credentials/azureApplicationCredentialOptions.d.ts +0 -13
- package/dist/esm/credentials/azureApplicationCredentialOptions.d.ts.map +0 -1
- package/dist/esm/credentials/azureApplicationCredentialOptions.js +0 -4
- package/dist/esm/credentials/azureApplicationCredentialOptions.js.map +0 -1
- package/dist/workerd/credentials/azureApplicationCredential.d.ts +0 -24
- package/dist/workerd/credentials/azureApplicationCredential.d.ts.map +0 -1
- package/dist/workerd/credentials/azureApplicationCredential.js +0 -32
- package/dist/workerd/credentials/azureApplicationCredential.js.map +0 -1
- package/dist/workerd/credentials/azureApplicationCredentialOptions.d.ts +0 -13
- package/dist/workerd/credentials/azureApplicationCredentialOptions.d.ts.map +0 -1
- package/dist/workerd/credentials/azureApplicationCredentialOptions.js +0 -4
- package/dist/workerd/credentials/azureApplicationCredentialOptions.js.map +0 -1
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@azure/identity",
|
3
3
|
"sdk-type": "client",
|
4
|
-
"version": "4.9.2-alpha.
|
4
|
+
"version": "4.9.2-alpha.20250509.2",
|
5
5
|
"description": "Provides credential implementations for Azure SDK libraries that can authenticate with Microsoft Entra ID",
|
6
6
|
"main": "./dist/commonjs/index.js",
|
7
7
|
"module": "./dist/esm/index.js",
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredential-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,0BAA2B,SAAQ,sBAAsB;IACpE;;;;;;;;;OASG;gBACS,uBAAuB,CAAC,EAAE,sBAAsB;IAMrD,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC;CAIxC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredential-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,kGAAkG,CACnG,CAAC;AACF,MAAM,MAAM,GAAG,gBAAgB,CAAC,uBAAuB,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,OAAO,0BAA2B,SAAQ,sBAAsB;IACpE;;;;;;;;;OASG;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 \"ApplicationCredential is not supported in the browser. Use InteractiveBrowserCredential instead.\",\n);\nconst logger = credentialLogger(\"ApplicationCredential\");\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 AzureApplicationCredential extends ChainedTokenCredential {\n /**\n * Creates an instance of the AzureApplicationCredential class.\n *\n * The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration for\n * applications that will be deployed to Azure.\n *\n * Only available in Node.js\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"]}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import type { AccessToken } from "@azure/core-auth";
|
2
|
-
import { ChainedTokenCredential } from "./chainedTokenCredential.js";
|
3
|
-
import type { TokenCredentialOptions } from "../tokenCredentialOptions.js";
|
4
|
-
/**
|
5
|
-
* Provides a default {@link ChainedTokenCredential} configuration for
|
6
|
-
* applications that will be deployed to Azure.
|
7
|
-
*
|
8
|
-
* Only available in Node.js
|
9
|
-
*/
|
10
|
-
export declare class AzureApplicationCredential extends ChainedTokenCredential {
|
11
|
-
/**
|
12
|
-
* Creates an instance of the AzureApplicationCredential class.
|
13
|
-
*
|
14
|
-
* The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration for
|
15
|
-
* applications that will be deployed to Azure.
|
16
|
-
*
|
17
|
-
* Only available in Node.js
|
18
|
-
*
|
19
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
20
|
-
*/
|
21
|
-
constructor(_tokenCredentialOptions?: TokenCredentialOptions);
|
22
|
-
getToken(): Promise<AccessToken>;
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=azureApplicationCredential-browser.d.mts.map
|
@@ -1,34 +0,0 @@
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
2
|
-
// Licensed under the MIT License.
|
3
|
-
import { credentialLogger, formatError } from "../util/logging.js";
|
4
|
-
import { ChainedTokenCredential } from "./chainedTokenCredential.js";
|
5
|
-
const BrowserNotSupportedError = new Error("ApplicationCredential is not supported in the browser. Use InteractiveBrowserCredential instead.");
|
6
|
-
const logger = credentialLogger("ApplicationCredential");
|
7
|
-
/**
|
8
|
-
* Provides a default {@link ChainedTokenCredential} configuration for
|
9
|
-
* applications that will be deployed to Azure.
|
10
|
-
*
|
11
|
-
* Only available in Node.js
|
12
|
-
*/
|
13
|
-
export class AzureApplicationCredential extends ChainedTokenCredential {
|
14
|
-
/**
|
15
|
-
* Creates an instance of the AzureApplicationCredential class.
|
16
|
-
*
|
17
|
-
* The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration for
|
18
|
-
* applications that will be deployed to Azure.
|
19
|
-
*
|
20
|
-
* Only available in Node.js
|
21
|
-
*
|
22
|
-
* @param options - Options for configuring the client which makes the authentication request.
|
23
|
-
*/
|
24
|
-
constructor(_tokenCredentialOptions) {
|
25
|
-
super();
|
26
|
-
logger.info(formatError("", BrowserNotSupportedError));
|
27
|
-
throw BrowserNotSupportedError;
|
28
|
-
}
|
29
|
-
getToken() {
|
30
|
-
logger.getToken.info(formatError("", BrowserNotSupportedError));
|
31
|
-
throw BrowserNotSupportedError;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
//# sourceMappingURL=azureApplicationCredential-browser.mjs.map
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
|
2
|
-
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
3
|
-
/**
|
4
|
-
* Provides options to configure the {@link AzureApplicationCredential} class.
|
5
|
-
*/
|
6
|
-
export interface AzureApplicationCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions {
|
7
|
-
/**
|
8
|
-
* Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.
|
9
|
-
* This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.
|
10
|
-
*/
|
11
|
-
managedIdentityClientId?: string;
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=azureApplicationCredentialOptions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,iCACf,SAAQ,iCAAiC,EACvC,4BAA4B;IAC9B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Provides options to configure the {@link AzureApplicationCredential} class.\n */\nexport interface AzureApplicationCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n CredentialPersistenceOptions {\n /**\n * Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.\n * This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.\n */\n managedIdentityClientId?: string;\n}\n"]}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import type { AzureApplicationCredentialOptions } from "./azureApplicationCredentialOptions.js";
|
2
|
-
import { ChainedTokenCredential } from "./chainedTokenCredential.js";
|
3
|
-
/**
|
4
|
-
* Provides a default {@link ChainedTokenCredential} configuration that should
|
5
|
-
* work for most applications that use the Azure SDK.
|
6
|
-
*/
|
7
|
-
export declare class AzureApplicationCredential extends ChainedTokenCredential {
|
8
|
-
/**
|
9
|
-
* Creates an instance of the AzureApplicationCredential class.
|
10
|
-
*
|
11
|
-
* The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration that should
|
12
|
-
* work for most applications deployed on Azure. The following credential types will be tried, in order:
|
13
|
-
*
|
14
|
-
* - {@link EnvironmentCredential}
|
15
|
-
* - {@link ManagedIdentityCredential}
|
16
|
-
*
|
17
|
-
* Consult the documentation of these credential types for more information
|
18
|
-
* on how they attempt authentication.
|
19
|
-
*
|
20
|
-
* @param options - Optional parameters. See {@link AzureApplicationCredentialOptions}.
|
21
|
-
*/
|
22
|
-
constructor(options?: AzureApplicationCredentialOptions);
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=azureApplicationCredential.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredential.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,sBAAsB;IACpE;;;;;;;;;;;;;OAaG;gBACS,OAAO,CAAC,EAAE,iCAAiC;CAOxD"}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
3
|
-
// Licensed under the MIT License.
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
5
|
-
exports.AzureApplicationCredential = void 0;
|
6
|
-
const defaultAzureCredential_js_1 = require("./defaultAzureCredential.js");
|
7
|
-
const chainedTokenCredential_js_1 = require("./chainedTokenCredential.js");
|
8
|
-
/**
|
9
|
-
* Provides a default {@link ChainedTokenCredential} configuration that should
|
10
|
-
* work for most applications that use the Azure SDK.
|
11
|
-
*/
|
12
|
-
class AzureApplicationCredential extends chainedTokenCredential_js_1.ChainedTokenCredential {
|
13
|
-
/**
|
14
|
-
* Creates an instance of the AzureApplicationCredential class.
|
15
|
-
*
|
16
|
-
* The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration that should
|
17
|
-
* work for most applications deployed on Azure. The following credential types will be tried, in order:
|
18
|
-
*
|
19
|
-
* - {@link EnvironmentCredential}
|
20
|
-
* - {@link ManagedIdentityCredential}
|
21
|
-
*
|
22
|
-
* Consult the documentation of these credential types for more information
|
23
|
-
* on how they attempt authentication.
|
24
|
-
*
|
25
|
-
* @param options - Optional parameters. See {@link AzureApplicationCredentialOptions}.
|
26
|
-
*/
|
27
|
-
constructor(options) {
|
28
|
-
const credentialFunctions = [
|
29
|
-
defaultAzureCredential_js_1.createEnvironmentCredential,
|
30
|
-
defaultAzureCredential_js_1.createDefaultManagedIdentityCredential,
|
31
|
-
];
|
32
|
-
super(...credentialFunctions.map((createCredentialFn) => createCredentialFn(options)));
|
33
|
-
}
|
34
|
-
}
|
35
|
-
exports.AzureApplicationCredential = AzureApplicationCredential;
|
36
|
-
//# sourceMappingURL=azureApplicationCredential.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredential.js","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredential.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,2EAGqC;AAGrC,2EAAqE;AAErE;;;GAGG;AACH,MAAa,0BAA2B,SAAQ,kDAAsB;IACpE;;;;;;;;;;;;;OAaG;IACH,YAAY,OAA2C;QACrD,MAAM,mBAAmB,GAAG;YAC1B,uDAA2B;YAC3B,kEAAsC;SACvC,CAAC;QACF,KAAK,CAAC,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzF,CAAC;CACF;AAtBD,gEAsBC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n createDefaultManagedIdentityCredential,\n createEnvironmentCredential,\n} from \"./defaultAzureCredential.js\";\n\nimport type { AzureApplicationCredentialOptions } from \"./azureApplicationCredentialOptions.js\";\nimport { ChainedTokenCredential } from \"./chainedTokenCredential.js\";\n\n/**\n * Provides a default {@link ChainedTokenCredential} configuration that should\n * work for most applications that use the Azure SDK.\n */\nexport class AzureApplicationCredential extends ChainedTokenCredential {\n /**\n * Creates an instance of the AzureApplicationCredential class.\n *\n * The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration that should\n * work for most applications deployed on Azure. The following credential types will be tried, in order:\n *\n * - {@link EnvironmentCredential}\n * - {@link ManagedIdentityCredential}\n *\n * Consult the documentation of these credential types for more information\n * on how they attempt authentication.\n *\n * @param options - Optional parameters. See {@link AzureApplicationCredentialOptions}.\n */\n constructor(options?: AzureApplicationCredentialOptions) {\n const credentialFunctions = [\n createEnvironmentCredential,\n createDefaultManagedIdentityCredential,\n ];\n super(...credentialFunctions.map((createCredentialFn) => createCredentialFn(options)));\n }\n}\n"]}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
|
2
|
-
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
3
|
-
/**
|
4
|
-
* Provides options to configure the {@link AzureApplicationCredential} class.
|
5
|
-
*/
|
6
|
-
export interface AzureApplicationCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions {
|
7
|
-
/**
|
8
|
-
* Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.
|
9
|
-
* This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.
|
10
|
-
*/
|
11
|
-
managedIdentityClientId?: string;
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=azureApplicationCredentialOptions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,iCACf,SAAQ,iCAAiC,EACvC,4BAA4B;IAC9B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredentialOptions.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Provides options to configure the {@link AzureApplicationCredential} class.\n */\nexport interface AzureApplicationCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n CredentialPersistenceOptions {\n /**\n * Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.\n * This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.\n */\n managedIdentityClientId?: string;\n}\n"]}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import type { AzureApplicationCredentialOptions } from "./azureApplicationCredentialOptions.js";
|
2
|
-
import { ChainedTokenCredential } from "./chainedTokenCredential.js";
|
3
|
-
/**
|
4
|
-
* Provides a default {@link ChainedTokenCredential} configuration that should
|
5
|
-
* work for most applications that use the Azure SDK.
|
6
|
-
*/
|
7
|
-
export declare class AzureApplicationCredential extends ChainedTokenCredential {
|
8
|
-
/**
|
9
|
-
* Creates an instance of the AzureApplicationCredential class.
|
10
|
-
*
|
11
|
-
* The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration that should
|
12
|
-
* work for most applications deployed on Azure. The following credential types will be tried, in order:
|
13
|
-
*
|
14
|
-
* - {@link EnvironmentCredential}
|
15
|
-
* - {@link ManagedIdentityCredential}
|
16
|
-
*
|
17
|
-
* Consult the documentation of these credential types for more information
|
18
|
-
* on how they attempt authentication.
|
19
|
-
*
|
20
|
-
* @param options - Optional parameters. See {@link AzureApplicationCredentialOptions}.
|
21
|
-
*/
|
22
|
-
constructor(options?: AzureApplicationCredentialOptions);
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=azureApplicationCredential.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredential.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,sBAAsB;IACpE;;;;;;;;;;;;;OAaG;gBACS,OAAO,CAAC,EAAE,iCAAiC;CAOxD"}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
2
|
-
// Licensed under the MIT License.
|
3
|
-
import { createDefaultManagedIdentityCredential, createEnvironmentCredential, } from "./defaultAzureCredential.js";
|
4
|
-
import { ChainedTokenCredential } from "./chainedTokenCredential.js";
|
5
|
-
/**
|
6
|
-
* Provides a default {@link ChainedTokenCredential} configuration that should
|
7
|
-
* work for most applications that use the Azure SDK.
|
8
|
-
*/
|
9
|
-
export class AzureApplicationCredential extends ChainedTokenCredential {
|
10
|
-
/**
|
11
|
-
* Creates an instance of the AzureApplicationCredential class.
|
12
|
-
*
|
13
|
-
* The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration that should
|
14
|
-
* work for most applications deployed on Azure. The following credential types will be tried, in order:
|
15
|
-
*
|
16
|
-
* - {@link EnvironmentCredential}
|
17
|
-
* - {@link ManagedIdentityCredential}
|
18
|
-
*
|
19
|
-
* Consult the documentation of these credential types for more information
|
20
|
-
* on how they attempt authentication.
|
21
|
-
*
|
22
|
-
* @param options - Optional parameters. See {@link AzureApplicationCredentialOptions}.
|
23
|
-
*/
|
24
|
-
constructor(options) {
|
25
|
-
const credentialFunctions = [
|
26
|
-
createEnvironmentCredential,
|
27
|
-
createDefaultManagedIdentityCredential,
|
28
|
-
];
|
29
|
-
super(...credentialFunctions.map((createCredentialFn) => createCredentialFn(options)));
|
30
|
-
}
|
31
|
-
}
|
32
|
-
//# sourceMappingURL=azureApplicationCredential.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredential.js","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sCAAsC,EACtC,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;GAGG;AACH,MAAM,OAAO,0BAA2B,SAAQ,sBAAsB;IACpE;;;;;;;;;;;;;OAaG;IACH,YAAY,OAA2C;QACrD,MAAM,mBAAmB,GAAG;YAC1B,2BAA2B;YAC3B,sCAAsC;SACvC,CAAC;QACF,KAAK,CAAC,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzF,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n createDefaultManagedIdentityCredential,\n createEnvironmentCredential,\n} from \"./defaultAzureCredential.js\";\n\nimport type { AzureApplicationCredentialOptions } from \"./azureApplicationCredentialOptions.js\";\nimport { ChainedTokenCredential } from \"./chainedTokenCredential.js\";\n\n/**\n * Provides a default {@link ChainedTokenCredential} configuration that should\n * work for most applications that use the Azure SDK.\n */\nexport class AzureApplicationCredential extends ChainedTokenCredential {\n /**\n * Creates an instance of the AzureApplicationCredential class.\n *\n * The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration that should\n * work for most applications deployed on Azure. The following credential types will be tried, in order:\n *\n * - {@link EnvironmentCredential}\n * - {@link ManagedIdentityCredential}\n *\n * Consult the documentation of these credential types for more information\n * on how they attempt authentication.\n *\n * @param options - Optional parameters. See {@link AzureApplicationCredentialOptions}.\n */\n constructor(options?: AzureApplicationCredentialOptions) {\n const credentialFunctions = [\n createEnvironmentCredential,\n createDefaultManagedIdentityCredential,\n ];\n super(...credentialFunctions.map((createCredentialFn) => createCredentialFn(options)));\n }\n}\n"]}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
|
2
|
-
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
3
|
-
/**
|
4
|
-
* Provides options to configure the {@link AzureApplicationCredential} class.
|
5
|
-
*/
|
6
|
-
export interface AzureApplicationCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions {
|
7
|
-
/**
|
8
|
-
* Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.
|
9
|
-
* This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.
|
10
|
-
*/
|
11
|
-
managedIdentityClientId?: string;
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=azureApplicationCredentialOptions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,iCACf,SAAQ,iCAAiC,EACvC,4BAA4B;IAC9B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Provides options to configure the {@link AzureApplicationCredential} class.\n */\nexport interface AzureApplicationCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n CredentialPersistenceOptions {\n /**\n * Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.\n * This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.\n */\n managedIdentityClientId?: string;\n}\n"]}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import type { AzureApplicationCredentialOptions } from "./azureApplicationCredentialOptions.js";
|
2
|
-
import { ChainedTokenCredential } from "./chainedTokenCredential.js";
|
3
|
-
/**
|
4
|
-
* Provides a default {@link ChainedTokenCredential} configuration that should
|
5
|
-
* work for most applications that use the Azure SDK.
|
6
|
-
*/
|
7
|
-
export declare class AzureApplicationCredential extends ChainedTokenCredential {
|
8
|
-
/**
|
9
|
-
* Creates an instance of the AzureApplicationCredential class.
|
10
|
-
*
|
11
|
-
* The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration that should
|
12
|
-
* work for most applications deployed on Azure. The following credential types will be tried, in order:
|
13
|
-
*
|
14
|
-
* - {@link EnvironmentCredential}
|
15
|
-
* - {@link ManagedIdentityCredential}
|
16
|
-
*
|
17
|
-
* Consult the documentation of these credential types for more information
|
18
|
-
* on how they attempt authentication.
|
19
|
-
*
|
20
|
-
* @param options - Optional parameters. See {@link AzureApplicationCredentialOptions}.
|
21
|
-
*/
|
22
|
-
constructor(options?: AzureApplicationCredentialOptions);
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=azureApplicationCredential.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredential.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,sBAAsB;IACpE;;;;;;;;;;;;;OAaG;gBACS,OAAO,CAAC,EAAE,iCAAiC;CAOxD"}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
2
|
-
// Licensed under the MIT License.
|
3
|
-
import { createDefaultManagedIdentityCredential, createEnvironmentCredential, } from "./defaultAzureCredential.js";
|
4
|
-
import { ChainedTokenCredential } from "./chainedTokenCredential.js";
|
5
|
-
/**
|
6
|
-
* Provides a default {@link ChainedTokenCredential} configuration that should
|
7
|
-
* work for most applications that use the Azure SDK.
|
8
|
-
*/
|
9
|
-
export class AzureApplicationCredential extends ChainedTokenCredential {
|
10
|
-
/**
|
11
|
-
* Creates an instance of the AzureApplicationCredential class.
|
12
|
-
*
|
13
|
-
* The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration that should
|
14
|
-
* work for most applications deployed on Azure. The following credential types will be tried, in order:
|
15
|
-
*
|
16
|
-
* - {@link EnvironmentCredential}
|
17
|
-
* - {@link ManagedIdentityCredential}
|
18
|
-
*
|
19
|
-
* Consult the documentation of these credential types for more information
|
20
|
-
* on how they attempt authentication.
|
21
|
-
*
|
22
|
-
* @param options - Optional parameters. See {@link AzureApplicationCredentialOptions}.
|
23
|
-
*/
|
24
|
-
constructor(options) {
|
25
|
-
const credentialFunctions = [
|
26
|
-
createEnvironmentCredential,
|
27
|
-
createDefaultManagedIdentityCredential,
|
28
|
-
];
|
29
|
-
super(...credentialFunctions.map((createCredentialFn) => createCredentialFn(options)));
|
30
|
-
}
|
31
|
-
}
|
32
|
-
//# sourceMappingURL=azureApplicationCredential.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredential.js","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,sCAAsC,EACtC,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;GAGG;AACH,MAAM,OAAO,0BAA2B,SAAQ,sBAAsB;IACpE;;;;;;;;;;;;;OAaG;IACH,YAAY,OAA2C;QACrD,MAAM,mBAAmB,GAAG;YAC1B,2BAA2B;YAC3B,sCAAsC;SACvC,CAAC;QACF,KAAK,CAAC,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC,kBAAkB,EAAE,EAAE,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzF,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n createDefaultManagedIdentityCredential,\n createEnvironmentCredential,\n} from \"./defaultAzureCredential.js\";\n\nimport type { AzureApplicationCredentialOptions } from \"./azureApplicationCredentialOptions.js\";\nimport { ChainedTokenCredential } from \"./chainedTokenCredential.js\";\n\n/**\n * Provides a default {@link ChainedTokenCredential} configuration that should\n * work for most applications that use the Azure SDK.\n */\nexport class AzureApplicationCredential extends ChainedTokenCredential {\n /**\n * Creates an instance of the AzureApplicationCredential class.\n *\n * The AzureApplicationCredential provides a default {@link ChainedTokenCredential} configuration that should\n * work for most applications deployed on Azure. The following credential types will be tried, in order:\n *\n * - {@link EnvironmentCredential}\n * - {@link ManagedIdentityCredential}\n *\n * Consult the documentation of these credential types for more information\n * on how they attempt authentication.\n *\n * @param options - Optional parameters. See {@link AzureApplicationCredentialOptions}.\n */\n constructor(options?: AzureApplicationCredentialOptions) {\n const credentialFunctions = [\n createEnvironmentCredential,\n createDefaultManagedIdentityCredential,\n ];\n super(...credentialFunctions.map((createCredentialFn) => createCredentialFn(options)));\n }\n}\n"]}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import type { CredentialPersistenceOptions } from "./credentialPersistenceOptions.js";
|
2
|
-
import type { MultiTenantTokenCredentialOptions } from "./multiTenantTokenCredentialOptions.js";
|
3
|
-
/**
|
4
|
-
* Provides options to configure the {@link AzureApplicationCredential} class.
|
5
|
-
*/
|
6
|
-
export interface AzureApplicationCredentialOptions extends MultiTenantTokenCredentialOptions, CredentialPersistenceOptions {
|
7
|
-
/**
|
8
|
-
* Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.
|
9
|
-
* This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.
|
10
|
-
*/
|
11
|
-
managedIdentityClientId?: string;
|
12
|
-
}
|
13
|
-
//# sourceMappingURL=azureApplicationCredentialOptions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredentialOptions.d.ts","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredentialOptions.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,wCAAwC,CAAC;AAEhG;;GAEG;AACH,MAAM,WAAW,iCACf,SAAQ,iCAAiC,EACvC,4BAA4B;IAC9B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"azureApplicationCredentialOptions.js","sourceRoot":"","sources":["../../../src/credentials/azureApplicationCredentialOptions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { CredentialPersistenceOptions } from \"./credentialPersistenceOptions.js\";\nimport type { MultiTenantTokenCredentialOptions } from \"./multiTenantTokenCredentialOptions.js\";\n\n/**\n * Provides options to configure the {@link AzureApplicationCredential} class.\n */\nexport interface AzureApplicationCredentialOptions\n extends MultiTenantTokenCredentialOptions,\n CredentialPersistenceOptions {\n /**\n * Optionally pass in a user assigned client ID to be used by the {@link ManagedIdentityCredential}.\n * This client ID can also be passed through to the {@link ManagedIdentityCredential} through the environment variable: AZURE_CLIENT_ID.\n */\n managedIdentityClientId?: string;\n}\n"]}
|