Asks twice for login on Cockpit (but not NethGUI) - one browser dialog + one normal login page

Yes, it’s a common path.

Thank you for reporting such detailed answer!

I confirm the problem with Opera (Chromium) in this topic ^^

What is the Cockpit version in NethServer?

Because there are some bugs solved in official repository.
Example about languages + Username/Password page (in more the browser dialog problem)

Following official updates, the issue is not solved.

Here is an open issue: https://github.com/cockpit-project/cockpit/issues/13202

3 Likes

Happens on /user-settings/ port 443, too.

The issue is closed and marked as fixed since 28.04.2020, but chrome still prompts the authentication when I try to login to my NS. When using FF it doesn’t happen.
/cc @giacomo Did you see the fix?

192.168.1.237 - - [19/Jun/2020:10:10:56 -0400] "GET /user-settings HTTP/1.1" 302 266
192.168.1.237 - - [19/Jun/2020:10:10:56 -0400] "GET /cockpit/@localhost/nethserver/index.html HTTP/1.1" 200 39022
192.168.1.237 - - [19/Jun/2020:10:10:56 -0400] "GET /cockpit/static/branding.css HTTP/1.1" 200 4170
192.168.1.237 - - [19/Jun/2020:10:10:56 -0400] "GET /cockpit/static/bg-plain.jpg HTTP/1.1" 200 73433
192.168.1.237 - - [19/Jun/2020:10:10:56 -0400] "GET /cockpit/static/fonts/OpenSans-Regular-webfont.woff HTTP/1.1" 200 96116
192.168.1.237 - - [19/Jun/2020:10:10:56 -0400] "GET /cockpit/static/fonts/OpenSans-Bold-webfont.woff HTTP/1.1" 200 98780
192.168.1.237 - - [19/Jun/2020:10:10:56 -0400] "GET /favicon.ico HTTP/1.1" 404 209
192.168.1.237 - - [19/Jun/2020:10:10:56 -0400] "GET /cockpit/login HTTP/1.1" 401 23
192.168.1.237 - - [19/Jun/2020:10:11:13 -0400] "GET /cockpit/login HTTP/1.1" 200 81

I’m not sure if the log info would be helpful. The 401/access denied would be relevant to the user’s experience with the extra popup and the time taken to fill it out.

AFAIK we still do not have the version which resolve the issue.
Still, you can try the solution proposed by upstream:

[negotiate]
action = none
2 Likes

Great, it works. :+1:

After creating /etc/cockpit/cockpit.conf with the given content and restarting cockpit, Chrome does not prompt anymore.

So it’s hidden somewhere in the code but not in the doc :cry:

Do anyone want to open the issue and the PR for both cockpit instances?

Right, I forgot the user instance. It works for user settings too after adding the section to /etc/cockpit-user/cockpit/cockpit.conf.
I am going to open issue/PR later today…

EDIT:

3 Likes

Thank you Markus!!

The package is ready to be tested thanks to excellent work for @mrmarkuz!

You install it with:

yum --enablerepo=nethserver-testing update nethserver-cockpit

@SpiceDenver @flatspin @NLS @dnutan @EddieA would you give it a try?

4 Likes

Seems to work. Installed package and chrome didn’t ask twice! :+1: :smiley:

Thanks for your great work @mrmarkuz !! :1st_place_medal:

2 Likes

I cannot verify this week, but since one already tested it, great.

2 Likes