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
Find the finalized code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-java-quickstarts/tree/main/ManageTeamsIdentityMobileAndDesktop).
22
+
20
23
## Set up
21
24
22
25
### Create a new Java application
@@ -62,17 +65,17 @@ Use the following code to begin:
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).
90
93
91
94
```java
95
+
// You need to provide your Azure AD client ID and tenant ID
Find the finalized code for this quickstart on [GitHub](https://github.com/Azure-Samples/communication-services-python-quickstarts/tree/main/manage-teams-identity-mobile-and-desktop).
19
22
20
23
## Set up
21
24
@@ -32,13 +35,13 @@ ms.author: gistefan
32
35
```python
33
36
import os
34
37
from azure.communication.identity import CommunicationIdentityClient, CommunicationUserIdentifier
38
+
from msal.application import PublicClientApplication
35
39
36
40
try:
37
41
print("Azure Communication Services - Access Tokens Quickstart")
38
42
# Quickstart code goes here
39
43
exceptExceptionas ex:
40
-
print("Exception:")
41
-
print(ex)
44
+
print(f"Exception: {ex}")
42
45
```
43
46
44
47
### Install the package
@@ -55,18 +58,21 @@ pip install msal
55
58
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). In Azure portal, configure the Redirect URI of your "Mobile and Desktop application" as `http://localhost`.
56
59
57
60
```python
58
-
from msal.application import PublicClientApplication
59
-
60
-
client_id ="<contoso_application_id>"
61
-
tenant_id ="<contoso_tenant_id>"
61
+
# This code demonstrates how to fetch your Azure AD client ID and tenant ID
0 commit comments