ONLYOFFICE / onlyoffice-alfresco

The package which enables the users to edit office documents from Alfresco using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Alfresco
GNU General Public License v3.0
39 stars 32 forks source link

Behind the revers proxy with authentication #188

Open sergefedorow opened 1 year ago

sergefedorow commented 1 year ago

Hello Sergey! I have the issue to make it work behind the reverse proxy with authentication. In my case the reverse prosy is Teleport with 2FA. Edit in ONLYOFFICE does not work until open the document server any page by direct link. The alfresco and Onlyoffice Document server are in the docker compose projects in one virtual docker network. Public addresses are: Alfresco - https://docs.at.domain.com.ua/ Onlyoffice Documents Server - https://office.at.domain.com.ua Teleport - https://at.domain.com.ua/

Teleport reverse proxy make a 2FA authentication and let open Alfresco Share, but pressing the button "Edit in ONLYOFFICE" gives an error:

2023-09-07_10-43_onlyoffice_11

But it works perfect if previously open any page or file on the https://office.at.domain.com.ua/. It let teleport go through authentication process. Here is the example of opening file api.js from the Document server. As you can see, the Teleport authentication process goes without any actions from the user side. After that all works fine on any tab or page of the browser.

2023-09-07_10-02_onlyoffice_2

The same issue is with document preview. It does not work until any Document Server page will be opened directly.

How to make the "Edit in ONLYOFFICE" work in this case without additional actions from the user side?

Thanks!

The configuration of ONLYOFFICE:

2023-09-07_10-06_onlyoffice_3

sergefedorow commented 1 year ago

Here is the description of the problem and solutions: https://goteleport.com/blog/web-session-sharing-transfer/

SergeyKorneyev commented 4 months ago

Thank you for the suggestion. However, I'm afraid we currently have no plans to implement just yet.