Skip to content

Commit

Permalink
Update ARR samples to depend on Azure Identity 2.0.1 (#18648)
Browse files Browse the repository at this point in the history
- Authored by Malcolm Tyrell
  • Loading branch information
MalcolmTyrrell authored Nov 16, 2021
1 parent a72c6e8 commit 52d2703
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
5 changes: 2 additions & 3 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -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.
7 changes: 5 additions & 2 deletions sdk/remoterendering/mixed-reality-remote-rendering/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down

0 comments on commit 52d2703

Please sign in to comment.