Auth0 Home Blog Docs

Lock widget username+password not working

Hi,

I have integrated the Lock widget in my Android app and I can successfully log in with email+password.

However, I am not able to log in with username+password (same user that already works with email+password).

What I see:

  • Error message “THERE WAS AN ERROR PROCESSING THE SIGN IN”.
  • Exception “LockActivity: Failed to authenticate the user: An error occurred when trying to authenticate with the server.”
  • API error “{“error”:“invalid_request”,“error_description”:“Missing required parameter: username”}”.
  • Indeed the username is not passed at all in the JSON payload.

My configuration:

  • database with “requires username” ON
  • my user has an email and a username
  • I have tried my connection from the dashboard, username+password WORKS

So please tell my what I missed with my Lock widget :frowning:

Thanks :wink: