# publish.password and Actionscript

**URL:** <https://community.wowza.com/t/publish-password-and-actionscript/41115>\
**Category:** Wowza Streaming Engine\
**Created:** [September 3, 2013, 12:25pm UTC](https://community.wowza.com/t/publish-password-and-actionscript/41115 "2013-09-03T12:25:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Stimac](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@Ivan\_Stimac](https://community.wowza.com/u/Ivan_Stimac)\
**Post date:** [September 3, 2013, 12:25pm UTC](https://community.wowza.com/t/publish-password-and-actionscript/41115/1 "2013-09-03T12:25:02Z")

</div>

Hi,

Can anyone please help me with sending publish.password from AS3? I have wowza server with configured publish.password. When i connect from Adobe Flash Media Live Encoder 3.2 it prompts me for username and password. And after that, it works fine.

How I can do this from action script? I got error: NetStream.Publish.Failed (Not authorized to publish).

Actionscript:

nc = new NetConnection();

nc.connect(rtmpUrl, myUsername, myPassword); \<\< i guess this is ok for connect.password, but not for publish.password

…

…

nsPublish = new NetStream(nc);

nsPublish.publish(streamName); \<\< this one gives me error “NetStream.Publish.Failed (Not authorized to publish)”

Thank you and best regards,

Ivan

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [September 3, 2013, 9:34pm UTC](https://community.wowza.com/t/publish-password-and-actionscript/41115/2 "2013-09-03T21:34:47Z")

</div>

RTMP authentication is not supported in Flash applications. [Here is an alternative](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2)

Richard

---

<div class="post-metadata">

**Author:** ![Ivan\_Stimac](https://avatars.discourse-cdn.com/v4/letter/i/3e96dc/32.png) [@Ivan\_Stimac](https://community.wowza.com/u/Ivan_Stimac)\
**Post date:** [September 3, 2013, 10:18pm UTC](https://community.wowza.com/t/publish-password-and-actionscript/41115/3 "2013-09-03T22:18:56Z")

</div>

Hi Richard,

Thank you very much for your answer.
