OfficeDev / microsoft-teams-library-js

JavaScript library for use by Microsoft Teams apps
https://docs.microsoft.com/microsoftteams/platform/
Other
428 stars 196 forks source link

The success handler of microsoftTeams.authentication.authenticate() is not working on custom ms teams on mobile only In react.js #1879

Open iamsahilralkar opened 1 year ago

iamsahilralkar commented 1 year ago
    microsoftTeams.authentication.authenticate({
      url: window.location.origin + `/msteams/auth-start?sso=${webAppRedirectURL}`,
      width: 600,
      height: 400,
      successCallback: (result) => { this.consentSuccess(result); },
      failureCallback: (reason) => { this.consentFailure(reason); }
    });
In above code block is working for custom MS teams web app on brower and desktop MS teams custom app, 

But it is not working on mobile ms teams app. 

can you please help me with this.
microsoft-github-policy-service[bot] commented 1 year ago

Hi iamsahilralkar! 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 1 year ago

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

ChetanSharma-msft commented 1 year ago

Hello @iamsahilralkar - Could you please confirm on which mobile OS you are experiencing this issue? Android or iOS? Additionally, could you provide the version of the Microsoft Teams JS library so that we can test it on our side?

iamsahilralkar commented 1 year ago

OS: Android 13 Microsoft Teams JS library version: 1.6.0

Nivedipa-MSFT commented 1 year ago

@iamsahilralkar - We will test this on Android using Microsoft Teams JS library version: 1.6.0 and update you soon.

iamsahilralkar commented 1 year ago

@Nivedipa-MSFT Could you please provide an update?

Nivedipa-MSFT commented 1 year ago

@iamsahilralkar - We have tested the scenario. On Teams web client we are getting success alert but on Android mobile the blank popup is opening not getting alert for success or failed.

Please refer below videos:

Teams web client: recording-2023-08-17-14-22-22.webm

Android version 8.1.0 and Teams version 1416/1.0.0.2023122804/0703 :

https://github.com/OfficeDev/microsoft-teams-library-js/assets/92150070/813f350f-4079-4a2e-b7ee-c82fe1d382b7

We have raised a bug for the same. We will let you know once we get any updates on it.

iamsahilralkar commented 1 year ago

@Nivedipa-MSFT Could you please provide an update? Actually, we are planning to proceed with production using this authentication flow, but we have encountered an issue that is causing a delay.

Nivedipa-MSFT commented 1 year ago

@iamsahilralkar - Currently, we don't have any ETA to share. Engineering team is actively working on the fix. We will let you know once we get any updates on it.

iamsahilralkar commented 1 year ago

@Nivedipa-MSFT @ChetanSharma-msft @ are there any update?

Nivedipa-MSFT commented 1 year ago

@iamsahilralkar - At the moment, there are no updates available. The engineering team is actively working on resolving this. We will keep you informed once any progress or updates are made.

iamsahilralkar commented 12 months ago

Hello, we are still waiting to have this issue fixed. Can you help us achieve this task in another way? Many customers are waiting for this Auth login feature, and we are stuck due to this issue. @ChetanSharma-msft @Nivedipa-MSFT

Nivedipa-MSFT commented 12 months ago

@iamsahilralkar - Currently, we don't have any ETA to share. Engineering team is actively working on it. We will let you know once we get any updates on it.

86driver commented 12 months ago

i have the same problem,
i used the js sdk version is v1.10.0 (https://statics.teams.cdn.office.net/sdk/v1.10.0/js/MicrosoftTeams.min.js'),
it works well on pc, but when i use the sdk in teams app, it not work.

@Nivedipa-MSFT by the way, it works on ngrok, but in my own website, it not work, Is it due to many redirection?

86driver commented 11 months ago

@iamsahilralkar have you solved this problem?

Nivedipa-MSFT commented 11 months ago

@iamsahilralkar, @86driver - Currently, we don't have any ETA to share for bug fix. Engineering team is actively working on it. We will let you know once we get any updates on it.