IsmaelMartinez / teams-for-linux

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

Please sign in again? - Way to keep non-idle? #1357

Open jmergy opened 1 month ago

jmergy commented 1 month ago

Assuming this is due to org policy around timeout. Can we do something that would keep the connection active enough to not trigger this? Native Teams or Outlook or other apps seem to be able to hold on to this. Maybe through certs or something? Pretty annoying. I understand there is only so much one can do here but asking.

IsmaelMartinez commented 1 month ago

Hi @jmergy , we had a similar issue in here https://github.com/IsmaelMartinez/teams-for-linux/issues/1045 but people reported it was better.

Maybe see if you can use the intune option.

IsmaelMartinez commented 4 weeks ago

did you manage to try and/or use one of the other options available to login? How did you get along with it? Thanks

jmergy commented 4 weeks ago

Still playing with it. We can close this for now and I will come back if I have some progress.

masc-ppi commented 2 weeks ago

I have the same problem, need to re-login every few hours. Our company uses Intune, and I tried the new settings for that. It does not make a difference. In the log, I get the following warning:

[2024-08-29 09:52:58.299] [debug] configFile: {
  ssoInTuneEnabled: true,
  ssoInTuneAuthUser: 'xxx@yyy.zzz'
}
[2024-08-29 09:52:58.786] [debug] Initializing InTune SSO
[2024-08-29 09:52:58.973] [debug] processArgs: [ '/opt/teams-for-linux/teams-for-linux' ]
[2024-08-29 09:52:58.974] [debug] testing RegExp processArgs false
[2024-08-29 09:52:58.975] [debug] Testing network using net.request() for https://teams.microsoft.com/v2
[2024-08-29 09:52:58.979] [debug] Spellchecker is disabled!
[2024-08-29 09:52:59.315] [warn]  Failed to find microsoft-identity-broker DBus interface

Do I need to start any other service/component to provide the missing microsoft-identity-broker DBus interface?

IsmaelMartinez commented 2 weeks ago

maybe check in here ? https://github.com/IsmaelMartinez/teams-for-linux/pull/1280 . There it explain how they did it and it might give you clues on how to get it to work.

masc-ppi commented 2 weeks ago

Thanks for pointing that out. I've checked #1280 and I'm now under the impression that I need to run the MS Intune app (https://learn.microsoft.com/de-de/mem/intune/user-help/microsoft-intune-app-linux). That one seems to provide the relevant DBus interface. Unfortunately, it is not yet available for Ubuntu 24.04.