Skip to content

Commit

Permalink
Removed invalid exchange_token check (#2121)
Browse files Browse the repository at this point in the history
Co-authored-by: Tracy Boehrer <[email protected]>
  • Loading branch information
tracyboehrer and Tracy Boehrer authored Jun 21, 2024
1 parent 4b19483 commit 03f9d10
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,19 +477,6 @@ async def _recognize_token(
" ConnectionName in the TokenExchangeInvokeRequest",
)
)
elif not getattr(context.adapter, "exchange_token"):
# Token Exchange not supported in the adapter.
await context.send_activity(
self._get_token_exchange_invoke_response(
int(HTTPStatus.BAD_GATEWAY),
"The bot's BotAdapter does not support token exchange operations."
" Ensure the bot's Adapter supports the ExtendedUserTokenProvider interface.",
)
)

raise AttributeError(
"OAuthPrompt._recognize_token(): not supported by the current adapter."
)
else:
# No errors. Proceed with token exchange.
token_exchange_response = None
Expand Down

0 comments on commit 03f9d10

Please sign in to comment.