Closed SURYASARAVANAN closed 1 year ago
Hi SURYASARAVANAN! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.
Best regards, Teams Platform
Can you please confirm if you have added the OAuth connection in your bot. Please refer this section - https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/authentication/auth-aad-sso-bots#update-the-azure-portal-with-the-oauth-connection.
The OAuth connection name needs to be added to .env file as mentioned in the document https://learn.microsoft.com/en-us/training/modules/msteams-sso/7-exercise-bots-sso
Yes i done that already but still i get that error.
One more thing I'm using teams toolkit with vs code. when run the bot locally, it register an app in AAD under my login user id tenant also it register bot in developer teams portal. if i try to create azure bot service for teams channel registeration using existing AAD app create by teams tool kit it throws error like already app registered with another bot.
so then first i try to create azure bot with create new app and multi tenant after it deploy i set the bot app id , client secret in teams bot project .fx/config.local.json in "bot" config and try to debug the bot locally it throws BT.ProvisionError Developer Portal Registeration failed. help me how to add sso for notification bot using teams tool kit
@SURYASARAVANAN - We will set it up and check it and get back to you.
@Meghana-MSFT For your reference, i have given the OAuth prompt dialog request for bot framework.
DialogContextError: Could not find Connection Setting with name teamsAuth
[2022-11-08T12:43:59.188Z] at D:\NotificationBot\NotificationBotOriginal\BotTest\bot\node_modules\botbuilder-dialogs\lib\dialogContext.js:40:19
[2022-11-08T12:43:59.192Z] at Generator.throw (
@Meghana-MSFT,did you find the solution?
@SURYASARAVANAN - We are checking this internally. We will get back to you. Thank you.
Adding this reference - https://learn.microsoft.com/en-us/microsoftteams/platform/toolkit/add-single-sign-on
@Meghana-MSFT I tried this teamsBotPrompt using teamsfxsdk which you mentioned in above document. i'm using javascript project scaffold for notification bot in that try to add sso with teamsfx cli "teamsfx add sso".In result generated sample is for tab application in react.js, please check this also and updated the document.bot-sso not getting create by teamsfx version 1.2.1 bot-sso sample repo
Apologies for the delay in response. We are checking internally and update you back.
@SURYASARAVANAN
Unfortunately, I am not sure how to resolve the issue. To get the best support, please file an issue in the TeamsFx repo so our team can triage and help.
I have found an alternate way using TeamsBotSSOPrompt function by registering AAD App for bot auth. https://github.com/OfficeDev/TeamsFx-Samples/tree/dev/bot-sso, thanks for your time.
Hi SURYASARAVANAN! This issue is closed in our system. We would like your feedback on your experience with our support team and Platform.
Best regards, Teams Platform
I created a bot using teams tool kit in notification configuration with functions. now i add the sso for the bot to accquire teams current user access token refered this doc.following this registered bot app registered in ad and client secret created then i create azure bot for sso provider from that i have update the teams app manifest in vs code for webapplicationinfo and domains but now i'm getting could not find connection setting "connectionname" error in OAuthPrompt with beginDialog. Any one faced this issue Also refered