# Secure Token 2 and SMIL files

**URL:** <https://community.wowza.com/t/secure-token-2-and-smil-files/47648>\
**Category:** Wowza Streaming Engine\
**Created:** [October 28, 2016, 8:05am UTC](https://community.wowza.com/t/secure-token-2-and-smil-files/47648 "2016-10-28T08:05:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolas\_Michaux](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@Nicolas\_Michaux](https://community.wowza.com/u/Nicolas_Michaux)\
**Post date:** [October 28, 2016, 8:05am UTC](https://community.wowza.com/t/secure-token-2-and-smil-files/47648/1 "2016-10-28T08:05:04Z")

</div>

Hi,

I’m implementing Secure Token 2 on our wowza server and everything is working fine, except for RTMP SMIL files : the links to the rtmp streams in the smil file don’t contain secure tokens and are rejected by the server.

I have read this thread [HDS Streaming with jwplayer.smil loses querystring parameters](http://community.wowza.com/t/-/39736), but the solution doesn’t work with secure token as the streams name are all different (and thus the tokens).

I think the cleaner solution shoud be to verify the secure token in HTTPProviderMediaList and generate correct token for each stream in smil file.

Is there an API/class to verify/generate secure tokens 2 in Wowza?

Thanks,

Nicolas

---

<div class="post-metadata">

**Author:** ![Jermaine\_Hemby](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jermaine\_Hemby](https://community.wowza.com/u/Jermaine_Hemby)\
**Post date:** [November 26, 2016, 7:12am UTC](https://community.wowza.com/t/secure-token-2-and-smil-files/47648/2 "2016-11-26T07:12:19Z")

</div>

Hello!

Thanks for contacting Wowza forums!

For secure tokens and RTMP, here is an article that explains how to do this. Can you review and let us know if this works for you?

[RTMP Secure Tokens](https://www.wowza.com/docs/how-to-protect-rtmp-streaming-using-securetoken-modulesecuretoken%28ModuleSecureToken%29)

Regards,

Jermaine

---

<div class="post-metadata">

**Author:** ![Nicolas\_Michaux](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@Nicolas\_Michaux](https://community.wowza.com/u/Nicolas_Michaux)\
**Post date:** [November 26, 2016, 11:57pm UTC](https://community.wowza.com/t/secure-token-2-and-smil-files/47648/3 "2016-11-26T23:57:47Z")

</div>

Hi,

Thank you for your answer, but I was speaking about Secure Token 2 (and not version 1).

Nevermind, I was able to write a “HTTPProviderMediaList” class using “SecureTokenHTTP” class and providing Securetoken2 protection for SMIL files.

Regards,

Nicolas
