Camera control script (token)
Posted: Wed Dec 14, 2016 12:42 am
I've seen cameras that let you just add the username and password on the cgi POST etc... but I've come across something different...
The camera I'm working with, you send a PUT request with a login command and receive back a token (application octetstream or JSON). You then supply this token on all future commands, and it expires, etc..
Is there any native support for this type of camera control (specifically PTZ controls)? Do any of the supplied scripts allow this "authenticate once and keep the token to use on each command"? I can see scope issues depending on how zoneminder implements this type of thing....
A "well known camera mfg" was kind enough to let me see the not-publicly-available API, so I'd really like to implement it unless this two-step authentication isn't really possible...
The camera I'm working with, you send a PUT request with a login command and receive back a token (application octetstream or JSON). You then supply this token on all future commands, and it expires, etc..
Is there any native support for this type of camera control (specifically PTZ controls)? Do any of the supplied scripts allow this "authenticate once and keep the token to use on each command"? I can see scope issues depending on how zoneminder implements this type of thing....
A "well known camera mfg" was kind enough to let me see the not-publicly-available API, so I'd really like to implement it unless this two-step authentication isn't really possible...