Skip to content

Commit a1a39c2

Browse files
Merge pull request Azure#17 from beltr0n/bertong-extract-identity
Update chat to reference new identity package
2 parents 8b41ee8 + 1f07e2b commit a1a39c2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sdk/communication/azure-communication-chat/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ pip install --pre azure-communication-chat
2222

2323
## User Access Tokens
2424

25-
User access tokens enable you to build client applications that directly authenticate to Azure Communication Services. You can generate these tokens with azure.communication.administration module, and then use them to initialize the Communication Services SDKs. Example of using azure.communication.administration:
25+
User access tokens enable you to build client applications that directly authenticate to Azure Communication Services. You can generate these tokens with azure.communication.identity module, and then use them to initialize the Communication Services SDKs. Example of using azure.communication.identity:
2626

2727
```bash
28-
pip install --pre azure-communication-administration
28+
pip install --pre azure-communication-identity
2929
```
3030

3131
```python
32-
from azure.communication.administration import CommunicationIdentityClient
32+
from azure.communication.identity import CommunicationIdentityClient
3333
identity_client = CommunicationIdentityClient.from_connection_string("<connection string of your Communication service>")
3434
user = identity_client.create_user()
3535
tokenresponse = identity_client.issue_token(user, scopes=["chat"])
@@ -374,7 +374,7 @@ to create a resource, then set some Environment Variables
374374
set AZURE_COMMUNICATION_SERVICE_ENDPOINT="https://<RESOURCE_NAME>.communcationservices.azure.com"
375375
set AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING="<connection string of your Communication service>"
376376

377-
pip install azure-communication-administration
377+
pip install azure-communication-identity
378378

379379
python samples\chat_client_sample.py
380380
python samples\chat_client_sample_async.py
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-e ../../../tools/azure-devtools
22
-e ../../../tools/azure-sdk-tools
33
../azure-communication-nspkg
4-
-e ../azure-communication-administration
4+
-e ../azure-communication-identity
55
aiohttp>=3.0; python_version >= '3.5'

0 commit comments

Comments
 (0)