realm-object-server icon indicating copy to clipboard operation
realm-object-server copied to clipboard

(Mac) Realm Object Server Login Failed: Email/Password Incorrect (case-sensitive username)

Open dlittle1 opened this issue 9 years ago • 3 comments

I installed Realm on computer1 and ran the Realm Object Server (creating a new admin user) then installed and ran Realm Object Server on computer2 attempting to create the same admin user I created on computer1. It immediately went to the login page where I assumed it had recognized my credentials from computer1 so I then filled in the same credentials and tapped Login. For some reason this alert is now showing on the screen:

Login Failed: Email/Password combination incorrect.

In the server logs it states:

warn: auth.password: Handle request failed with: InvalidCredentials: The provided credentials are invalid.: Given account: [email protected]

I then restarted the Realm Server and attempted to create a different admin user with different credentials, after filling in the credentials and tap "submit" I am immediately taken to the login page where it gives the alert now saying:

An error occured while setting up your account.

What is also interesting, is that after trying to create that new account I don't receive any information in the logs after tapping submit.

http://stackoverflow.com/questions/41254975/mac-realm-object-server-login-failed-email-password-incorrect

dlittle1 avatar Dec 21 '16 04:12 dlittle1

I @dlittle1,

I was not able to reproduce this issue. Please note that as indicated, the fact that you are running the ROS on multiple machines has no bearing on this issue. Please try simply resetting the secondary install, and start from scratch.

To be clear: you can simply redownload the SDK from the website, and then unarchive it to a new location, and run the server from there using the usual start command. This should give you a brand new, squeaky clean install and should work out of the box. Let me know if you encounter any other issues.

I'll close this for now, as I'm not able to repro using the latest download. Feel free to reopen if you still have the issue.

teotwaki avatar Dec 27 '16 13:12 teotwaki

I ran into the same issue. I was able to narrow the problem to creating an account with a mixed case username.

Steps to reproduce:

  1. Download Realm Object Server Version 1.0.0-BETA-4.11
  2. run start-object-server.command
  3. Create user with following credentials:
  1. Attempt to login with [email protected]
  2. Receive following message: 2017-01-05T23:51:15.511Z - warn: auth.password: Handle request failed with: InvalidCredentials: The provided credentials are invalid.: Given account: [email protected]

However, I was able to create a working admin account with the following credentials:

Recommend adding some simple validation for usernames, such as toLowerCase, etc.

AnthonyWhitakerJr avatar Jan 06 '17 00:01 AnthonyWhitakerJr

I've also seen this in earlier builds. Thought it was just something I messed up.

Chris-BMA avatar Jan 06 '17 00:01 Chris-BMA