Teams Bot SSO consent prompt not showing on mobile

Benoit Dupont 66 Reputation points
2023-07-07T10:33:49.7533333+00:00

Hello,

My bot uses SSO to connect to Microsoft Graph on behalf of the user.

On desktop/web, the consent prompt is showing like on the following image.

enter image description here

On mobile (iOS, Android), the prompt is not showing. Is this a normal behavior om mobile or I'm missing something I my code?

I ask for an exchange token. If I don't have the consent from the user, I return an HTTP 412 to the Teams client which should display the consent prompt.

Thanks for your help.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,512 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sayali-MSFT 3,351 Reputation points Microsoft Vendor
    2023-07-10T13:43:13.7566667+00:00

    @Benoit Dupont-We have Tested the SSO on IOS AND Android. It is working fine from our end.
    Could you please check it once with the below attached manifest.
    [App-SSO.zip](https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/app-sso/csharp/demo-manifest/App-SSO.zip)

    Also check the Prerequisites and Setup with the below sample-
    https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/app-sso/csharp

    0 comments No comments

  2. Benoit Dupont 66 Reputation points
    2023-07-12T19:57:51.2533333+00:00

    I found out my issue, I think.

    I receive multiple times the payload with "signin/tokenExchange" event.
    The first time I return an HTTP 412 but the other times I returned HTTP 200.
    All I needed to do is to always return an HTTP 412.I have another issue now.
    When I click on the "continue" button on iOS it opens Microsoft Authenticator and closes it right away.
    On desktop, it opens a "consent" page with a list of permissions that the app is asking the user.

    Why does Microsoft Authenticator opens when I need to consent on iOS ?

    Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.