Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find Connection Setting with name 'Myconnection' - SSO issue in Microsoft Teams bot #4773

Open
arundhathiMenon opened this issue Oct 21, 2024 · 0 comments
Labels
needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@arundhathiMenon
Copy link

Description:
I am developing a Microsoft Teams bot that integrates Single Sign-On (SSO) using Azure Active Directory OAuth. Despite configuring the OAuth connection as per the documentation, I keep encountering the following error when testing my bot on Teams: Could not find Connection Setting with name 'Myconnection'

I have followed the documentation for setting up OAuth in Azure Active Directory and Azure Bot Service, but it seems like the bot cannot locate the connection.

Expected Behavior:
The bot should initiate the OAuth login and obtain the access token for the user when using Microsoft Teams.

Configuration Details:
Bot Framework SDK: botbuilder
Microsoft Teams
OAuth Connection: Azure Active Directory v2
Authentication Endpoint: https://token.botframework.com/.auth/web/redirect
I am not any environment for tunneling(Is that an issue?)

Bot Code (OAuth Prompt Setup):
this.dialogs.add(
new OAuthPrompt("OAuthPrompt", {
connectionName: process.env.CONNECTION_NAME || "Myconnection",
text: "Please sign in",
title: "Sign in",
timeout: 300000,
})
);

Additional Information:
I have also tried restarting the bot, re-adding the OAuth connection in Azure, and re-registering the app in AAD.

@arundhathiMenon arundhathiMenon added feature-request A request for new functionality or an enhancement to an existing one. needs-triage The issue has just been created and it has not been reviewed by the team. labels Oct 21, 2024
@dmvtech dmvtech removed the feature-request A request for new functionality or an enhancement to an existing one. label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

2 participants