Search code examples
wowza

Wowza Token Validation


I'm trying to use Wowza as a Live Video server for a new feature in an existing app, and I need it to serve feeds only to authenticated users.

My idea is to send the client token to the Wowza server, and make Wowza request to the validation server if that token is valid.

  • Is there any existing module to do this?
  • If not, is it posible to do it creating a new module? (that is, is it possible for the Wowza ModuleBase.onConnect() to "wait" for another http connection to check if the token is valid)

Regards


Solution

  • You can create your own module based on the Wowza Server Side API, the thing that Wrench does is exactly what you mentioned: doing external calls and checks in the onConnect. However be careful, as onConnect (despite its name) is only triggered for RTMP clients, there are some other methods, like onHttpSessionCreate, which you also need to hook to if you want to authenticate non-flash clients, like Android / iPhone guys coming on HTTP based streaming technologies. I can answer further questions regarding these technical details.