You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/includes/manage-teams-identity-js.md
+24-18Lines changed: 24 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,9 @@ ms.author: gistefan
17
17
18
18
-[Node.js](https://nodejs.org/) Active LTS and Maintenance LTS versions (8.11.1 and 10.14.1 recommended).
19
19
20
+
## Final code
21
+
Find the finalized code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/manage-teams-identity-mobile-and-desktop).
22
+
20
23
## Set up
21
24
22
25
### Create a new Node.js Application
@@ -42,6 +45,7 @@ Use the `npm install` command to install the Azure Communication Services Identi
app.listen(SERVER_PORT, () =>console.log(`Communication access token application started on ${SERVER_PORT}!`))
@@ -76,54 +83,53 @@ From the project directory:
76
83
The first step in the token exchange flow is getting a token for your Teams user by using [Microsoft.Identity.Client](../../../active-directory/develop/reference-v2-libraries.md).
77
84
78
85
```javascript
79
-
80
-
const clientId = "<contoso_application_id>";
81
-
const tenantId = "<contoso_tenant_id>";
86
+
// Create configuration object that will be passed to MSAL instance on creation.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/includes/manage-teams-identity-net.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,9 @@ ms.author: gistefan
17
17
18
18
- The latest version [.NET SDK](https://dotnet.microsoft.com/download/dotnet) for your operating system.
19
19
20
+
## Final code
21
+
Find the finalized code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/tree/main/ManageTeamsIdentityMobileAndDesktop).
### Step 1: Receive the Azure AD user token and object ID via the MSAL library
78
81
79
-
The first step in the token exchange flow is getting a token for your Teams user by using [Microsoft.Identity.Client](../../../active-directory/develop/reference-v2-libraries.md).
82
+
The first step in the token exchange flow is getting a token for your Teams user by using [Microsoft.Identity.Client](../../../active-directory/develop/reference-v2-libraries.md). The code below retrieves Azure AD client ID and tenant ID from environment variables named `AAD_CLIENT_ID` and `AAD_TENANT_ID`.
80
83
81
84
```csharp
82
-
stringappId="<contoso_application_id>";
83
-
stringtenantId="<contoso_tenant_id>";
85
+
// This code demonstrates how to fetch an AAD client ID and tenant ID
0 commit comments