leftstick / teams-ubuntu

Microsoft teams for ubuntu platforms
MIT License
87 stars 15 forks source link

HTTP Authentication request not forwarded #13

Open sibaz opened 6 years ago

sibaz commented 6 years ago

Hi, when I access https://teams.microsoft.com from within my company's secure network, following the initial page, where I enter my username@domain, I get an HTTP Authentication popup, asking for my internal credentials before I get the usual Teams webpage. When I use the teams-ubuntu app, I enter the same username@domain, but don't get that popup, and instead get a white screen, which hangs on 'Sign in to your account'.
I assume, the app isn't forwarding the HTTP request to the UI.

Regards, Simon

sibaz commented 6 years ago

Looks like a common electron problem: https://github.com/electron/electron/issues/1362

leftstick commented 6 years ago

Hi @sibaz , it's possible that i missed something. Would you help debugging this issue? Since i don't have any teams env, i cannot reproduce it.

sibaz commented 6 years ago

Sure, I'm trying this myself now. I can see the 401 response in the console network log, and have seen some talk about adding an onAuth handler to index.html, but I'm starting from scratch trying this, so if you can help on this @leftstick , that's awesome.

sibaz commented 6 years ago

The suggestion in the above electron issue seems to be to follow https://stackoverflow.com/questions/16612968/chrome-webrequest-onauthrequired-listener/16613116#16613116 Not sure if it works, but worth a try

sibaz commented 6 years ago

I've done some digging, and I can't figure out how to add the onAuthRequired hook. I suspect it's not been implemented in electron. https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/webRequest/onAuthRequired

echipachenko commented 5 years ago

Same issue, http base authorization not working, everytime blank screen. The issue reproduced by corporate account, when microsoft redirects to corporate sign-in page.