loki36 / user-otp

OTP Backend for owncloud
34 stars 21 forks source link

support for notes API #92

Open rainforest1155 opened 9 years ago

rainforest1155 commented 9 years ago

I just installed the notes app which comes with an API. When trying to access my Notes via the CloudNotes iOS app, it doesn't use remote.php / webdav, and thus requires the use of the OTP, which doesn't really work. This appears to be similar to issue #74.

When logging in via CloudNotes, it asks you to enter the Owncloud root path and looking at my web server logs, there's a request like this: /owncloud/index.php/apps/notes/api/v0.2/notes?exclude=content

So, would it be enough to add another line in the /lib/otp.php file at line 241 like this: preg_match("#^/apps/notes/api/v(.*)$#i", $_SERVER['PATH_INFO']) || ?

There's also a Notes API wiki page.

Thanks, Sebastian

loki36 commented 9 years ago

Hi, yes it'll should be enough

rainforest1155 commented 9 years ago

Hi, It works! Should I leave the issue open so you can add official support for the notes app in the next release or do you keep track of these things separately?

Sebastian

loki36 commented 9 years ago

let it opened