deltachat / deltachat-ios

Email-based instant messaging for iOS.
GNU General Public License v3.0
306 stars 49 forks source link

[login screen] unable to login with regular account credentials #85

Closed dignifiedquire closed 5 years ago

dignifiedquire commented 5 years ago

I have a test account (alice@librechat.net) which works fine in all other settings, but I am not able to login with it anymore on the latest master

11:39:49.303 ❤️ ERROR events.callbackSwift():104 - network: Cannot login as alice@librechat.net.

Response from w017f238.kasserver.com: Unsupported authentication mechanism.

Is the error I get

dignifiedquire commented 5 years ago

I have a build with the new rust-core, exact some issue, also tried different accounts

r10s commented 5 years ago

@nayooti so, as it happens with the c-core as well as with the rust-core, maybe some credentials are not passed correctly to the core?

nayooti commented 5 years ago

@r10s I will check this out by tomorrow.

dignifiedquire commented 5 years ago

looking at the logs I suspect it is trying oauth, even though it shouldn't, but not sure

nayooti commented 5 years ago

I found potential source of bug and it kinda seem to work now.

Currently I can login at

But it's hanging for a couple minutes at 92%: Generating keypair with 2048 bits, e=65537

And Web.de-accounts seem to fail. Any idea why? @r10s Other Email-providers I should try?

dignifiedquire commented 5 years ago
nayooti commented 5 years ago

Apparently fixing regular login caused oAuth not working anymore. I will look into this.

Also canceling an ongoing login does not work properly at the current state.

nayooti commented 5 years ago

@dignifiedquire Any chance that Rust-core affects oAuth2 login?

I cloned pre-Rust as seperated project - oAuth2-login worked fine. I copied that pre-Rust AccountSetupController into current project (that uses Rust-Core) - oAuth2 fails.

[edit]: I took the latest AccountSetupController where I fixed regular login and copied into the pre-Rest-Project. Both oAuth2-login and regular-login work! Also regular login is super-quick (5 seconds) while on the Rust-Build it takes over a minute.

dignifiedquire commented 5 years ago

that is possible, oauth was reworked and that well tested yet On 2. Jun 2019, 14:57 +0200, nayooti notifications@github.com, wrote:

@dignifiedquire Any chance that Rust-core affects oAuth2 login? I cloned pre-Rust as seperated project - oAuth2-login worked fine. I copied that pre-Rust AccountSetupController into current project (that uses Rust-Core) - oAuth2 fails. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

dignifiedquire commented 5 years ago

if you can push the fix I can work on fixing it

nayooti commented 5 years ago

@dignifiedquire I blew my built today unfortunately right before I had to leave. Will recover tomorrow morning and push at around 10am.

nayooti commented 5 years ago

You can checkout Branch regularLoginFix

Here oAuth-login and regular login both work under non-rust-core. Both login types take about 5 seconds to complete.

nayooti commented 5 years ago

I hope you don't mind, if I close this issue and create new Issue for this.