ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.67k stars 313 forks source link

[Bug] connection to Nextcloud not working when using "Authenticate with an U2F device" #326

Open reimer-atb opened 4 years ago

reimer-atb commented 4 years ago

Do you want to request a feature or report a bug? bug

What is the current behavior? Below error message is shown when trying to connect to nextcloud using U2F device. "Internet connection failed ... You are unable to edit the document because the internet connection is lost or restricted. Please check your connection and re-open the document to continue"

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Enable the apps "Two-Factor TOTP Provider" and "Two-Factor U2F" in Nextcloud
  2. Enable Two-Factor TOTP authentication for your nextcloud account
  3. Add a U2F device (e.g. Nitrokey FIDO2, SoloKey, or Yubikey) to your nextcloud account
  4. Make sure you can login to your nextcloud account using both TOTP and U2F device
  5. Open OnlyOffice Desktop Editor and Connect to Cloud
  6. Select Nextcloud and enter your Nextcloud URL
  7. Enter your Nextcloud username and password
  8. On the next page click on "Authenticate with an U2F device"

What is the expected behavior? I should be asked to connect my U2F device and tap its button. Then logging in to Nextcloud should succeed. Alternatively, if OnlyOffice Desktop Editor is not capable of supporting U2F, the corresponding option should not be shown in step 8. OnlyOffice should only show the "Authenticate with a TOTP app", which is working as expected.

Which versions of DesktopEditors, and which OS are affected by this issue? Did this work in previous versions of DesktopEditors? OnlyOffice Desktop Editors Version 5.4.2 MacOS 10.14.6 Manjaro Linux Gnome I did not try any previous versions of DesktopEditors

Rita-Bubnova commented 4 years ago

@LinneyS take a look.

alexanderonlyoffice commented 4 years ago

@philipreimer, thatnk you for your feedback. This is not actually a bug, but a shortcoming. Desktop editor is chromium-based and it does not support authentication through U2F device at the moment. We are working on implementation of this feature, but, unfortunately, I can't specify the exact time frames.

reimer-atb commented 4 years ago

@alexanderonlyoffice I see. Maybe you could hide the U2F option then, or show a warning message, that it is not supported? As an interim solution. Because the currently shown error page indicates that there is something wrong with the internet connection, which is kind of misleading.

alexanderonlyoffice commented 4 years ago

@philipreimer, thank you once again, we will take your suggestion into consideration.

KeenMaron commented 2 years ago

Is this still an issue? I'm using seafile with 2 factor authentifaction. I could login in OnlyOffice Desktop and can see all files. But if try to open a document it says, that preview is not available. If i press the button "open local" it says "no internet connection.." Server and Client are in the same network.

ShockwaveNN commented 2 years ago

@KeenMaron I don't think it's same issue, I think your issue may be more in configuration

Could you try temporary disable 2FA and check - is there same error?

KeenMaron commented 2 years ago

@ShockwaveNN Hi, your right. I have disabled the 2FA but it didn't changed anything. I got still the following error: image

ShockwaveNN commented 2 years ago

In that case, it's better to create a new issue with a detailed description of your setup. Maybe some non-standard proxy-self-signed certificates or something like this in nextcloud part of setup