8000 Added missing awaits to _create_token_api_client · RobStand/botbuilder-python@02c5278 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02c5278

Browse files
committed
Added missing awaits to _create_token_api_client
1 parent ab716df commit 02c5278

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ async def get_user_token(
829829
"get_user_token() requires a connection_name but none was provided."
830830
)
831831

832-
client = self._create_token_api_client(context, oauth_app_credentials)
832+
client = await self._create_token_api_client(context, oauth_app_credentials)
833833

834834
result = client.user_token.get_token(
835835
context.activity.from_property.id,
@@ -869,7 +869,7 @@ async def sign_out_user(
869869
if not user_id:
870870
user_id = context.activity.from_property.id
871871

872-
client = self._create_token_api_client(context, oauth_app_credentials)
872+
client = await self._create_token_api_client(context, oauth_app_credentials)
873873
client.user_token.sign_out(
874874
user_id, connection_name, context.activity.channel_id
875875
)
@@ -895,7 +895,7 @@ async def get_oauth_sign_in_link(
895895
:return: If the task completes successfully, the result contains the raw sign-in link
896896
"""
897897

898-
client = self._create_token_api_client(context, oauth_app_credentials)
898+
client = await self._create_token_api_client(context, oauth_app_credentials)
899899

900900
conversation = TurnContext.get_conversation_reference(context.activity)
901901
state = TokenExchangeState(
@@ -943,7 +943,7 @@ async def get_token_status(
943943
"BotFrameworkAdapter.get_token_status(): missing from_property or from_property.id"
944944
)
945945

946-
client = self._create_token_api_client(context, oauth_app_credentials)
946+
client = await self._create_token_api_client(context, oauth_app_credentials)
947947

948948
user_id = user_id or context.activity.from_property.id
949949
return client.user_token.get_token_status(
@@ -981,7 +981,7 @@ async def get_aad_tokens(
981981
"BotFrameworkAdapter.get_aad_tokens(): missing from_property or from_property.id"
982982
)
983983

984-
client = self._create_token_api_client(context, oauth_app_credentials)
984+
client = await self._create_token_api_client(context, oauth_app_credentials)
985985
return client.user_token.get_aad_tokens(
986986
context.activity.from_property.id,
987987
connection_name,

0 commit comments

Comments
 (0)
0