@azure/identity 3.2.4-alpha.20230807.1 → 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.
- package/README.md +16 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +1 -1
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/msal/browserFlows/msalAuthCode.js +2 -0
- package/dist-esm/src/msal/browserFlows/msalAuthCode.js.map +1 -1
- package/dist-esm/src/msal/browserFlows/msalBrowserCommon.js.map +1 -1
- package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js +2 -0
- package/dist-esm/src/msal/nodeFlows/msalNodeCommon.js.map +1 -1
- package/dist-esm/src/tokenCredentialOptions.js.map +1 -1
- package/package.json +1 -1
- package/types/identity.d.ts +8 -1
package/README.md
CHANGED
|
@@ -342,7 +342,7 @@ Object ID of the authenticated user, and if possible the User Principal Name.
|
|
|
342
342
|
|
|
343
343
|
For example, using the `DefaultAzureCredential`:
|
|
344
344
|
|
|
345
|
-
```
|
|
345
|
+
```ts
|
|
346
346
|
import { setLogLevel } from "@azure/logger";
|
|
347
347
|
|
|
348
348
|
setLogLevel("info");
|
|
@@ -358,6 +358,21 @@ Once that credential authenticates, the following message will appear in the log
|
|
|
358
358
|
azure:identity:info [Authenticated account] Client ID: HIDDEN. Tenant ID: HIDDEN. User Principal Name: HIDDEN. Object ID (user): HIDDEN
|
|
359
359
|
```
|
|
360
360
|
|
|
361
|
+
In cases where the user's [Personally Identifiable Information](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/PII) needs to be logged for customer support, developers can set `enableSupportLogging` to true in the
|
|
362
|
+
`loggingOptions`.
|
|
363
|
+
|
|
364
|
+
For example, using the `DefaultAzureCredential`:
|
|
365
|
+
|
|
366
|
+
```ts
|
|
367
|
+
import { setLogLevel } from "@azure/logger";
|
|
368
|
+
|
|
369
|
+
setLogLevel("info");
|
|
370
|
+
|
|
371
|
+
const credential = new DefaultAzureCredential({
|
|
372
|
+
loggingOptions: { enableSupportLogging: true },
|
|
373
|
+
});
|
|
374
|
+
```
|
|
375
|
+
|
|
361
376
|
For assistance with troubleshooting, see the [troubleshooting guide](https://aka.ms/azsdk/js/identity/troubleshoot).
|
|
362
377
|
|
|
363
378
|
## Next steps
|
package/dist/index.js
CHANGED
|
@@ -257,7 +257,7 @@ function credentialLogger(title, log = logger$n) {
|
|
|
257
257
|
/**
|
|
258
258
|
* Current version of the `@azure/identity` package.
|
|
259
259
|
*/
|
|
260
|
-
const SDK_VERSION = `3.
|
|
260
|
+
const SDK_VERSION = `3.3.0`;
|
|
261
261
|
/**
|
|
262
262
|
* The default client ID for authentication
|
|
263
263
|
* @internal
|
|
@@ -1097,6 +1097,7 @@ class MsalNode extends MsalBaseUtilities {
|
|
|
1097
1097
|
* Generates a MSAL configuration that generally works for Node.js
|
|
1098
1098
|
*/
|
|
1099
1099
|
defaultNodeMsalConfig(options) {
|
|
1100
|
+
var _a;
|
|
1100
1101
|
const clientId = options.clientId || DeveloperSignOnClientId;
|
|
1101
1102
|
const tenantId = resolveTenantId(options.logger, options.tenantId, options.clientId);
|
|
1102
1103
|
this.authorityHost = options.authorityHost || process.env.AZURE_AUTHORITY_HOST;
|
|
@@ -1116,6 +1117,7 @@ class MsalNode extends MsalBaseUtilities {
|
|
|
1116
1117
|
loggerOptions: {
|
|
1117
1118
|
loggerCallback: defaultLoggerCallback(options.logger),
|
|
1118
1119
|
logLevel: getMSALLogLevel(logger$o.getLogLevel()),
|
|
1120
|
+
piiLoggingEnabled: (_a = options.loggingOptions) === null || _a === void 0 ? void 0 : _a.enableUnsafeSupportLogging,
|
|
1119
1121
|
},
|
|
1120
1122
|
},
|
|
1121
1123
|
};
|