8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b19483 commit 03f9d10Copy full SHA for 03f9d10
libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/oauth_prompt.py
@@ -477,19 +477,6 @@ async def _recognize_token(
477
" ConnectionName in the TokenExchangeInvokeRequest",
478
)
479
480
- elif not getattr(context.adapter, "exchange_token"):
481
- # Token Exchange not supported in the adapter.
482
- await context.send_activity(
483
- self._get_token_exchange_invoke_response(
484
- int(HTTPStatus.BAD_GATEWAY),
485
- "The bot's BotAdapter does not support token exchange operations."
486
- " Ensure the bot's Adapter supports the ExtendedUserTokenProvider interface.",
487
- )
488
489
-
490
- raise AttributeError(
491
- "OAuthPrompt._recognize_token(): not supported by the current adapter."
492
493
else:
494
# No errors. Proceed with token exchange.
495
token_exchange_response = None
0 commit comments