diff --git a/sdk/identity/identity/test/manual/nodeTest.js b/sdk/identity/identity/test/manual/nodeTest.js index 1ca648a1f80f..abb4ddadedaa 100644 --- a/sdk/identity/identity/test/manual/nodeTest.js +++ b/sdk/identity/identity/test/manual/nodeTest.js @@ -5,6 +5,7 @@ const dotenv = require("dotenv"); // Ensure you have a .env file in the same directory with something similar to: // // AZURE_CLIENT_ID="value" +// AZURE_TENANT_ID="value" // AZURE_CLIENT_SECRET="value" // SERVICE_BUS_ENDPOINT="value" // QUEUE_NAME="value" diff --git a/sdk/identity/identity/test/manual/nodeTestSilent.js b/sdk/identity/identity/test/manual/nodeTestSilent.js index 525a383b8587..7b499ec35efa 100644 --- a/sdk/identity/identity/test/manual/nodeTestSilent.js +++ b/sdk/identity/identity/test/manual/nodeTestSilent.js @@ -1,10 +1,14 @@ const identity = require("@azure/identity"); const serviceBus = require("@azure/service-bus"); const dotenv = require("dotenv"); +const { cachePersistencePlugin } = require("@azure/identity-cache-persistence"); + +identity.useIdentityPlugin(cachePersistencePlugin); // Ensure you have a .env file in the same directory with something similar to: // // AZURE_CLIENT_ID="value" +// AZURE_TENANT_ID="value" // AZURE_CLIENT_SECRET="value" // SERVICE_BUS_ENDPOINT="value" // QUEUE_NAME="value" diff --git a/sdk/identity/identity/test/manual/package.json b/sdk/identity/identity/test/manual/package.json index a4dadc844321..cf490d5271bc 100644 --- a/sdk/identity/identity/test/manual/package.json +++ b/sdk/identity/identity/test/manual/package.json @@ -16,11 +16,12 @@ "@azure/service-bus": "^7.0.3", "react": "^16.8.6", "react-dom": "^16.8.6", - "tslib": "^1.9.3" + "tslib": "1.9.3" }, "devDependencies": { + "@azure/identity-cache-persistence": "^1.0.0-beta.2", "@types/express": "^4.16.0", - "@types/node": "^12.0.0", + "@types/node": "12.0.0", "@types/react": "^16.8.24", "@types/react-dom": "^16.8.5", "@types/webpack": "^4.4.13",