8000 Removed invalid exchange_token check (#2121) · AogiWorld/botbuilder-python@03f9d10 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03f9d10

Browse files
tracyboehrerTracy Boehrer
and
Tracy Boehrer
authored
Removed invalid exchange_token check (microsoft#2121)
Co-authored-by: Tracy Boehrer <trboehre@microsoft.com>
1 parent 4b19483 commit 03f9d10

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

libraries/botbuilder-dialogs/botbuilder/dialogs/prompts/oauth_prompt.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -477,19 +477,6 @@ async def _recognize_token(
477477
" ConnectionName in the TokenExchangeInvokeRequest",
478478
)
479479
)
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-
)
493480
else:
494481
# No errors. Proceed with token exchange.
495482
token_exchange_response = None

0 commit comments

Comments
 (0)
0