url redirection and authentication

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
doneil326
Posts: 82
Joined: Fri Aug 14, 2015 3:26 pm

url redirection and authentication

Post by doneil326 »

Hello,

I have a need to provide a dashboard to my consumers by rewriting the url directly to nagvis. so something like dashboard.domain.com/prod rewrites to the dashboard in question. The issue is whenever the users try to drill down into a host/service/hostgroup/servicegroup etc they get session timed out because the server is is redirecting to https://dashboard.domain.com/nagiosxi/i ... -hostgroup and never passes any authentication to nagiosxi to all users access. is there a way to pass a query string parameter for no auth or a readonly account to nagiosxi to by pass this?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: url redirection and authentication

Post by scottwilkerson »

Yes, if you create a read-only account

Then go to
Admin -> Manage Components -> Backend API URL -> Edit

select your read only user
You will get a list of URLs, at the end of each you will see someting like the following

Code: Select all

&username=readonly&ticket=s4k3chun3gdguafhl4f3b79a68l2jcqddcfoscfvrsdn4q6otjo9p0gv630mfq4r
Append that to your URL and it will auto login as that user
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked