Error with Teams Apps login

%3CLINGO-SUB%20id%3D%22lingo-sub-2768472%22%20slang%3D%22en-US%22%3EError%20with%20Teams%20Apps%20login%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2768472%22%20slang%3D%22en-US%22%3E%3CP%3EAbout%2010%25%20of%20our%20users%20are%20unable%20to%20log%20into%20our%20app%20from%20the%20Teams%20Windows%20Client.%26nbsp%3B%20This%20does%20not%20occur%20on%20the%20Macintosh%2C%20IOS%20or%20Android.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20they%20attempt%20to%20log%20in%2C%20they%20are%20presented%20with%20a%20blank%20page%20and%20then%20Teams%20hangs.%26nbsp%3B%20We%20found%20that%20doing%20an%20Office%20Repair%20seems%20to%20fix%20the%20problem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20believe%20the%20issue%20is%20related%20to%20Microsoft's%20rollout%20of%20WAM%20and%20is%20specific%20to%20the%20Windows%20Teams%20client.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2768472%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2769989%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20with%20Teams%20Apps%20login%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2769989%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1161492%22%20target%3D%22_blank%22%3E%40donkos%3C%2FA%3E%26nbsp%3B%20-%20Is%20it%20happening%20with%20custom%20app%20or%20the%20initial%20login%20of%20Teams%20client%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2774060%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20with%20Teams%20Apps%20login%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2774060%22%20slang%3D%22en-US%22%3E%3CP%3ECan%20you%20check%20if%20user%20is%20having%20same%20behavior%20when%20doing%20Teams%20web%20client%3F%20Please%20check%20for%20console%20error.%20Refer%20this%20to%20check%20on%20Teams%20Desktop%20-%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftabs%2Fhow-to%2Fdeveloper-tools%23access-devtools-on-the-desktop%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAccess%20DevTools%20on%20the%20desktop%3C%2FA%3E%26nbsp%3B.%3CBR%20%2F%3E%3CBR%20%2F%3ELet%20us%20know%20the%20microsoftTeams%20SDK%20version%20and%20Teams%20Desktop%20version%20that%20is%20installed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2774108%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20with%20Teams%20Apps%20login%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2774108%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1092873%22%20target%3D%22_blank%22%3E%40HunaidHanfee-MSFT%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20we%20will%20check%20to%20see%20if%20this%20happens%20with%20the%20web%20client%20as%20well.%26nbsp%3B%20We%20believe%20this%20has%20something%20to%20do%20with%20the%20transition%20to%20WAM%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2776415%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20with%20Teams%20Apps%20login%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2776415%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1092873%22%20target%3D%22_blank%22%3E%40HunaidHanfee-MSFT%3C%2FA%3E%3CBR%20%2F%3EHello%2C%20the%20issue%20does%20not%20happen%20in%20the%20Teams%20Web%20Client%20when%20using%20our%20app.%20The%20problem%20has%20happened%20across%20different%20versions%20of%20the%20Teams%20desktop%20app%20on%20Windows%20but%20mostly%20on%20version%201.4.00.22976.%20However%2C%20we%20have%20also%20had%20users%20on%20this%20Teams%20app%20version%20with%20no%20problem%20at%20all.%20Thank%20you%20for%20your%20guidance.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2777394%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20with%20Teams%20Apps%20login%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2777394%22%20slang%3D%22en-US%22%3E%3CP%3ECould%20you%20please%20error%20and%20share%20the%20error%20from%20console%20Teams%20Desktop%20client%3F%20Refer%20this%20Access%20DevTools%20on%20the%20desktop%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftabs%2Fhow-to%2Fdeveloper-tools%23access-devtools-on-the-desktop%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftabs%2Fhow-to%2Fdeveloper-tools%23access-devtools-on-the-desktop%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2789033%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20with%20Teams%20Apps%20login%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2789033%22%20slang%3D%22en-US%22%3EThere's%20already%20a%20bug%20in%20our%20backlog%20related%20to%20%60microsoftTeams.authentication.authenticate()%60%20and%20%60microsoftTeams.authentication.notifySuccess()%60.%20That%20is%20happening%20only%20for%20Teams%20desktop.%20Could%20you%20check%20if%20you%20are%20getting%20error%20such%20as%20CancelledByUser%20or%20other%3F%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
New Contributor

About 10% of our users are unable to log into our app from the Teams Windows Client.  This does not occur on the Macintosh, IOS or Android. 

 

When they attempt to log in, they are presented with a blank page and then Teams hangs.  We found that doing an Office Repair seems to fix the problem.

 

We believe the issue is related to Microsoft's rollout of WAM and is specific to the Windows Teams client. 

20 Replies
@donkos  - Is it happening with custom app or the initial login of Teams client?
This is happening on attempting to log into our custom app. We are using the "simple signon" code that we got from github (https://github.com/OfficeDev/microsoft-teams-sample-auth-node) It has been working for the past year; this intermittent signon problem began appearing about 2 months ago. Our app only uses tabs.

Can you check if user is having same behavior when doing Teams web client? Please check for console error. Refer this to check on Teams Desktop - Access DevTools on the desktop .

Let us know the microsoftTeams SDK version and Teams Desktop version that is installed.

 

@HunaidHanfee-MSFT 

 

Yes, we will check to see if this happens with the web client as well.  We believe this has something to do with the transition to WAM?

@HunaidHanfee-MSFT
Hello, the issue does not happen in the Teams Web Client when using our app. The problem has happened across different versions of the Teams desktop app on Windows but mostly on version 1.4.00.22976. However, we have also had users on this Teams app version with no problem at all. Thank you for your guidance.

Could you please error and share the error from console Teams Desktop client? Refer this Access DevTools on the desktop - https://docs.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/developer-tools#access-devtools...

We found something that may be related - we have not enabled MSAL for our teams endpoints, could this be the issue? The problem only occurs on teams app which uses the teams endpoints. A
There's already a bug in our backlog related to `microsoftTeams.authentication.authenticate()` and `microsoftTeams.authentication.notifySuccess()`. That is happening only for Teams desktop. Could you check if you are getting error such as CancelledByUser or other?

Yes, we are getting cancelled by user even though the user took no action. We can also confirm that this is related to Teams desktop only. Web, IOS and Android all work fine.

@donkos -

Thanks for the quick reply, we already have a bug raised for this. Concerned team is looking into it. I will let you know the updates.

 

Thanks, 

Hunaid Hanfee

---------------------------------------------------------

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

@HunaidHanfee-MSFT 

Hello, just wanted to check in to see if there are any updates on a resolution for this bug that has been raised. Any ETA perhaps? Thank you so much for the feedback. 

 

Much appreciated,

Ken

Sorry, I don't have an ETA to share. Concerned team is looking into it. Issue is not faced by everyone and it is hard to repro the issue and see the actual cause. I will let you know as soon as I got any update. 

Thanks
Hunaid

@HunaidHanfee-MSFT 

Thank you for keeping us posted. We greatly appreciate that. Our engineer will be posting the findings that we are seeing to assist you with this bug. In the meantime, could you send me the Microsoft ticket# for this bug? We are being asked by our customer who is being impacted by this problem.

 

Thank you!

Ken

Thank you @KenCrest, The bug is internal and it doesn't have publicly accessible URL. For the updates I will let you know. Also, I will share the findings shared by you and other community member with the concerned team.

@HunaidHanfee-MSFT - one thing we are seeing is that the users that can't log in tend to have their devices hybrid joined to AAD.  Again, this only affects Teams Windows Desktop App. 

@HunaidHanfee-MSFT 

The customer has a Microsoft Senior Customer Success Account Manager that is requesting the case# so that they can review it on behalf of the customer/organization. Could you kindly reach out to Ed Capko with the internal case# for this bug? Thank you so much. 

Ed Capko

Senior Customer Success Account Manager

ecapko@microsoft.com

UC number: 604-693-7873 (calls office and cell)

Sure.
I faced exactly the same issue. I would like to be updated when there are any solutions for this, because this login issue is a big issue for our customers as well.
@KimvdM @donkos425 - we have got the update from engineering team on this thread -
https://github.com/OfficeDev/microsoft-teams-library-js/issues/629#issuecomment-975926875
Please have look.

It would be better if you start tracking there of updates.
www.000webhost.com