-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MS Teams Desktop tabs auth-start.html popup flashes on tab open #12129
Comments
Hi @jurisjansons Thank you for using Teams Toolkit. From the log I guess publicClientApplication is not correctly initialized in TeamsFx SDK when upgrading msal-browser from 2.x to 3.x. I will check for more detail and reach out to you when we have any update. |
Mr. Bot, what kind of author feedback where you expecting |
@jurisjansons Sorry for late reply. We have fixed this issue. Would you please have a try with the latest beta version? |
Still getting same errors and popup on every tab change.
What library version |
@jurisjansons I don't think this error comes from the auth-start.html. Would you please check whether you are using |
Went away for a bit, now I'm back and still having same issue. Updated teams-fx to latest beta version as of today: Error log:
|
Noticed that while waiting for For now changed my code like this:
to avoid popup. Is this correct approach? Lack of examples is confusing or maybe you could point me to up to date example where authentication is implemented in MS Teams tab with react? |
@jurisjansons I do believe your code above is correct. You can refer to our sample here. In this sample, we implement OBO flow for authentication. |
@KennethBWSong sample uses Probably will leave this open, currently managed to fix this, but can't get it working with |
@jurisjansons Thanks for your info. Actually, in teamsUserCredential.getToken(scopes), teamsfx sdk will leverage msal.acquireTokenSilent(), msal.ssoSilent() to get token from cache/silent SSO. We will investigate this issue to see if we can improve the experience. |
There is another underlying issue related to this that I and other people have: microsoftgraph/microsoft-graph-toolkit#3160. |
@jurisjansons Thanks for your info. We will investigate and let you know as soon as we have any updates. |
Describe the bug
Moving between MS Teams triggers auth-start.html popop to open every time, even when switching from tab to tab.
I was sent here from teams-js issue: OfficeDev/microsoft-teams-library-js#1994.
More details, videos and teams-js teams discoveries etc. can be found there.
Issue can be observer on Windows, both MS Teams Desktop and Web versions
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Switching tabs or reopening tab later doesn't trigger popup and gets token from cache instead
Screenshots
Video with issue: https://github.com/OfficeDev/microsoft-teams-library-js/assets/10829036/9f4996a5-fba5-4d1f-b962-795a9a8cce45
The text was updated successfully, but these errors were encountered: