I verified the target postgres url + credential I am using to login work fine (from a separate client)
using the "test’ feature on the login script page I get the error: “Unknown authenticationOk message typeMessage { name: ‘authenticationOk’, length: 23 }”
This issue appears to be coming from pg. Can please share a code snippet of how you are authenticating (remove sensitive data)? Also have you looked at this thread?
hello @dan.woda,
i tried working with ElephantSQL and everything worked fine with their DB url. It seems like the problem is with ngrok but i still can’t find a solution.
Have you been able to connect to the DB from a client that is external to your DB’s network? This error seems to be coming from the DB client, which suggests Auth0 has little control over it.
You could try running that same action script in a serverless function.
Hello @dan.woda,
I just fixed it !
Anyone having the same error and looking for a solution, it’s a problem related to your postgresql DB.
All you have to do is
1- open pg_hba.conf ( which is located under C:\Program Files\PostgreSQL\14\data ).
2- scroll down to the bottom of the file, there you will find at the end of every line “scram-sha-256”.
3- just change scram-sha-256 with trust, and that’s gonna fix your problem.
Did anyone find a better fix for this? My db is in aws rds so altering the .conf file won’t work. Strangly my dev db is connecting fine but my prod db wont connect. inbound rules are good and I’m still getting this error. I have other connections to my db externally with no issues. Any help is much appreciated!