@@ -829,7 +829,7 @@ async def get_user_token(
829
829
"get_user_token() requires a connection_name but none was provided."
830
830
)
831
831
832
- client = self ._create_token_api_client (context , oauth_app_credentials )
832
+ client = await self ._create_token_api_client (context , oauth_app_credentials )
833
833
834
834
result = client .user_token .get_token (
835
835
context .activity .from_property .id ,
@@ -869,7 +869,7 @@ async def sign_out_user(
869
869
if not user_id :
870
870
user_id = context .activity .from_property .id
871
871
872
- client = self ._create_token_api_client (context , oauth_app_credentials )
872
+ client = await self ._create_token_api_client (context , oauth_app_credentials )
873
873
client .user_token .sign_out (
874
874
user_id , connection_name , context .activity .channel_id
875
875
)
@@ -895,7 +895,7 @@ async def get_oauth_sign_in_link(
895
895
:return: If the task completes successfully, the result contains the raw sign-in link
896
896
"""
897
897
898
- client = self ._create_token_api_client (context , oauth_app_credentials )
898
+ client = await self ._create_token_api_client (context , oauth_app_credentials )
899
899
900
900
conversation = TurnContext .get_conversation_reference (context .activity )
901
901
state = TokenExchangeState (
@@ -943,7 +943,7 @@ async def get_token_status(
943
943
"BotFrameworkAdapter.get_token_status(): missing from_property or from_property.id"
944
944
)
945
945
946
- client = self ._create_token_api_client (context , oauth_app_credentials )
946
+ client = await self ._create_token_api_client (context , oauth_app_credentials )
947
947
948
948
user_id = user_id or context .activity .from_property .id
949
949
return client .user_token .get_token_status (
@@ -981,7 +981,7 @@ async def get_aad_tokens(
981
981
"BotFrameworkAdapter.get_aad_tokens(): missing from_property or from_property.id"
982
982
)
983
983
984
- client = self ._create_token_api_client (context , oauth_app_credentials )
984
+ client = await self ._create_token_api_client (context , oauth_app_credentials )
985
985
return client .user_token .get_aad_tokens (
986
986
context .activity .from_property .id ,
987
987
connection_name ,
0 commit comments