volendavidov / NagBar

macOS status bar monitor for Nagios, Icinga/2 and Thruk
https://sites.google.com/site/nagbarapp/
Apache License 2.0
20 stars 2 forks source link

Unable to login on Thruk #9

Closed renard closed 5 years ago

renard commented 5 years ago

By default Thruk uses cookie based authentication and NagBar does not send a Authorization unless the server asks for a basic authentication.

It would be great to add an checkbox to force Authorization header usage.

Thanks a lot.

renard commented 5 years ago

BTW I manage to force a basic authentication within HAProxy adding this line:

http-request auth realm "Thruk auth" unless { req.hdr(Authorization) -m found } { req.hdr(User-Agent) -m reg NagBar }

But still it would be better to add an option to force HTTP Auth in NagBar.