Skip to content

[Communication] - Chat - Replaced CommunicationUserCredentialPolicy with BearerTokenCredentialPolicy#15290

Merged
jbeauregardb merged 7 commits intoAzure:masterfrom
jbeauregardb:bearerToken
Dec 3, 2020
Merged

[Communication] - Chat - Replaced CommunicationUserCredentialPolicy with BearerTokenCredentialPolicy#15290
jbeauregardb merged 7 commits intoAzure:masterfrom
jbeauregardb:bearerToken

Conversation

@jbeauregardb
Copy link
Contributor

No description provided.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can probably remove this now

@jbeauregardb jbeauregardb force-pushed the bearerToken branch 7 times, most recently from 00368a0 to 19e3e91 Compare November 19, 2020 19:05
self._client = AzureCommunicationChatService(
self._endpoint,
authentication_policy=CommunicationUserCredentialPolicy(self._credential),
authentication_policy=BearerTokenCredentialPolicy(self._credential, ""),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's check if we need to pass scopes to the constructor. if not we can omit this param.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scopes is not necessary, will remove it now 👍🏻

@jbeauregardb jbeauregardb force-pushed the bearerToken branch 3 times, most recently from db3b4e4 to b81b449 Compare December 2, 2020 17:15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if we add this method into the utils.py in this folder, and make this conversion during the token creation? Would that work? If that is the case you would not need to call this conversion method every time you return, as the token will be created with the int expires_on field

turalf
turalf previously approved these changes Dec 3, 2020
Copy link
Contributor

@turalf turalf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jbeauregardb jbeauregardb merged commit 4ee1d0d into Azure:master Dec 3, 2020
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-python that referenced this pull request Jul 23, 2021
Vipinhas/add min capacity clusters (Azure#15290)

* removing read only property, no longer in use - NOT a breaking change

* add min value for LA cluster capacity reservation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants