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
1.02k stars 777 forks source link

Bot Teams Authentication sample not working as expected #1091

Open PratikGarai opened 10 months ago

PratikGarai commented 10 months ago

Sample Used : samples/bot-teams-authentication/python

I have run this sample and this doesn't seem to work properly.

Issue :

  1. After Sign In prompt is shown, and I complete the login process on the popup, I get this message. image

After this, all further messages (except for logout) do not send back any response, nor do i get the expected "Do you want to see your token?" screen.

  1. After login error of (1) occurs, only Logout functionality works. But once logout completes, attempts to log in creates leads to issue described (1). image

These are the settings used on Azure Bot Service OAuth connection I am using:

image

Meghana-MSFT commented 10 months ago

Thank you for reporting this, we will check this and get back to you.

Meghana-MSFT commented 10 months ago

We are able to repro this issue, we have informed sample team regarding the same. We will keep you posted on the updates.

PratikGarai commented 10 months ago

Hi @Meghana-MSFT , any updates on this issue? We are currently blocked for a lot of features dependent on Authentication.

Meghana-MSFT commented 10 months ago

We raised a bug for the same, we will keep you posted on the updates. Thank you.

G9000 commented 3 months ago

July 22 2024, is there any update on this? It work on web version but desktop app not working at all

Meghana-MSFT commented 1 month ago

Apologies for the delay, we tested the sample (https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-teams-authentication/python) in Teams web & Desktop. It is working fine. image

VictorErmakov commented 2 weeks ago

Hi @Meghana-MSFT, I am facing the same issue. It is not working as expected. I tried the same manifest and bot service settings for python and nodejs samples. nodejs works perfectly fine, while python sample is not working. Either it is just stay silent or have an Something went wrong or Unable to reach app error on the Sign In. Although python sample works fine in the Bot Framework Emulator.