@azure/identity 1.3.0 → 1.5.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.
Potentially problematic release.
This version of @azure/identity might be problematic. Click here for more details.
- package/CHANGELOG.md +19 -0
- package/README.md +8 -1
- package/dist/index.js +233 -168
- package/dist/index.js.map +1 -1
- package/dist-esm/src/client/identityClient.js +92 -51
- package/dist-esm/src/client/identityClient.js.map +1 -1
- package/dist-esm/src/client/msalClient.js.map +1 -1
- package/dist-esm/src/constants.js +5 -0
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/credentials/authorizationCodeCredential.browser.js.map +1 -1
- package/dist-esm/src/credentials/authorizationCodeCredential.js +8 -7
- package/dist-esm/src/credentials/authorizationCodeCredential.js.map +1 -1
- package/dist-esm/src/credentials/azureCliCredential.browser.js.map +1 -1
- package/dist-esm/src/credentials/azureCliCredential.js.map +1 -1
- package/dist-esm/src/credentials/chainedTokenCredential.js.map +1 -1
- package/dist-esm/src/credentials/clientCertificateCredential.browser.js.map +1 -1
- package/dist-esm/src/credentials/clientCertificateCredential.js +8 -7
- package/dist-esm/src/credentials/clientCertificateCredential.js.map +1 -1
- package/dist-esm/src/credentials/clientSecretCredential.js +10 -9
- package/dist-esm/src/credentials/clientSecretCredential.js.map +1 -1
- package/dist-esm/src/credentials/deviceCodeCredential.browser.js.map +1 -1
- package/dist-esm/src/credentials/deviceCodeCredential.js.map +1 -1
- package/dist-esm/src/credentials/environmentCredential.browser.js.map +1 -1
- package/dist-esm/src/credentials/environmentCredential.js.map +1 -1
- package/dist-esm/src/credentials/interactiveBrowserCredential.browser.js +2 -3
- package/dist-esm/src/credentials/interactiveBrowserCredential.browser.js.map +1 -1
- package/dist-esm/src/credentials/interactiveBrowserCredential.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js +11 -5
- package/dist-esm/src/credentials/managedIdentityCredential/appServiceMsi2017.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js +16 -9
- package/dist-esm/src/credentials/managedIdentityCredential/arcMsi.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js +4 -3
- package/dist-esm/src/credentials/managedIdentityCredential/cloudShellMsi.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/constants.js +2 -1
- package/dist-esm/src/credentials/managedIdentityCredential/constants.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js +6 -4
- package/dist-esm/src/credentials/managedIdentityCredential/fabricMsi.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js +42 -21
- package/dist-esm/src/credentials/managedIdentityCredential/imdsMsi.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/index.browser.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/index.js +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/index.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/models.js.map +1 -1
- package/dist-esm/src/credentials/managedIdentityCredential/utils.js +6 -2
- package/dist-esm/src/credentials/managedIdentityCredential/utils.js.map +1 -1
- package/dist-esm/src/credentials/usernamePasswordCredential.js +8 -7
- package/dist-esm/src/credentials/usernamePasswordCredential.js.map +1 -1
- package/dist-esm/src/credentials/visualStudioCodeCredential.browser.js.map +1 -1
- package/dist-esm/src/credentials/visualStudioCodeCredential.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/util/isNode.js +10 -0
- package/dist-esm/src/util/isNode.js.map +1 -0
- package/package.json +6 -7
- package/types/identity.d.ts +7 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
/**
|
|
4
|
+
* A constant that indicates whether the environment is node.js or browser based.
|
|
5
|
+
*/
|
|
6
|
+
export const isNode = typeof process !== "undefined" &&
|
|
7
|
+
!!process.version &&
|
|
8
|
+
!!process.versions &&
|
|
9
|
+
!!process.versions.node;
|
|
10
|
+
//# sourceMappingURL=isNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isNode.js","sourceRoot":"","sources":["../../../src/util/isNode.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GACjB,OAAO,OAAO,KAAK,WAAW;IAC9B,CAAC,CAAC,OAAO,CAAC,OAAO;IACjB,CAAC,CAAC,OAAO,CAAC,QAAQ;IAClB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * A constant that indicates whether the environment is node.js or browser based.\n */\nexport const isNode =\n typeof process !== \"undefined\" &&\n !!process.version &&\n !!process.versions &&\n !!process.versions.node;\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/identity",
|
|
3
3
|
"sdk-type": "client",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"description": "Provides credential implementations for Azure SDK libraries that can authenticate with Azure Active Directory",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist-esm/src/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"LICENSE"
|
|
56
56
|
],
|
|
57
57
|
"engines": {
|
|
58
|
-
"node": ">=
|
|
58
|
+
"node": ">=12.0.0"
|
|
59
59
|
},
|
|
60
60
|
"repository": "github:Azure/azure-sdk-for-js",
|
|
61
61
|
"keywords": [
|
|
@@ -74,14 +74,13 @@
|
|
|
74
74
|
"bugs": {
|
|
75
75
|
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
76
76
|
},
|
|
77
|
-
"engine": {
|
|
78
|
-
"node": ">=8.0.0"
|
|
79
|
-
},
|
|
80
77
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity/README.md",
|
|
81
78
|
"sideEffects": false,
|
|
82
79
|
"dependencies": {
|
|
83
|
-
"@azure/core-
|
|
84
|
-
"@azure/core-
|
|
80
|
+
"@azure/core-auth": "^1.3.0",
|
|
81
|
+
"@azure/core-client": "^1.0.0",
|
|
82
|
+
"@azure/core-rest-pipeline": "^1.1.0",
|
|
83
|
+
"@azure/core-tracing": "1.0.0-preview.12",
|
|
85
84
|
"@azure/logger": "^1.0.0",
|
|
86
85
|
"@azure/msal-node": "1.0.0-beta.6",
|
|
87
86
|
"@types/stoppable": "^1.1.0",
|
package/types/identity.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AccessToken } from '@azure/core-
|
|
1
|
+
import { AccessToken } from '@azure/core-auth';
|
|
2
2
|
import { AzureLogger } from '@azure/logger';
|
|
3
|
-
import { GetTokenOptions } from '@azure/core-
|
|
4
|
-
import { PipelineOptions } from '@azure/core-
|
|
5
|
-
import { TokenCredential } from '@azure/core-
|
|
3
|
+
import { GetTokenOptions } from '@azure/core-auth';
|
|
4
|
+
import { PipelineOptions } from '@azure/core-rest-pipeline';
|
|
5
|
+
import { TokenCredential } from '@azure/core-auth';
|
|
6
6
|
export { AccessToken }
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -632,8 +632,9 @@ export { TokenCredential }
|
|
|
632
632
|
*/
|
|
633
633
|
export declare interface TokenCredentialOptions extends PipelineOptions {
|
|
634
634
|
/**
|
|
635
|
-
* The authority host to use for authentication requests.
|
|
636
|
-
*
|
|
635
|
+
* The authority host to use for authentication requests.
|
|
636
|
+
* Possible values are available through {@link AzureAuthorityHosts}.
|
|
637
|
+
* The default is "https://login.microsoftonline.com".
|
|
637
638
|
*/
|
|
638
639
|
authorityHost?: string;
|
|
639
640
|
}
|