OfficeDev / Microsoft-Teams-Samples

Welcome to the Microsoft Teams samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Microsoft Teams App!
MIT License
998 stars 770 forks source link

OAuth sign-in ok with ngrok, not ok when deployed to webapp #1108

Closed ferokko closed 9 months ago

ferokko commented 9 months ago

Hi,

I followed the tutorial to add auth within the teams bot: (https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-teams-authentication)

I am experiencing a strange behavior in that, after all the proper settings, the example runs well with ngrok. Once I deploy the solution to the webapp and fill the env variables accordingly I got this error

Sorry, it looks like something went wrong. Exception Caught: Operation returned an invalid status code ‘NotFound’ at Microsoft.Bot.Connector.OAuthClient.GetSignInResourceWithHttpMessagesAsync....

I debugged locally with ngrok and remotely the webapp and I see the following:

I am facing it both for single and multitenant and I am using regional bot (europe)

As anyone experienced that?

Thanks in advance

microsoft-github-policy-service[bot] commented 9 months ago

Hi @ferokko! 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

ChetanSharma-msft commented 9 months ago

Hello @ferokko - Thanks for raising your query. We have deployed the C# sample already.

Could you please try to download the deployed zip and test it once and let us know if you are still facing the issue? https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-teams-authentication/csharp#try-it-yourself---experience-the-app-in-your-microsoft-teams-client

https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/bot-teams-authentication/csharp/demo-manifest/bot-teams-authentication.zip

microsoft-github-policy-service[bot] commented 9 months ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.