File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
libraries/botbuilder-dialogs/botbuilder/dialogs/prompts Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -477,19 +477,6 @@ async def _recognize_token(
477
477
" ConnectionName in the TokenExchangeInvokeRequest" ,
478
478
)
479
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
480
else :
494
481
# No errors. Proceed with token exchange.
495
482
token_exchange_response = None
You can’t perform that action at this time.
0 commit comments