Hi @Kumblerahul,
Welcome to Microsoft Q&A, and thank you for reaching out.
Please note that as a Microsoft Q&A moderator, I don’t have access to your specific configuration, and my testing environment is limited. I can only assist using available documentation and resources, but I’ll do my best to help.
Regarding the OAuth flow: From my research based on Microsoft’s official guidance on Team bot Authentication, currently, there isn’t an alternative approach to control OAuth flow.
As far as I know, in Teams native built-in, OAuth/SSO is handled through Invoke activities (not Event activities). Your bot should forward the invoke to the appropriate dialog or handler. The Teams client attempts token exchange first and only fall back to a sign-in card if necessary. This is the model the Agents SDK follows, the SDK manages card emission and token exchange rather than requiring you to control the flow manually.
About the error when running the same Python script on a different bot, could you clarify the purpose of the second bot compared to the first? Depending on the use case, the script might behave differently due to functional differences.
Additionally, as I checked, based on this StackOverflow thread, ensure the following domains are listed in the validDomains section of your app manifest:
-
token.botframework.com -
login.microsoftonline.com
This often resolves the “app does not exist or has been uninstalled” error when clicking the sign-in button.
This link will take you to StackOverflow, which is outside Microsoft’s domain. Please note that Microsoft is not responsible for the accuracy, security, or advertising on external sites.
At this point, I don’t have further insights beyond what’s documented. I’ve researched, but due to environment limitations and lack of official documentation, I couldn’t uncover new findings. Therefore, I recommend checking GitHub discussions or Microsoft Tech Community forums, where experienced developers share practical solutions and troubleshooting tips. These platforms often provide valuable perspectives that can help resolve such issues.
Thank you for your understanding.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.