OfficeDev / microsoft-teams-library-js

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

microsoftTeams.authentication.getAuthToken() doesn't work for task modules in teams v2 #2340

Open vhensorskyi opened 4 months ago

vhensorskyi commented 4 months ago

Hi folks,

Whenever I try to execute microsoftTeams.authentication.getAuthToken() for task modules when consent isn't approved the function doesn't throw a consent error, like resourceRequiresConsent. It constantly fails with Get Auth token error. Moreover, the function doesn't refresh a token once the consent gets approved. A user needs to sign out from MS Teams Client and login again to populate a new valid token. Both issues started happening on the v2 MS Teams, anything was working fine on the v1. Could you please investigate this, since many users are affected by this?

Best regards, Volodymyr

Nivedipa-MSFT commented 4 months ago

@vhensorskyi - Thanks for reporting your issue. We are checking this with engineering team, we will update you soon.

vhensorskyi commented 4 months ago

Hello,

Have you had a chance to investigate the problem?

Nivedipa-MSFT commented 4 months ago

@vhensorskyi - We are still checking this with the engineering team, we will let you know once we get any updates from them.

Nivedipa-MSFT commented 4 months ago

@vhensorskyi - There is an already bug raised for this issue. We will let you know once we get any updates on it.

vbatr commented 2 months ago

Hi @Nivedipa-MSFT

I there any ETA for resolving this issue? We have the same problem while calling microsoftTeams.authentication.getAuthToken({ silent: true }) in our app. Without silent parameter SSO consent popup is not shown on within task module.

Regards, Volodymyr B.

mparfianowicz commented 1 month ago

Hi!

This is a blocker for implementing Tab SSO for the official Microsoft Teams - Atlassian Jira Data Center integration. It would be really great to have this bug resolved as soon as possible.

Kind regards Marek Parfianowicz Principal Engineer Atlassian

tanimcseku commented 3 weeks ago

Hi @Nivedipa-MSFT , any update on this?

Nivedipa-MSFT commented 3 weeks ago

@tanimcseku - We are checking the status of the bug with the engineering team, we will let you know once we get any updates from them.