IsmaelMartinez / teams-for-linux

Unofficial Microsoft Teams for Linux client
GNU General Public License v3.0
2.94k stars 239 forks source link

Configure User-Agent to circumvent block? #1414

Closed cbotmk3 closed 1 month ago

cbotmk3 commented 1 month ago

Today I noticed T4L is not working any more, the sign-in page in my company says "You cannot access this right now" and Microsoft's error code is 53003. It seems like there is a new policy preventing me from logging in.

After some research, I found out:

Can we somehow spoof the User Agent in teams-for-linux or make this configurable in a future release? IMHO the problem is my company not allowing some user agents...

cbotmk3 commented 1 month ago

Oops, I just found out there is already such an option, sorry! I will try that.

cbotmk3 commented 1 month ago

It works using the following config: "chromeUserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"

But I'm not sure if it's the Windows part or that the default UA is a too old Chrome version.

IsmaelMartinez commented 1 month ago

Hi @cbotmk3 , yes, it is probably your company policy trying to block you.

You can also use the emulateWinChromiumPlatform option. I didn't add it but there is more info in here https://github.com/IsmaelMartinez/teams-for-linux/pull/1395

IsmaelMartinez commented 1 month ago

closing a complete. Do reach out if you need more help. Ta

NklsCh commented 2 days ago

Hi, im currently on 1.11.2 and i think it might be broken again, the bypass doesnt work for me

cbotmk3 commented 2 days ago

I'm on 1.11.3 and it still works.

NklsCh commented 2 days ago

It works using the following config: "chromeUserAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"

Did you wrote that in your config file in .config/teams-for-linux/config.json ?