Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Mobile app login does not work if TOTP is enabled

Open dazoot opened this issue 1 year ago • 9 comments

Description:

Logging in on the mobile app (iOS and Android) returns auth failure: Credential were rejected.... if i have TOTP enabled.

Steps to reproduce:

  1. Try to login on the mobile app
  2. Enter correct user / pass (works in browser)
  3. Click Login

Expected behavior:

Login to work.

Actual behavior:

Login does not work.

I get an error logging IN.

image

Server Setup Information:

  • Version of Rocket.Chat Server: 6.13.0

  • License Type: Starter

  • Number of Users: 10

  • Operating System: Debian

  • Deployment Method: tar

  • Number of Running Instances: 1

  • DB Replicaset Oplog: (oplog Enabled)

  • NodeJS Version: v14.21.3

  • MongoDB Version: 4.4.29

  • Version of Rocket.Chat Server:

  • License Type:

  • Number of Users:

  • Operating System:

  • Deployment Method:

  • Number of Running Instances:

  • DB Replicaset Oplog:

  • NodeJS Version:

  • MongoDB Version:

Client Setup Information

  • iOS Application version 4.53.0.66078
  • Operating System: iOS

Additional context

Login on mobile works after i disable from the browser TOTP 2step authentification.

dazoot avatar Oct 23 '24 16:10 dazoot

I cannot reproduce this error with Oauth provisioned RC 6.13.0 system. TOTP enabled.

With LDAP enabled RC I get that error immediately when I arrive on the login page, already before typing in the username and password. However when I bypass that error and type them in, I can get into RC as normal. Also TOTP query follows as it should.

Edit: iOS app version 4.54.0.67815 so there is a newer one in appstore released within couple of days.

Gummikavalier avatar Nov 03 '24 09:11 Gummikavalier

Version of Rocket.Chat Server: 6.13.0

Can you please check on v7.x

reetp avatar Nov 11 '24 13:11 reetp

The error still happens with RC 7.0.0 after you type in the RC instance url and press enter.

For me the situation remains that after the error I can type in my username, LDAP password and then TOTP code and login without any other issues.

Gummikavalier avatar Nov 15 '24 18:11 Gummikavalier

I'll refer this to the team for comment.

reetp avatar Nov 20 '24 16:11 reetp

Sending to our Mobile experts. thanks for reporting

casalsgh avatar Nov 21 '24 20:11 casalsgh

@dazoot @Gummikavalier Can you try on 4.54.1? I'm not sure I understand how to reproduce that, but I can say TOTP is working fine here without LDAP.

If you're on 6.13, create an account on https://open.rocket.chat, which is on v7 atm, and try there as well. Thanks!

diegolmello avatar Nov 21 '24 20:11 diegolmello

@diegolmello I tested and reproduced the issue now with app version 4.54.1 too.

But in my case I have two other RCs configured into the Rocket.Chat app too, I now cleaned up cache for all of them and logged out from all.

After above I did not encounter the issue anymore.

Also there was no issue anymore when adding the second and third instances back to the app. Server versions were two RC 7.0.0 and one RC 6.13.0.

I had done cleaning up of cache earlier too, so most probably what fixed the problem was just removing all instances from the app.

Gummikavalier avatar Nov 22 '24 12:11 Gummikavalier

Awesome. Only waiting for @dazoot then.

diegolmello avatar Nov 22 '24 13:11 diegolmello

This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed.

github-actions[bot] avatar Dec 06 '24 18:12 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Dec 21 '24 00:12 github-actions[bot]