Skip to content

Use TM in SSO Flows#478

Draft
rido-min wants to merge 4 commits into
mainfrom
core/sso-in-channels
Draft

Use TM in SSO Flows#478
rido-min wants to merge 4 commits into
mainfrom
core/sso-in-channels

Conversation

@rido-min
Copy link
Copy Markdown
Member

@rido-min rido-min commented May 5, 2026

This pull request enhances the SsoBot sample to provide a more personalized and user-friendly experience, especially in group chat scenarios. The main focus is on improving message formatting, adding suggested actions, and ensuring that responses are correctly targeted to individual users in group conversations.

Personalization and Targeting in Messages:

  • Updated all user-facing messages (sign-in, sign-out, status, Graph API responses, errors) to include the user's name and set the Recipient and IsTargeted properties based on whether the chat is a group conversation, ensuring privacy and clarity in group contexts. [1] [2] [3] [4]

User Experience Improvements:

  • Added suggested actions (buttons) to key bot responses such as sign-in completion and help messages, making it easier for users to interact with the bot by clicking instead of typing commands. [1] [2]

OAuth Flow and Schema Adjustments:

  • Modified the OAuth flow to correctly set the recipient and targeting flag based on the conversation type when sending sign-in failure messages.
  • Improved XML documentation for the ConversationType property in TeamsConversation to clarify its reference.

rido-min and others added 4 commits May 4, 2026 12:49
Enhanced messages with user names for sign-in, sign-out, status, profile, and calendar commands. Added suggested action buttons for common commands in sign-in and help responses. Updated OAuthFlow recipient logic for conversation type and clarified ConversationType XML docs.
Refactor bot responses to use MessageActivity with Markdown formatting, explicitly setting Recipient and IsTargeted properties. This ensures correct message delivery and formatting in both 1:1 and group chat contexts. Update OAuthFlow to set recipient for OAuth cards based on conversation type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant