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
900 stars 727 forks source link

Unable to authenticate SSO in sample bot-conversation-sso-quickstart (JS) on mobile client #803

Open XiaofuHuang opened 1 year ago

XiaofuHuang commented 1 year ago

I am attempting to set up a bot with SSO using the sample code provided in the Microsoft Teams documentation (https://learn.microsoft.com/en-us/microsoftteams/platform/sbs-bots-with-sso). While I have successfully granted permissions to the Teams app on the web client, I am encountering issues when trying to authenticate SSO on the mobile client.

Steps to reproduce:

  1. Followed the steps outlined in the documentation to set up the bot-conversation-sso-quickstart (JS) sample.
  2. Tested the bot on the mobile client, but encountered issues with SSO authentication. mobile-bot-sso
  3. Granted necessary permissions to the Teams app on the web client, which worked as expected.

Mobile client OS: IOS 16.4.1 (a) Teams app version: 5.8.1 (5.8.77.2023083301/0506)

ChetanSharma-msft commented 1 year ago

Thanks for raising your query. We will look into it and let you know the updates.

Meghana-MSFT commented 1 year ago

@XiaofuHuang - We setup bot-conversation-sso-quickstart (JS) sample at our end and it is working fine in iOS as well.

We tested in iOS 16 Teams app version: 5.8.1 (5.8.77.2023083301/0506)

image

Could you please let us know if you have tested it differently?

XiaofuHuang commented 1 year ago

@Meghana-MSFT I have never come across the sign-in button on my mobile client / web client. The following consent button does not work. image

After I consent the permission on the web client, I can get the user information on my mobile client. But I cannot consent the permission on the mobile client. image

Meghana-MSFT commented 1 year ago

Apologies for the delay in responding, we are also able to repro this issue in mobile with the bot-conversation-sso-quickstart (JS) sample. We will check internally and get back to you.

Update : Bug has been raised for the same, we will keep you posted on the updates. Thank you.

vincentkerr commented 7 months ago

@Meghana-MSFT - Is there Any update on resolution of this bug?

Meghana-MSFT commented 7 months ago

Unfortunately we do not have any update to share. We are following up with engineering team regarding updates. We will keep you posted. Thank you.

vman commented 6 months ago

@Meghana-MSFT We are also facing this issue on mobile. Any updates on it please?