- Python 3.7 is no longer supported. Please use Python version 3.8 or later. For more details, please read our page on Azure SDK for Python version support policy.
- Added support for a new communication identifier
MicrosoftTeamsAppIdentifier
.
- Introduction of new scopes for token generation.
CHAT_JOIN
(Access to Chat APIs but without the authorization to create, delete or update chat threads)CHAT_JOIN_LIMITED
(A more limited version ofCHAT_JOIN
that doesn't allow to add or remove participants)VOIP_JOIN
(Access to Calling APIs but without the authorization to start new calls)
- Added a new API version
ApiVersion.V2023_10_01
that is now the default API version.
- The
MicrosoftBotIdentifier
andMicrosoftBotProperties
have been removed.
- Added support for a new communication identifier
MicrosoftBotIdentifier
.
- Fixed the logic of
PhoneNumberIdentifier
to always maintain the original phone number string whether it included the leading + sign or not.
- Added support to customize the Communication Identity access token's validity period:
create_user_and_token
andget_token
methods in both sync and async clients can now accept keyword argumenttoken_expires_in: ~datetime.timedelta
that provides the ability to create a Communication Identity access token with custom expiration.
- Added a new API version
ApiVersion.V2022_10_01
that is now the default API version. - Added the ability specify the API version by an optional
api_version
keyword parameter.
- Exported types
MicrosoftTeamsUserIdentifier
,PhoneNumberIdentifier
,UnknownIdentifier
for non Azure Communication ServicesCommunicationIdentifier
identities. Exported related types:MicrosoftTeamsUserProperties
andPhoneNumberProperties
. - Added
identifier_from_raw_id
and ensured thatCommunicationIdentifier.raw_id
is populated on creation. Together, these can be used to translate between aCommunicationIdentifier
and its underlying canonical raw ID representation. Developers can now use the raw ID as an encoded format for identifiers to store in their databases or as stable keys in general.
- Added support to integrate communication as Teams user with Azure Communication Services:
- Added
get_token_for_teams_user(aad_token, client_id, user_object_id)
method that provides the ability to exchange an Azure AD access token of a Teams user for a Communication Identity access token toCommunicationIdentityClient
.
- Added
- Removed
ApiVersion.V2021_10_31_preview
from API versions. - Added a new API version
ApiVersion.V2022_06_01
that is now the default API version
- Python 2.7 is no longer supported. Please use Python version 3.7 or later. For more details, please read our page on Azure SDK for Python version support policy.
- Added support to integrate communication as Teams user with Azure Communication Services:
CommunicationIdentityClient
added a new methodget_token_for_teams_user
that provides the ability to exchange an Azure AD access token of a Teams user for a Communication Identity access token
- Fixed async client to use async bearer token credential policy instead of sync policy.
- Stable release of
azure-communication-identity
.
- CommunicationIdentityClient's (synchronous and asynchronous)
issue_token
function is now renamed toget_token
. - The CommunicationIdentityClient constructor uses type
TokenCredential
andAsyncTokenCredential
for the credential parameter. - Dropped support for 3.5
- Added CommunicationIdentityClient (originally was part of the azure.communication.administration package).
- Added ability to create a user and issue token for it at the same time.
- CommunicationIdentityClient.revoke_tokens now revoke all the currently issued tokens instead of revoking tokens issued prior to a given time.
- CommunicationIdentityClient.issue_tokens returns an instance of
azure.core.credentials.AccessToken
instead ofCommunicationUserToken
.