Skip to content

Commit 053a2bc

Browse files
AikoBBAigerim BeishenbekovaAigerim Beishenbekova
authored
The release date of 1.1.0b1 is changed in CHANGELOG.md (Azure#21641)
* the release date of 1.1.0b1 is changed in CHANGELOG.md * checking skipping get_token_for_teams_user env in samples is added Co-authored-by: Aigerim Beishenbekova <aigerimb@Aigerims-MacBook-Pro.local> Co-authored-by: Aigerim Beishenbekova <aigerimb@DESKTOP-PQMEAO3.corp.microsoft.com>
1 parent 4b42415 commit 053a2bc

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

sdk/communication/azure-communication-identity/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.1.0b1 (Unreleased)
3+
## 1.1.0b1 (2021-11-09)
44
### Features Added
55
- Added support for Microsoft 365 Teams identities
66
- `CommunicationIdentityClient` added a new method `get_token_for_teams_user` that provides the ability to exchange an AAD access token of a Teams user for a Communication Identity access token

sdk/communication/azure-communication-identity/samples/identity_samples.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ def delete_user(self):
121121
print(user.properties.get('id') + " deleted")
122122

123123
def get_token_for_teams_user(self):
124+
if (os.getenv("SKIP_INT_IDENTITY_EXCHANGE_TOKEN_TEST") == "true"):
125+
print("Skipping the Get Access Token for Teams User sample")
126+
return
124127
from azure.communication.identity import CommunicationIdentityClient
125128

126129
if self.client_id is not None and self.client_secret is not None and self.tenant_id is not None:

sdk/communication/azure-communication-identity/samples/identity_samples_async.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ async def delete_user(self):
126126
print(user.properties.get('id') + " deleted")
127127

128128
async def get_token_for_teams_user(self):
129+
if (os.getenv("SKIP_INT_IDENTITY_EXCHANGE_TOKEN_TEST") == "true"):
130+
print("Skipping the Get Access Token for Teams User sample")
131+
return
129132
from azure.communication.identity.aio import CommunicationIdentityClient
130133
if self.client_id is not None and self.client_secret is not None and self.tenant_id is not None:
131134
from azure.identity.aio import DefaultAzureCredential

0 commit comments

Comments
 (0)