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 v0.11.0 on NC29.0.1 with psql backend fails to validate api key/config due to variable naming mismatch #146

Open ichdasich opened 3 weeks ago

ichdasich commented 3 weeks ago

Moin, just setup a new NC instance, and was unable to configure ownpad with API and public pads allowed.

The issue was that in ll42 ff. of lib/Service/OwnpadService.php, ownpad polls ownpad_etherpad_useapi and ownpad_etherpad_apikey. However, the values create in the DB are ownpad_etherpad_use_api and ownpad_etherpad_api_key.

After adding ownpad_etherpad_useapi and ownpad_etherpad_apikey to the DB manually, ownpad works as expected.

endorphina commented 1 week ago

Hi, first of all: Thank you very much for this greate App. I love using Etherpad inside Nextcloud!

I'm also unable to configure ownpad with API (OAuth2). Got The following error occurred while trying to authenticate to Etherpad: Invalid authentication credentials. I've tried adding the the keys ownpad_etherpad_useapi and ownpad_etherpad_apikey but with no success. Running:

Thank you for every hint :)

endorphina commented 1 week ago

fixed it, problem was a /at the end of the url for the etherpad host... but need to add missing db keys as mentioned by @ichdasich

To use both, protected and unprotected pads in nc leave the session-part in settings.json as is

  "editOnly": "${EDIT_ONLY:false}",  
  "requireSession" : false,