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: sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatAsyncClientTest.java
Copy file name to clipboardExpand all lines: sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatThreadAsyncClientTest.java
Copy file name to clipboardExpand all lines: sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatThreadClientTest.java
- A deployed Communication Services resource. You can use the [Azure Portal](https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp) or the [Azure PowerShell](https://docs.microsoft.com/powershell/module/az.communication/new-azcommunicationservice) to set it up.
16
+
- A Communication Services resource. You can use the [Azure Portal](https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp) or the [Azure PowerShell](https://docs.microsoft.com/powershell/module/az.communication/new-azcommunicationservice) to set it up.
17
17
18
18
### Include the package
19
19
@@ -26,7 +26,7 @@ The identity package is used for managing users and tokens for Azure Communicati
26
26
</dependency>
27
27
```
28
28
29
-
## Key concepts
29
+
## Authenticate the client
30
30
31
31
There are two forms of authentication to use the Identity SDK:
32
32
@@ -82,6 +82,9 @@ CommunicationIdentityClient communicationIdentityClient = new CommunicationIdent
82
82
.buildClient();
83
83
```
84
84
85
+
## Key concepts
86
+
`CommunicationIdentityClient` and `CommunicationIdentityAsyncClient` provide the functionalities to manage users and user tokens.
87
+
85
88
## Examples
86
89
87
90
### Creating a new user
@@ -113,7 +116,7 @@ also takes in a list of `CommunicationIdentityTokenScope`. Scope options include
This project welcomes contributions and suggestions. Most contributions require you to agree to a [Contributor License Agreement (CLA)][cla] declaring that you have the right to, and actually do, grant us the rights to use your contribution.
147
+
## Troubleshooting
147
148
148
-
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
149
+
All user token service operations will throw an exception on failure.
CommunicationUserIdentifier user = communicationIdentityClient.createUser();
154
+
} catch (RuntimeException ex) {
155
+
System.out.println(ex.getMessage());
156
+
}
157
+
```
149
158
150
-
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments.
159
+
## Next steps
151
160
161
+
Check out other client libraries for Azure communication service
152
162
153
-
## Troubleshooting
163
+
## Contributing
154
164
155
-
In progress.
165
+
This project welcomes contributions and suggestions. Most contributions require you to agree to a [Contributor License Agreement (CLA)][cla] declaring that you have the right to, and actually do, grant us the rights to use your contribution.
156
166
157
-
## Next steps
167
+
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
158
168
159
-
Check out other client libraries for Azure communication service
169
+
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments.
<name>Microsoft Azure client identity library for communication</name>
21
+
<name>Microsoft Azure identity client library for communication</name>
22
22
<description>
23
23
This package contains APIs for application identity in Microsoft Azure Communication Services.
24
24
For this release, see notes - https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/communication/azure-communication-identity/README.md and https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/communication/azure-communication-identity/CHANGELOG.md.
Copy file name to clipboardExpand all lines: sdk/communication/azure-communication-identity/src/main/java/com/azure/communication/identity/CommunicationIdentityAsyncClient.java
+41-44Lines changed: 41 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@
22
22
23
23
importjava.util.List;
24
24
importjava.util.Objects;
25
+
importjava.util.stream.Collectors;
26
+
importjava.util.stream.StreamSupport;
25
27
26
28
importreactor.core.publisher.Mono;
27
29
@@ -52,10 +54,7 @@ public Mono<CommunicationUserIdentifier> createUser() {
0 commit comments