Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ async def _send_oauth_card(
):
if context.activity.channel_id == Channels.emulator:
card_action_type = ActionTypes.open_url
else:
elif not OAuthPrompt._channel_requires_sign_in_link(
context.activity.channel_id
):
link = None

json_token_ex_resource = (
Expand Down Expand Up @@ -617,6 +619,13 @@ def _channel_suppports_oauth_card(channel_id: str) -> bool:

return True

@staticmethod
def _channel_requires_sign_in_link(channel_id: str) -> bool:
if channel_id in [Channels.ms_teams]:
return True

return False

@staticmethod
def _is_token_exchange_request_invoke(context: TurnContext) -> bool:
activity = context.activity
Expand Down