Temporary Key? in the Server's individual channel urls

Answered

Comments

7 comments

  • Avatar
    Evgeny Balashov

    Duration is related to the length for the download link. By default, it is will download 5 minutes (300 seconds).

    The temporary key works like a session: if the session is not active for about 30 minutes or so - it will expire and the link will not work anymore. If the session is always active, for example, the stream keeps going - the session will not expire and the link will work.

    The good thing about this temporary key is that it doesn't contain the password, so if the key is stolen - hacker won't be able to do much with it. All critical changes require the password.

    On the other hand, if the link is going to be public - we still recommend using only a user with limited access. 

     

    If you are interested in how this temporary link works (you can generate one yourself) - check 'For developers' section in web administration interface -> 'API testing tool' -> 'Calculating authentication hash' and 'URL-based authentication'

     

    BTW, what is the problem you are trying to solve with the temporary key? What are the requirements?

     

  • Avatar
    Jeff Jones

    I am attempting to display cameras in the ActionTiles control software for Samsung Smartthings. For whatever reason ActionTiles can't handle the user/password credential so it needs some kind of key built into the URL. However, it needs to be somewhat permanent so the end user doesn't have to go back and input a new URL into ActionTiles every so often.

  • Avatar
    Evgeny Balashov

    Is it possible to call a javascript function to generate the URL dynamically? Or generate them on the backend somehow?

  • Avatar
    Evgeny Balashov

    You can also try this format: http://username:password@serverIp:7001/... and check if ActionTiles support it.

  • Avatar
    Jeff Jones

    ActionTiles won't load the camera when using the http://username:password@serverIp:7001/ format.  That is why I was looking for another method and realized the Temporary Key worked, but wasn't sure if it would last.

  • Avatar
    Jeff Jones

    What are you talking about with the Javascript function?

  • Avatar
    Evgeny Balashov

    If you can place some code to generate temporary key dynamically somewhere - that would provide a reliable solution. This can be done using javascript in the browser, or on the backend.

    Authentication keys also expire if the server restarted for any reason, for example.

Please sign in to leave a comment.