Re: 401 Unauthorized on first run of pgadmin4 - Mailing list pgadmin-support

From Dave Page
Subject Re: 401 Unauthorized on first run of pgadmin4
Date
Msg-id CA+OCxozwFRzzOYW7DEDcoMLz4Dq77y9wg0pgbAR3tXeZ2_1Ekw@mail.gmail.com
Whole thread Raw
In response to Re: 401 Unauthorized on first run of pgadmin4  (Khushboo Vashi <khushboo.vashi@enterprisedb.com>)
List pgadmin-support


On Fri, Jul 13, 2018 at 5:27 AM, Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:


On Fri, Jul 13, 2018 at 9:37 AM, John Little <john.b.little@gmail.com> wrote:
I've today tried to install pgadmin4 on Kubuntu 18.04 according to the
instructions at

https://wiki.postgresql.org/wiki/Apt

Running pgadmin4 produces a 401 Unauthorized page in firefox.

By using the pgAdmin 4 Tray Icon, you can browse pgAdmin 4 in the default browser.
If you want to change the browser, use configure option from the pgAdmin 4 Tray icon.
To set Firefox as a default browser for pgAdmin then provide the command as below

"<Path to firefox>" %URL%

Example: "/usr/bin/firefox" %URL%

Yeah - you can expect to see 401's if you're running pgAdmin in desktop mode, and try to connect without using the security key. Running under the runtime as Khushboo suggests should prevent that happening.

In server mode, you should always be redirected to the login page if you need to authenticate (and the security key isn't used). 

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgadmin-support by date:

Previous
From: Dave Page
Date:
Subject: Re: Query Tool Initialize Error
Next
From: Ajlinux
Date:
Subject: Help with pgagent