Custom Database connection: login / getUser scripts not being invoked

I’m migrating users from an existing Amazon Cognito user pool into Auth0 via a Custom Database connection (using “Import Users to Auth0”). I built a small wrapper API over Cognito that exposes two endpoints—login and getUser—and configured these in Auth0 under “Custom Database → Login” and “… → Get User.” Both endpoints pass the “Try” tests in the dashboard.

However, when I try to authenticate against this connection (either via “Try Connection” in the dashboard or through my local application using Universal Login / SDK), Auth0 always returns “Wrong email or password” and never actually calls my login or getUser endpoints. No requests hit my wrapper API.

What I’ve Tried

  • Verified both endpoints succeed in “Try and save” tests in the Dashboard.
  • Confirmed the connection is enabled for my application.
  • Double-checked the script URLs, HTTP methods (POST), and headers.
  • Reviewed Auth0 Dashboard logs—no record of invocation for this connection.

Please let me know what next steps or diagnostics I can perform to get my custom database scripts invoked properly. Thanks!

Hi @t.levtsun

Welcome to the Auth0 Community!

I would recommend to review our documentation on:

If you still have any questions or issues, please let me know!

Kind Regards,
Nik