# Authenticate users problem

**URL:** <https://community.wowza.com/t/authenticate-users-problem/43336>\
**Category:** Wowza Streaming Engine\
**Created:** [July 4, 2014, 11:39pm UTC](https://community.wowza.com/t/authenticate-users-problem/43336 "2014-07-04T23:39:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miodrag\_Bogdanovic](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Miodrag\_Bogdanovic](https://community.wowza.com/u/Miodrag_Bogdanovic)\
**Post date:** [July 4, 2014, 11:39pm UTC](https://community.wowza.com/t/authenticate-users-problem/43336/1 "2014-07-04T23:39:04Z")

</div>

I installed Wowza Streaming Engine and I want only users with right username i password to see video. I’m trying ModuleOnConnectAuthenticate2. I installed the module, added required settings, create connect.password usernames and passwords. I use rtmp url:

rtmp://[wowza-ip]:1935/vod/mp4:sample.mp4

According to your tutorial [https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2) I have to use this rtmp url rtmp://[wowza-ip]:1935/live/?user1&pass1. But how, where shall I put this code.

Maybe I must accomplish this on some other way?

And all your examples are with live application, can I use authentication on vod application?

I’m desperate. Any help would be appreciate.

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [July 7, 2014, 8:54am UTC](https://community.wowza.com/t/authenticate-users-problem/43336/2 "2014-07-07T08:54:39Z")

</div>

Hi,

The module ModuleOnConnectAuthenticate2 should work fine for what you want to achieve. A quick test using the built in VOD app and sample.mp4 would be to use:

```auto
rtmp://[WOWZA-IP]:1935/vod/?username&password/mp4:sample.mp4

```

So long as you have added the moduleOnConnectAuthenticate module (note: using the com.wowza.wms.plugin.collection.module.ModuleOnConnectAuthenticate **2** class), added at least the rtmpAuthenticateFile property and created the password file as [outlined here](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2) you should be good to go.

Paul
