# How do I pass onConnect params through an Edge / Origin setup

**URL:** <https://community.wowza.com/t/how-do-i-pass-onconnect-params-through-an-edge-origin-setup/43159>\
**Category:** Wowza Streaming Engine\
**Created:** [December 11, 2014, 3:28pm UTC](https://community.wowza.com/t/how-do-i-pass-onconnect-params-through-an-edge-origin-setup/43159 "2014-12-11T15:28:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Wallace1](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@Matthew\_Wallace1](https://community.wowza.com/u/Matthew_Wallace1)\
**Post date:** [December 11, 2014, 3:28pm UTC](https://community.wowza.com/t/how-do-i-pass-onconnect-params-through-an-edge-origin-setup/43159/1 "2014-12-11T15:28:55Z")

</div>

Hey all, I have a custom module that I’ve created and during onConnect I am passing 2 params so that I can authenticate the user. This worked great until I set up a live edge repeater.

I set up a basic live edge repeater and I’m pretty sure my security settings are setup in a way to pass the user connection just fine. I am able to connect to the origin via the edge but my onConnect params are coming through to the origin as null.

How do I pass my params through the edge to to the origin when the flash application connects.

thanks!:mad:😛

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [December 19, 2014, 7:33am UTC](https://community.wowza.com/t/how-do-i-pass-onconnect-params-through-an-edge-origin-setup/43159/2 "2014-12-19T07:33:14Z")

</div>

Hello there.

Wowza has a single connection per protocol per stream to the origin. For this reason there is no way (That I know of) to forward URL params from edge to origin, as it would not be useful.

An alternative would be for you to use [IMediaStreamNameAliasProvider](https://www.wowza.com/docs/how-to-use-the-imediastreamnamealiasprovider2-interface) using **appInstance.setRepeaterQueryString(……)**. Or the default QueryString property in Application.xml to do this:

```auto
<Repeater>
    <OriginURL></OriginURL>
    <QueryString><![CDATA[]]></QueryString>
</Repeater>
Ex: <QueryString><![CDATA[param1=value1&param2=value2]]></QueryString>

```

Take a look at this module as a reference:

[How to do user authentication for Flash RTMP client using JDBC connection to MySQL database](https://www.wowza.com/docs/how-to-do-user-authentication-for-flash-rtmp-client-using-jdbc-connection-to-mysql-database)

I hope this is helpful.

Kind regards,

Salvadore
