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
Access tokens let Azure Communication Services SDKs [authenticate](../../concepts/authentication.md) directly against Azure Communication Services as a particular identity. You'll need to create access tokens if you want your users to join a call or chat thread within your application.
19
+
Access tokens enable Azure Communication Services SDKs to [authenticate](../../concepts/authentication.md) directly against Azure Communication Services as a particular identity. You need to create access tokens if you want your users to join a call or chat thread within your application.
20
20
21
-
In this quickstart, you'll learn how to use the Azure Communication Services SDKs to create identities and manage your access tokens. For production use cases, we recommend that you generate access tokens on a [server-side service](../../concepts/client-and-server-architecture.md).
21
+
This article describes how to use the Azure Communication Services SDKs to create identities and manage your access tokens. For production use cases, we recommend that you generate access tokens on a server-side service as described in [Mobile architecture design](../../concepts/client-and-server-architecture.md).
The user ID is intended to act as a primary key for logs and metrics that are collected through Azure Monitor. To view all of a user's calls, for example, you can set up your authentication in a way that maps a specific Azure Communication Services identity (or identities) to a single user.
53
+
The user ID acts as a primary key for logs and metrics collected through Azure Monitor. To view all of a user's calls, for example, you can set up your authentication to map a specific Azure Communication Services identity (or identities) to a single user.
54
54
55
-
Learn more about [authentication concepts](../../concepts/authentication.md), call diagnostics through [log analytics](../../concepts/analytics/log-analytics.md), and [metrics](../../concepts/metrics.md) that are available to you.
-[Call diagnostics through log analytics](../../concepts/analytics/log-analytics.md)
58
+
-[Metrics](../../concepts/metrics.md).
56
59
57
60
## Clean up resources
58
61
59
-
To clean up and remove a Communication Services subscription, delete the resource or resource group. Deleting a resource group also deletes any other resources that are associated with it. For more information, see the "Clean up resources" section of [Create and manage Communication Services resources](../create-communication-resource.md#clean-up-resources).
62
+
To clean up and remove a Communication Services subscription, delete the resource or resource group. Deleting a resource group also deletes any other resources associated with it. For more information, see [Create and manage Communication Services resources > Clean up resources](../create-communication-resource.md#clean-up-resources).
60
63
61
-
::: zone pivot="platform-nocode"
62
-
To clean up your logic app workflow and related resources, review [how to clean up Azure Logic Apps resources](../../../logic-apps/quickstart-create-example-consumption-workflow.md#clean-up-resources).
63
-
::: zone-end
64
-
65
-
::: zone pivot="platform-azportal,programming-language-java,programming-language-python,programming-language-javascript,programming-language-csharp,platform-azcli"
64
+
To clean up your logic app workflow and related resources, see [Create an example Consumption logic app workflow using the Azure portal > Clean up resources](../../../logic-apps/quickstart-create-example-consumption-workflow.md#clean-up-resources).
66
65
67
66
## Next steps
68
67
69
-
In this quickstart, you learned how to:
68
+
This article described how to create a user and delete a user. It also describes how to issue an access token to a user and remove a user access token using the Azure Communication Services Identity connector. For more information, see [Azure Communication Services Identity Connector](/connectors/acsidentity/).
70
69
71
-
> [!div class="checklist"]
72
-
> * Issue access tokens
73
-
> * Manage identities
70
+
To see how tokens are use by other connectors, check out [how to send a chat message](../chat/logic-app.md) from Power Automate using Azure Communication Services.
74
71
75
-
> [!div class="nextstepaction"]
76
-
> [Add voice calling to your app](../voice-video-calling/getting-started-with-calling.md)
72
+
To learn more about how to send an email using the Azure Communication Services Email connector check [Send email message in Power Automate with Azure Communication Services](../email/logic-app.md).
77
73
78
-
You might also want to:
74
+
## Related articles
79
75
80
76
-[Learn about authentication](../../concepts/authentication.md)
81
77
-[Add chat to your app](../chat/get-started.md)
82
78
-[Learn about client and server architecture](../../concepts/client-and-server-architecture.md)
83
79
-[Deploy trusted authentication service hero sample](../../samples/trusted-auth-sample.md)
84
-
85
-
::: zone-end
86
-
87
-
::: zone pivot="platform-nocode"
88
-
## Next steps
89
-
90
-
In this quickstart, you learned how to create a user, delete a user, issue a user an access token and remove user access token using the Azure Communication Services Identity connector. To learn more check the [Azure Communication Services Identity Connector](/connectors/acsidentity/) documentation.
91
-
92
-
To see how tokens are use by other connectors, check out [how to send a chat message](../chat/logic-app.md) from Power Automate using Azure Communication Services.
93
-
94
-
To learn more about how to send an email using the Azure Communication Services Email connector check [Send email message in Power Automate with Azure Communication Services](../email/logic-app.md).
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/identity/includes/access-tokens/access-token-az-cli.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,22 +18,24 @@ ms.author: dademath
18
18
- An active Communication Services resource and connection string. [Create a Communication Services resource](../../../create-communication-resource.md?#access-your-connection-strings-and-service-endpoints-using-azure-cli).
Add the Azure Communication Services extension for Azure CLI by using the `az extension` command.
24
+
25
+
Add the Azure Communication Services extension for Azure CLI using the `az extension` command.
25
26
26
27
```azurecli-interactive
27
28
az extension add --name communication
28
29
```
29
30
30
31
### Sign in to Azure CLI
31
-
You'll need to [sign in to Azure CLI](/cli/azure/authenticate-azure-cli). You can sign in running the ```az login``` command from the terminal and providing your credentials.
32
+
33
+
You need to [sign in to Azure CLI](/cli/azure/authenticate-azure-cli). You can sign in running the ```az login``` command from the terminal, then provide your credentials.
32
34
33
35
34
36
### (Optional) Use Azure CLI identity operations without passing in a connection string
35
37
36
-
You can configure the `AZURE_COMMUNICATION_CONNECTION_STRING` environment variable to use Azure CLI identity operations without having to use `--connection_string` to pass in the connection string. To configure an environment variable, open a console window and select your operating system from the below tabs. Replace `<yourConnectionString>` with your actual connection string.
38
+
You can configure the `AZURE_COMMUNICATION_CONNECTION_STRING` environment variable to use Azure CLI identity operations without having to use `--connection_string` to pass in the connection string. To configure an environment variable, open a console window and select your operating system from the following tabs. Replace `<yourConnectionString>` with your actual connection string.
37
39
38
40
#### [Windows](#tab/windows)
39
41
@@ -43,7 +45,7 @@ Open a console window and enter the following command:
After you add the environment variable, you may need to restart any running programs that will need to read the environment variable, including the console window. For example, if you're using Visual Studio as your editor, restart Visual Studio before running the example.
48
+
After you add the environment variable, you might need to restart any running programs that need to read the environment variable, including the console window. For example, if you're using Visual Studio as your editor, restart Visual Studio before running the example.
47
49
48
50
#### [macOS](#tab/unix)
49
51
@@ -53,7 +55,7 @@ Edit your **`.zshrc`**, and add the environment variable:
After you add the environment variable, run `source ~/.zshrc` from your console window to make the changes effective. If you created the environment variable with your IDE open, you may need to close and reopen the editor, IDE, or shell in order to access the variable.
58
+
After you add the environment variable, run `source ~/.zshrc` from your console window to make the changes effective. If you created the environment variable with your IDE open, you might need to close and reopen the editor, IDE, or shell in order to access the variable.
57
59
58
60
#### [Linux](#tab/linux)
59
61
@@ -63,7 +65,7 @@ Edit your **`.bash_profile`**, and add the environment variable:
After you add the environment variable, run `source ~/.bash_profile` from your console window to make the changes effective. If you created the environment variable with your IDE open, you may need to close and reopen the editor, IDE, or shell in order to access the variable.
68
+
After you add the environment variable, run `source ~/.bash_profile` from your console window to make the changes effective. If you created the environment variable with your IDE open, you might need to close and reopen the editor, IDE, or shell in order to access the variable.
67
69
68
70
---
69
71
@@ -79,7 +81,7 @@ Open a console window and enter the following command:
After you add the environment variable, you may need to restart any running programs that will need to read the environment variable, including the console window. For example, if you're using Visual Studio as your editor, restart Visual Studio before running the example.
84
+
After you add the environment variable, you might need to restart any running programs that need to read the environment variable, including the console window. For example, if you're using Visual Studio as your editor, restart Visual Studio before running the example.
83
85
84
86
#### [macOS](#tab/unix)
85
87
@@ -89,7 +91,7 @@ Edit your **`.zshrc`**, and add the environment variable:
After you add the environment variable, run `source ~/.zshrc` from your console window to make the changes effective. If you created the environment variable with your IDE open, you may need to close and reopen the editor, IDE, or shell in order to access the variable.
94
+
After you add the environment variable, run `source ~/.zshrc` from your console window to make the changes effective. If you created the environment variable with your IDE open, you might need to close and reopen the editor, IDE, or shell in order to access the variable.
93
95
94
96
#### [Linux](#tab/linux)
95
97
@@ -99,7 +101,7 @@ Edit your **`.bash_profile`**, and add the environment variable:
After you add the environment variable, run `source ~/.bash_profile` from your console window to make the changes effective. If you created the environment variable with your IDE open, you may need to close and reopen the editor, IDE, or shell in order to access the variable.
104
+
After you add the environment variable, run `source ~/.bash_profile` from your console window to make the changes effective. If you created the environment variable with your IDE open, you might need to close and reopen the editor, IDE, or shell in order to access the variable.
103
105
104
106
---
105
107
@@ -159,7 +161,7 @@ Access tokens are short-lived credentials that need to be reissued. Not doing so
### Exchange a Microsoft Entra access token of the Teams User for a Communication Identity access token
164
+
### Exchange a Microsoft Entra access token of the Teams user for a Communication Identity access token
163
165
164
166
Use the `token get-for-teams-user` command to issue an access token for the Teams user that can be used with the Azure Communication Services SDKs.
165
167
@@ -171,12 +173,12 @@ Make this replacement in the code:
171
173
172
174
- Replace `<yourConnectionString>` with your connection string.
173
175
- Replace `<yourAadUser>` with your Microsoft Entra userId.
174
-
- Replace `<yourAadApplication>` with your Microsoft Entra application Id.
176
+
- Replace `<yourAadApplication>` with your Microsoft Entra application ID.
175
177
- Replace `<yourAadToken>` with your Microsoft Entra access token.
176
178
177
179
### Revoke access tokens
178
180
179
-
You might occasionally need to explicitly revoke an access token. For example, you would do so when application users change the password they use to authenticate to your service. The `token revoke` command invalidates all active access tokens that were issued to the identity.
181
+
You might need to explicitly revoke an access token. For example, you would do so when application users change the password they use to authenticate to your service. The `token revoke` command invalidates all active access tokens that were issued to the identity.
180
182
181
183
```azurecli-interactive
182
184
az communication identity token revoke --user "<userId>" --connection-string "<yourConnectionString>"
@@ -189,7 +191,7 @@ Make this replacement in the code:
189
191
190
192
### Delete an identity
191
193
192
-
When you delete an identity, you revoke all active access tokens and prevent the further issuance of access tokens for the identity. Doing so also removes all persisted content that's associated with the identity.
194
+
When you delete an identity, you revoke all active access tokens and prevent the further issuance of access tokens for the identity. Doing so also removes all persisted content associated with the identity.
193
195
194
196
```azurecli-interactive
195
197
az communication identity user delete --user "<userId>" --connection-string "<yourConnectionString>"
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/identity/includes/access-tokens/access-token-az-portal.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,16 +15,20 @@ ms.custom: mode-other
15
15
16
16
## Prerequisites
17
17
18
-
- An [Azure Communication Services resource](../../../create-communication-resource.md)
18
+
- An [Azure Communication Services resource](../../../create-communication-resource.md).
19
19
20
20
## Create the access tokens
21
21
22
-
In the [Azure portal](https://portal.azure.com), navigate to the **Identities & User Access Tokens** blade within your Communication Services resource.
22
+
1.In the [Azure portal](https://portal.azure.com), navigate to the **Identities & User Access Tokens** blade in your Communication Services resource.
23
23
24
-
Choose the scope of the access tokens. You can select none, one, or multiple. Click **Generate**.
24
+
2.Choose the scope of the access tokens. You can choose none, one, or multiple services.
25
25
26
-

26
+
3.Select **Generate**.
27
27
28
-
You'll see an identity and corresponding user access token generated. You can copy these strings and use them in the [sample apps](../../../../samples/overview.md) and other testing scenarios.
28
+
:::image type="content" source="../../media/quick-create-identity-choose-scopes.png" alt-text="Screenshot that shows the scopes of the identity and access tokens where you select Generate." lightbox="../../media/quick-create-identity-choose-scopes.png":::
29
29
30
-

30
+
The system generates an identity and corresponding user access token.
31
+
32
+
4. Copy these strings and use them in the [sample apps](../../../../samples/overview.md) and other testing scenarios.
33
+
34
+
:::image type="content" source="../../media/quick-create-identity-generated.png" alt-text="Screenshot that shows the identity and access tokens with expiration date" lightbox="../../media/quick-create-identity-generated.png":::
0 commit comments