edgedb-ui icon indicating copy to clipboard operation
edgedb-ui copied to clipboard

EdgeDB 3.0 UI requires password but doesn't help find password when login fails

Open Dhghomon opened this issue 2 years ago • 2 comments

Logging into the UI in EdgeDB 3.0 uses a login screen as opposed to 2.14 which uses a token in the url. Output is similar to the following:

EdgeDB 2.14:

Opening URL in browser:
https://localhost:10709/ui/STARTBIGTOKENFORTHENEXTFEWLINES

EdgeDB 3.0:

Opening URL in browser:
https://localhost:10709/ui

In EdgeDB 3.0 it first goes to a screen in the browser claiming that the site is unsecure - no problem, just click twice and get to the login screen. But after that is the login screen:

image

After which an incorrect login just says Error: Invalid credentials.

image

I opened a PR yesterday to display the directory for the credentials in the CLI but Paul noted that there is a command edgedb instance credentials -I <name> --json to do so. So the issue could be solved just be ensuring that users know about this command. Should this be indicated in addition to the Error: invalid credentials on the login screen then?

https://github.com/edgedb/edgedb-ui/blob/885120827f4b55c085a0d0f2ffca2c7a7f64c013/web/src/utils/scram.ts

Dhghomon avatar May 03 '23 04:05 Dhghomon

@elprans, @1st1, @fantix, @jaclarke, @freeatnet, @scotttrinh, @tailhook, @ambv: Maybe you can look here.

Neustradamus avatar Aug 18 '23 01:08 Neustradamus

I'm encountering this problem as well.

I'm running EdgeDB in docker. I'm able to connect to the database from my Python application, create and apply migrations, write and read data via queries. The data persists after container restarts.

But when I run edgedb cli within the edgedb docker container: edgedb instance list -> outputs no instances Hence, I cannot even run edgedb instance credentials -I <name> because the instance name itself is undiscoverable. However when I run edgedb instance credentials -H localhost I get the following output:

root@1d93209ac48e:/# edgedb instance credentials -H localhost
┌──────────────┬───────────┐
│ Host         │ localhost │
│ Port         │ 5656      │
│ User         │ edgedb    │
│ Password     │ <none>    │
│ Database     │ <default> │
│ TLS Security │ Default   │
└──────────────┴───────────┘

On the Admin UI login screen, if I enter username:edgedb and leave the password blank, front-end validation says password is required.

Any guidance to point in the right direction appreciated.

smartexpert avatar Jun 12 '24 02:06 smartexpert