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
996 stars 769 forks source link

bot-teams-authentication sign-in prompt does not render in Microsoft Teams #1229

Closed emahama closed 5 months ago

emahama commented 6 months ago

I'm trying to repro the bot-teams-authentication sample running on my local machine using ngrok. The sample runs fine using Bot Emulator, but the sign-in dialog does not display in Microsoft Teams.

Emulator

image

Teams

image

I have updated the manifest with my bot id and my valid domain is below.

"permissions": ["identity", "messageTeamMembers"], "validDomains": [ "token.botframework.com", ".use.devtunnels.ms", "online.microsoftlogin.com", ".ngrok-free.app" ], "webApplicationInfo": { "id": "a71ec1da-213b-4282-bc93-732d3cxxxxx", "resource": "api://botid-f2bc1632-be51-4f44-8135-f2212xxxxx" }

Meghana-MSFT commented 6 months ago

@emahama - We see that you are using a different ID in id and resource image

Could you please check once?

emahama commented 6 months ago

I have tried using both the bot id and client id I got after registering the bot in Entra ID. But it did not make any difference. login dialog renders in emulator but not in teams.

Meghana-MSFT commented 6 months ago

We will check this at our end and get back to you.

Aspyryan commented 6 months ago

Same here btw

Meghana-MSFT commented 6 months ago

@emahama - We have tested the sample bot team authentication, which is working fine on both desktop and web. Could you please recheck your configuration once as per the sample https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-teams-authentication/csharp

emahama commented 6 months ago

Okay I will try again .

emahama commented 6 months ago

I followed this link you share and now it works. Thank you

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

Tell us about your experience!

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