8000 Teams + SSO: Update OAuthcard channel support and return 412 instead … · snifhex/botbuilder-python@e5faf32 · GitHub
[go: up one dir, main page]

Skip to content

Commit e5faf32

Browse files
committed
Teams + SSO: Update OAuthcard channel support and return 412 instead of 409 on sso fail
1 parent 071e7fd commit e5faf32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ async def _recognize_token(
546546
if not token_exchange_response or not token_exchange_response.token:
547547
await context.send_activity(
548548
self._get_token_exchange_invoke_response(
549-
int(HTTPStatus.CONFLICT),
549+
int(HTTPStatus.PRECONDITION_FAILED),
550550
"The bot is unable to exchange token. Proceed with regular login.",
551551
)
552552
)
@@ -609,7 +609,6 @@ def _is_teams_verification_invoke(context: TurnContext) -> bool:
609609
@staticmethod
610610
def _channel_suppports_oauth_card(channel_id: str) -> bool:
611611
if channel_id in [
612-
Channels.ms_teams,
613612
Channels.cortana,
614613
Channels.skype,
615614
Channels.skype_for_business,

0 commit comments

Comments
 (0)
0