@azure/identity 3.2.4 → 3.3.0-alpha.20230811.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @azure/identity might be problematic. Click here for more details.

Files changed (39) hide show
  1. package/README.md +27 -10
  2. package/dist/index.js +82 -36
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/src/constants.js +3 -1
  5. package/dist-esm/src/constants.js.map +1 -1
  6. package/dist-esm/src/credentials/azureCliCredential.js +3 -3
  7. package/dist-esm/src/credentials/azureCliCredential.js.map +1 -1
  8. package/dist-esm/src/credentials/azurePowerShellCredential.js +4 -4
  9. package/dist-esm/src/credentials/azurePowerShellCredential.js.map +1 -1
  10. package/dist-esm/src/credentials/managedIdentityCredential/index.js +1 -0
  11. package/dist-esm/src/credentials/managedIdentityCredential/index.js.map +1 -1
  12. package/dist-esm/src/msal/browserFlows/msalAuthCode.js +2 -0
  13. package/dist-esm/src/msal/browserFlows/msalAuthCode.js.map +1 -1
  14. package/dist-esm/src/msal/browserFlows/msalBrowserCommon.js.map +1 -1
  15. package/dist-esm/src/msal/credentials.js.map +1 -1
  16. package/dist-esm/src/msal/nodeFlows/msalAuthorizationCode.js +6 -4
  17. package/dist-esm/src/msal/nodeFlows/msalAuthorizationCode.js.map +1 -1
  18. package/dist-esm/src/msal/nodeFlows/msalClientAssertion.js +1 -1
  19. package/dist-esm/src/msal/nodeFlows/msalClientAssertion.js.map +1 -1
  20. package/dist-esm/src/msal/nodeFlows/msalClientCertificate.js +1 -1
  21. package/dist-esm/src/msal/nodeFlows/msalClientCertificate.js.map +1 -1
  22. package/dist-esm/src/msal/nodeFlows/msalClientSecret.js +1 -1
  23. package/dist-esm/src/msal/nodeFlows/msalClientSecret.js.map +1 -1
  24. package/dist-esm/src/msal/nodeFlows/msalDeviceCode.js +1 -1
  25. package/dist-esm/src/msal/nodeFlows/msalDeviceCode.js.map +1 -1
  26. package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js +57 -16
  27. package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js.map +1 -1
  28. package/dist-esm/src/msal/nodeFlows/msalOnBehalfOf.js +1 -1
  29. package/dist-esm/src/msal/nodeFlows/msalOnBehalfOf.js.map +1 -1
  30. package/dist-esm/src/msal/nodeFlows/msalOpenBrowser.js +4 -4
  31. package/dist-esm/src/msal/nodeFlows/msalOpenBrowser.js.map +1 -1
  32. package/dist-esm/src/msal/nodeFlows/msalUsernamePassword.js +1 -1
  33. package/dist-esm/src/msal/nodeFlows/msalUsernamePassword.js.map +1 -1
  34. package/dist-esm/src/msal/types.js.map +1 -1
  35. package/dist-esm/src/tokenCredentialOptions.js.map +1 -1
  36. package/dist-esm/src/util/scopeUtils.js +1 -1
  37. package/dist-esm/src/util/scopeUtils.js.map +1 -1
  38. package/package.json +8 -8
  39. package/types/identity.d.ts +8 -1
@@ -1 +1 @@
1
- {"version":3,"file":"scopeUtils.js","sourceRoot":"","sources":["../../../src/util/scopeUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAoB,WAAW,EAAE,MAAM,WAAW,CAAC;AAE1D;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,MAAyB;IACpD,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAa,EAAE,MAAwB;IACtE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE;QACtC,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;QACrF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QAChD,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;AAC1C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CredentialLogger, formatError } from \"./logging\";\n\n/**\n * Ensures the scopes value is an array.\n * @internal\n */\nexport function ensureScopes(scopes: string | string[]): string[] {\n return Array.isArray(scopes) ? scopes : [scopes];\n}\n\n/**\n * Throws if the received scope is not valid.\n * @internal\n */\nexport function ensureValidScope(scope: string, logger: CredentialLogger): void {\n if (!scope.match(/^[0-9a-zA-Z-.:/]+$/)) {\n const error = new Error(\"Invalid scope was specified by the user or calling client\");\n logger.getToken.info(formatError(scope, error));\n throw error;\n }\n}\n\n/**\n * Returns the resource out of a scope.\n * @internal\n */\nexport function getScopeResource(scope: string): string {\n return scope.replace(/\\/.default$/, \"\");\n}\n"]}
1
+ {"version":3,"file":"scopeUtils.js","sourceRoot":"","sources":["../../../src/util/scopeUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAoB,WAAW,EAAE,MAAM,WAAW,CAAC;AAE1D;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,MAAyB;IACpD,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAa,EAAE,MAAwB;IACrF,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE;QACtC,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;QACrF,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QAChD,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;AAC1C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { CredentialLogger, formatError } from \"./logging\";\n\n/**\n * Ensures the scopes value is an array.\n * @internal\n */\nexport function ensureScopes(scopes: string | string[]): string[] {\n return Array.isArray(scopes) ? scopes : [scopes];\n}\n\n/**\n * Throws if the received scope is not valid.\n * @internal\n */\nexport function ensureValidScopeForDevTimeCreds(scope: string, logger: CredentialLogger): void {\n if (!scope.match(/^[0-9a-zA-Z-.:/]+$/)) {\n const error = new Error(\"Invalid scope was specified by the user or calling client\");\n logger.getToken.info(formatError(scope, error));\n throw error;\n }\n}\n\n/**\n * Returns the resource out of a scope.\n * @internal\n */\nexport function getScopeResource(scope: string): string {\n return scope.replace(/\\/.default$/, \"\");\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@azure/identity",
3
3
  "sdk-type": "client",
4
- "version": "3.2.4",
4
+ "version": "3.3.0-alpha.20230811.1",
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",
@@ -105,7 +105,7 @@
105
105
  "sideEffects": false,
106
106
  "dependencies": {
107
107
  "@azure/abort-controller": "^1.0.0",
108
- "@azure/core-auth": "^1.3.0",
108
+ "@azure/core-auth": "^1.5.0",
109
109
  "@azure/core-client": "^1.4.0",
110
110
  "@azure/core-rest-pipeline": "^1.1.0",
111
111
  "@azure/core-tracing": "^1.0.0",
@@ -123,10 +123,10 @@
123
123
  },
124
124
  "devDependencies": {
125
125
  "@azure-tools/test-recorder": "^3.0.0",
126
- "@azure/dev-tool": "^1.0.0",
127
- "@azure/eslint-plugin-azure-sdk": "^3.0.0",
126
+ "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
127
+ "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
128
128
  "@azure/keyvault-keys": "^4.2.0",
129
- "@azure/test-utils": "^1.0.0",
129
+ "@azure/test-utils": ">=1.0.0-alpha <1.0.0-alphb",
130
130
  "@microsoft/api-extractor": "^7.31.1",
131
131
  "@types/chai": "^4.1.6",
132
132
  "@types/jsonwebtoken": "^9.0.0",
@@ -134,7 +134,7 @@
134
134
  "@types/mocha": "^7.0.2",
135
135
  "@types/ms": "^0.7.31",
136
136
  "@types/node": "^14.0.0",
137
- "@types/sinon": "^9.0.4",
137
+ "@types/sinon": "^10.0.0",
138
138
  "@types/stoppable": "^1.1.0",
139
139
  "@types/uuid": "^8.0.0",
140
140
  "chai": "^4.2.0",
@@ -158,8 +158,8 @@
158
158
  "prettier": "^2.5.1",
159
159
  "puppeteer": "^19.2.2",
160
160
  "rimraf": "^3.0.0",
161
- "sinon": "^9.0.2",
162
- "ts-node": "^10.9.1",
161
+ "sinon": "^15.0.0",
162
+ "ts-node": "^10.0.0",
163
163
  "typescript": "~5.0.0",
164
164
  "util": "^0.12.1",
165
165
  "uuid": "^8.3.2"
@@ -1395,10 +1395,17 @@ export declare interface TokenCredentialOptions extends CommonClientOptions {
1395
1395
  */
1396
1396
  authorityHost?: string;
1397
1397
  /**
1398
- * Allows logging account information once the authentication flow succeeds.
1398
+ * Allows users to configure settings for logging policy options, allow logging account information and personally identifiable information for customer support.
1399
1399
  */
1400
1400
  loggingOptions?: LogPolicyOptions & {
1401
+ /**
1402
+ * Allows logging account information once the authentication flow succeeds.
1403
+ */
1401
1404
  allowLoggingAccountIdentifiers?: boolean;
1405
+ /**
1406
+ * Allows logging personally identifiable information for customer support.
1407
+ */
1408
+ enableUnsafeSupportLogging?: boolean;
1402
1409
  };
1403
1410
  }
1404
1411