File tree 1 file changed +11
-2
lines changed
libraries/botbuilder-dialogs/botbuilder/dialogs/prompts 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -311,9 +311,18 @@ async def _send_oauth_card(
311
311
link = sign_in_resource .sign_in_link
312
312
bot_identity : ClaimsIdentity = context .turn_state .get ("BotIdentity" )
313
313
314
+ # use the SignInLink when
315
+ # in speech channel or
316
+ # bot is a skill or
317
+ # an extra OAuthAppCredentials is being passed in
314
318
if (
315
- bot_identity and SkillValidation .is_skill_claim (bot_identity .claims )
316
- ) or not context .activity .service_url .startswith ("http" ):
319
+ (
320
+ bot_identity
321
+ and SkillValidation .is_skill_claim (bot_identity .claims )
322
+ )
323
+ or not context .activity .service_url .startswith ("http" )
324
+ or self ._settings .oath_app_credentials
325
+ ):
317
326
if context .activity .channel_id == Channels .emulator :
318
327
card_action_type = ActionTypes .open_url
319
328
else :
You can’t perform that action at this time.
0 commit comments