How to view streams via JSON api without adding username/pw to http request

devastator

Getting the hang of it
Joined
May 22, 2015
Messages
169
Reaction score
28
Location
Belgium
Hi,

I'm looking into the JSON api.

Is there a way to retrieve the video stream from a camera without adding the username & password in plain text to the http request ?

Br,
Devastator
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,681
Reaction score
14,043
Location
USA
If you use the JSON API's login command to get a session, you can include the session as an outgoing cookie named "session" or as a URL parameter named "session". It won't require sending the un/pw in plain text.

Alternatively you can whitelist certain IP addresses in the web server to give them automatic admin access.

Or you could use an HTTPS proxy server to make sure that everything touching the network is encrypted, if your concern is someone sniffing your credentials out of your web requests.
 

devastator

Getting the hang of it
Joined
May 22, 2015
Messages
169
Reaction score
28
Location
Belgium
Thx !

Want to check how hard it would be to view BI on a Android Wear device.
 
Top