pfp icon indicating copy to clipboard operation
pfp copied to clipboard

Nextcloud sync support

Open rugk opened this issue 6 years ago • 6 comments

I'd really not trust Dropbox or Google with my passwords, even when encrypted. There is still some meta data, e.g. when one creates passwords.

In any case, it would be nice if you could add NextCloud as a sync option.

rugk avatar Mar 19 '18 20:03 rugk

I looked into it briefly, and it seems that the APIs offered by NextCloud out of the box are WebDav and OCS. According to documentation, both expect authorization to happen either via username:password combination or via a session cookie. Neither would be a good option for PfP. However, it seems that there is an undocumented (!) OAuth2 authorization flow as well. Still no scope limiting from what I can tell, but at least something one can work with.

As to the actual APIs, OCS is the more convenient API but seems to expose auxiliary functionality only. So WebDav it is. It appears that conflict prevention works similarly to Google Drive, meaning sending If-Match: <ETag> header with the request. This isn't properly documented however. I might play around with the demo instance at some point but given the sad state of the documentation this isn't really a priority.

palant avatar Mar 20 '18 09:03 palant

Yeah, AFAIK OAuth2 is quite new.

rugk avatar Mar 20 '18 10:03 rugk

https://github.com/nextcloud/server/pull/4704 - almost a year.

palant avatar Mar 20 '18 10:03 palant

I had not discovered PFP until someone mentioned it to me. I've been using Keepass2Android, which is able to connect with NextCloud.

mekineer avatar Jun 26 '19 03:06 mekineer

I use Keeweb which also support different backends and webdav too.

pwFoo avatar Jul 28 '19 15:07 pwFoo

Yes, Keeweb fails to account for concurrent uploads, meaning that one device might end up overwriting changes made by another. So I guess that they have the same issues I listed in https://github.com/palant/pfp/issues/85#issuecomment-374531794 but chose to ignore them.

palant avatar Jul 28 '19 17:07 palant

PfP 3.0 no longer has sync functionality, sync can be done externally.

palant avatar Apr 26 '23 13:04 palant