otetard / ownpad

Ownpad is a Nextcloud application that allows to create and open Etherpad and Ethercalc documents.
GNU Affero General Public License v3.0
57 stars 24 forks source link

OWNPAD-etherpad outside of NextCloud #108

Closed scriptFactors closed 2 years ago

scriptFactors commented 2 years ago

hi - tried with no success to access OWNPAD created etherpads directly from the etherpad instance. i assume it is a COOKIE issue (msg is "You are not allowed to access this pad" or similar studying the EP database i can not find any hint that would allow me to circumvent the obvious restriction - onlpy to see the OWNPAD created EPs have 4 cookies, instance created EPs only one...

any pointer most welcome!

salut -

otetard commented 2 years ago

In Ownpad, code related to the cookie is here:

https://github.com/otetard/ownpad/blob/77475b72fe6a0ff0a25c8174126069baaa85b12d/lib/Controller/DisplayController.php#L105

Basically, code is creating an Etherpad session (valid for one hour) and then creates a sessionID cookie for the right domain.