How to add username and password to the web view URL?
AnsweredHello, I need to be able to have the web viewer login automatically when clicking a link to view footage from the email notification. This viewer is accessed from the email alert that gets sent out by the NX Witness server. An example of the URL can be seen here http://10.8.0.56:7001/static/index.html#/view/88b328d9-a63a-fffff-ab3c-fffffffffff?time=1631802672000
Does the server accept the username and password as URL parameters? Or is there a way for me to have HTTP basic authentication work?
An example of what I'm after could be the following
let username = admin
let password = gold@fish
example 1: http://admin:gold%40fish@10.8.0.56:7001/static/index.html#/view/88b328d9-a63a-fffff-ab3c-fffffffffff
example 2 with URL params: http://10.8.0.56:7001/static/index.html#/view/88b328d9-a63a-fffff-ab3c-fffffffffff?username=admin?password=gold%40fish
Screenshot of the web viewer can be seen below
-
Hello Joshua Ba,
This cannot be done at the moment, for security reasons. But there is an alternative way. Link to the View tab in the cloud, it looks something like this:
http://nxvms.com/systems/41e23271-a7d5-4092-bdcc-f98b0a9e6178/view?auth=cnl1bGRhc2hldkBuZXR3b
Where the value of the "auth" parameter is the cloud user credentials encoded in Base64 in the "username: password" format. More details are described in THIS article.
But we do not recommend doing this through e-mail due to the fact that it might be hacked. In this case, the cracker will gain access to your system, and it is also easy to decrypt the encoded credentials.
Please sign in to leave a comment.
Comments
1 comment