question

Patryk-1446 avatar image
0 Votes"
Patryk-1446 asked Patryk-1446 commented

MS Teams infinite loop on sign-in

I have a problem with signing in to Teams. It occurs every day (the only workaround I found is removing cache and cookies, however, it is overhead... ). For example - when I change the wifi connection.

On Chrome 101.0.4951.54 ( Ubuntu 22.04 ):

When I launch Teams I end up in an infinite loop between teams.microsoft.com, login.microsoftonline.com and accounts.google.com. I did set up the sites that can always use cookies but it doesn't help:

200956-image.png

The only solution is to remove all data/cookies.

Side note- In Chrome I can log in to Office365 like a charm. But when I click on teams from office365 panel, I end up in an infinite loop.

On the desktop version (MS Teams Preview on Ubuntu): Even worse, I end up in an infinite loop too. The only solution is to remove ~/.config/Microsoft.

Same issue on my iPhone (Teams App, iOS 15.4.1). After a few iterations between Teams and the Authenticator app, I am able to sign out and sign in again.

EDIT: it doesn't work on firefox neither


Any suggestions?

office-teams-windows-itprooffice-teams-linux-itpro
image.png (86.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JimmyYang-MSFT avatar image
0 Votes"
JimmyYang-MSFT answered Patryk-1446 commented

Hi @Patryk-1446

Welcome to Q&A forum and thanks for post your question here!

In fact, I also have the same questions a few days before and we stuck in login loop when using Teams web client. Here is our solution for this issue for your reference. It looks the same as yours.

1) Go to settings > Privacy and security > Cookies and other site data and we add the Sites **[.]teams.microsoft.com in Always clear cookies when windows are closed*.
2)Close the browser and type teams.microsoft.com and you should login the account and it could work normally.

201310-image.png


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (108.7 KiB)
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It doesn't work for me. It seems that there are some different cookies to be cleared as well.

201278-image.png

Using this workaround I am asked to sign in to https://login.microsoftonline.com/ and when I successfully sign in, I'm redirected to a loop teams.microsoft.com, login.microsoftonline.com and accounts.google.com. Ending up with:

201353-image.png

I need to clear all cookies. But it's overhead definitely. Not mentioning about desktop version...

0 Votes 0 ·
image.png (109.8 KiB)
image.png (33.9 KiB)

Hi @Patryk-1446

As a workaround, could you try to login Teams via inprivate window to see if it works for you?

0 Votes 0 ·

As a workaround, I put in bashrc file command to remove cookies manually on each start. Overhead, but at least I can forget about the neverending loop...

0 Votes 0 ·
Show more comments
kaaven avatar image
0 Votes"
kaaven answered Patryk-1446 commented

I notised the new feature to preload sites are active. That can in theory cause similar issues. Would you be kind to uncheck it, blear cookies and test again?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It didn't help :-(

0 Votes 0 ·
bazjee avatar image
0 Votes"
bazjee answered Patryk-1446 commented

Remove all accounts from Windows settings > Accounts > Email & Accounts.
Search for Windows Credentials > Choose Windows Credentials > Remove all entries with a line meteams_
Clear browser cache
Delete all the cookies etc data
Try to login to Teams again.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I don't use Windows. Everything is happening on Ubuntu OS (that's why I use the teams web's version on chrome). Clearing cache and cookies helps. But I have to do it every day to make it work. (not mentioning about Ubuntu desktop client, clearing cache there resets all application settings). It's not a solution :-(

I am able to sign in to the office365 account. @bazjee can I remove accounts from the web office365 panel?

0 Votes 0 ·

And I have the same issue on my iPhone (Teams App, iOS 15.4.1), every day I have to clear cache and cookies to stop the loop.

0 Votes 0 ·