go-vikunja / app

MIT License
250 stars 23 forks source link

Imposible to login in 0.1.6 #84

Open artromone opened 1 month ago

artromone commented 1 month ago

Cant login in both frontend and app in 0.1.6.

Nothing happens in app when i put down the mail, password, auth code and press continue. Frontend just clothes and also nothing happens.

Could login in 0.1.5.

Benimautner commented 1 month ago

What version is your API? Can you log in to https://try.vikunja.io with username demo and password demo?

kolaente commented 2 weeks ago

I had a report via mail where a user has the same problem. They provided logs from their device:

08-28 13:13:29.759 32259 32259 E chromium: [ERROR:aw_browser_terminator.cc(166)] Renderer process (32418) crash detected (code -1).
08-28 13:15:17.733 32616 32616 E io.vikunja.app: Not starting debugger since process cannot load the jdwp agent.
08-28 13:15:17.802 32616 32616 E cutils-trace: Error opening trace file: No such file or directory (2)
08-28 13:15:17.939 32616 32616 E io.vikunja.app: Unable to find pattern file or unable to map it for am
08-28 13:15:18.005 32616 32616 E TAG     : test

I suspect the problem is caused by the way we're using to grab the token from the browser session, which is probably not the most ideal. Mid-term, we should change the login to use a proper oauth process with a custom protocol.

Benimautner commented 4 days ago

We should move to proper oauth, yes. I didn't like the idea before, because that would break backwards compatibility, but since the app isn't backwards compatible anymore due to api changes anyways, I'm happy to implement oauth if the API supports it.