matze / iridium

Standard Notes client written in Rust and GTK
GNU General Public License v3.0
66 stars 4 forks source link

Server Sync Login Fails #32

Open baarkerlounger opened 3 years ago

baarkerlounger commented 3 years ago

One the first greeter page I try to set up sync with my Standard Notes account. The synchronization drop down gives me the option https://sync.standardnotes.org so I pick that and click login expecting to be prompted for credentials.

Instead I get: Login failed: error decoding response body: missing field 'pw_cost' at line 1 column 140

Trying to run this on Mobian (Debian) on a PinePhone. I installed by running cargo build --release, cargo run --release --bin iridium

This looks like it may be due to changes in protocol version. https://github.com/standardnotes/snjs/blob/master/specification.md

https://github.com/standardnotes/syncing-server/blob/develop/spec/controllers/api/auth_controller_spec.rb#L491

matze commented 3 years ago

Ugh, I run a standalone sync server so I missed yet another update to the protocol :roll_eyes:

Hopefully

The 004 protocol upgrade centers around a system that makes it easy and painless to upgrade to a future protocol version, as well as more modern cryptographic primitives.

will be true this time. I will keep you updated.

baarkerlounger commented 3 years ago

Not sure if this is helpful at all but seemed similar.

https://github.com/tannercollin/standardnotes-fs/issues/32

matze commented 3 years ago

I started adding a few things here and there and added facilities to better test the login procedure. But yes, it still takes a bit of time to add proper support for 004. Thanks for the hint though, I will monitor that ticket.

baarkerlounger commented 3 years ago

There's now also a reference implementation in Python for v004.

https://gist.github.com/tannercollin/d7474c6afba0dc2026dd996b9dedf197

baarkerlounger commented 2 years ago

Is this still actively WIP? Was/is there a branch or anything that could be looked at or tested?

matze commented 2 years ago

I am on vacation and do not have a clone with me. But I do remember working on it in a local branch but at some point stalled :-|