diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 06d340c98009..5f3e70568509 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1579,7 +1579,6 @@ packages: /@opentelemetry/node/0.22.0_@opentelemetry+api@1.0.3: resolution: {integrity: sha512-+HhGbDruQ7cwejVOIYyxRa28uosnG8W95NiQZ6qE8PXXPsDSyGeftAPbtYpGit0H2f5hrVcMlwmWHeAo9xkSLA==} engines: {node: '>=8.0.0'} - deprecated: Package renamed to @opentelemetry/sdk-trace-node peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: @@ -11794,7 +11793,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-bkO+RqEzutaWd9pgHnbYW+L49YzP+MnO19vEUxROPomVn4frVNBMOUv3tPdZ21k3A8HT+PHFSzU6zAUX0P8dPQ==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-nSnJO5YUQrADRM2Don+4TNMIbnZfSBaykUWTF5ZxWsbKcEP+g1nU0uM7tMWhPqZaY1XEdR55XIem4o40PWr8yQ==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -12585,7 +12584,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-iRbvRW1AI8qOZY+dkzisvXFgybYssX9NgChAuqaGV8dltHQaY46PCBwNYepCjB1GbFfVqz4bl4CKtvZ6zhogXQ==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-es1wTz4ESP2fxE8Wky3jiVQdorQHXzokj57HKP5pNkP4WnDy+0p20f6dQZAgH1abgNsYYha8yK+vK/i2txJ+AQ==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/CHANGELOG.md b/sdk/remoterendering/mixed-reality-remote-rendering/CHANGELOG.md index b6403bf6c954..a94ca3caccb5 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/CHANGELOG.md +++ b/sdk/remoterendering/mixed-reality-remote-rendering/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 1.0.0-beta.2 (Unreleased) + +- Update samples to depend on Azure Identity 2.0.1. + ## 1.0.0-beta.1 (2021-09-21) - Initial release. diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/README.md b/sdk/remoterendering/mixed-reality-remote-rendering/README.md index f51d937ccece..0c2ef5fa0aa7 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/README.md +++ b/sdk/remoterendering/mixed-reality-remote-rendering/README.md @@ -97,12 +97,15 @@ const client = new RemoteRenderingClient(serviceEndpoint, accountId, accountDoma Use the `DeviceCodeCredential` object to perform device code authentication. ```typescript Snippet:CreateAClientWithDeviceCode -let deviceCodeCallback = (deviceCodeInfo: DeviceCodeInfo) => { +const userPromptCallback = (deviceCodeInfo: DeviceCodeInfo) => { console.debug(deviceCodeInfo.message); console.log(deviceCodeInfo.message); }; -let credential = new DeviceCodeCredential(tenantId, clientId, deviceCodeCallback, { +const credential = new DeviceCodeCredential({ + tenantId: tenantId, + clientId: clientId, + userPromptCallback: userPromptCallback, authorityHost: "https://login.microsoftonline.com/" + tenantId }); diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/package.json b/sdk/remoterendering/mixed-reality-remote-rendering/package.json index a9527bfa9c60..7e1a08ed50e3 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/package.json +++ b/sdk/remoterendering/mixed-reality-remote-rendering/package.json @@ -88,7 +88,7 @@ "devDependencies": { "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^1.1.0", + "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^1.0.0", "@microsoft/api-extractor": "^7.18.11", "@types/chai": "^4.1.6", diff --git a/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/moreComplexConversion.ts b/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/moreComplexConversion.ts index 921fa4e32ef9..f3a75431ec2f 100644 --- a/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/moreComplexConversion.ts +++ b/sdk/remoterendering/mixed-reality-remote-rendering/samples-dev/moreComplexConversion.ts @@ -67,12 +67,15 @@ export function getClientWithAAD() { } export function getClientWithDeviceCode() { - const deviceCodeCallback = (deviceCodeInfo: DeviceCodeInfo) => { + const userPromptCallback = (deviceCodeInfo: DeviceCodeInfo) => { console.debug(deviceCodeInfo.message); console.log(deviceCodeInfo.message); }; - const credential = new DeviceCodeCredential(tenantId, clientId, deviceCodeCallback, { + const credential = new DeviceCodeCredential({ + tenantId: tenantId, + clientId: clientId, + userPromptCallback: userPromptCallback, authorityHost: "https://login.microsoftonline.com/" + tenantId });