Teams + SSO: Update OAuthcard channel support and return 412 instead of 409 on sso fail
@@ -546,7 +546,7 @@ class OAuthPrompt(Dialog):
if not token_exchange_response or not token_exchange_response.token:
await context.send_activity(
self._get_token_exchange_invoke_response(
- int(HTTPStatus.CONFLICT),
+ int(HTTPStatus.PRECONDITION_FAILED),
"The bot is unable to exchange token. Proceed with regular login.",
)
)
@@ -609,7 +609,6 @@ class OAuthPrompt(Dialog):
@staticmethod
def _channel_suppports_oauth_card(channel_id: str) -> bool:
if channel_id in [
- Channels.ms_teams,
Channels.cortana,
Channels.skype,
Channels.skype_for_business,
