# Broadcaster - Viewer authentication and security in WebRTC Wowza streaming engine ?

**URL:** <https://community.wowza.com/t/broadcaster-viewer-authentication-and-security-in-webrtc-wowza-streaming-engine/53790>\
**Category:** Wowza Streaming Engine\
**Tags:** webrtc, security\
**Created:** [August 12, 2019, 3:52pm UTC](https://community.wowza.com/t/broadcaster-viewer-authentication-and-security-in-webrtc-wowza-streaming-engine/53790 "2019-08-12T15:52:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jithin\_Wilfred](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Jithin\_Wilfred](https://community.wowza.com/u/Jithin_Wilfred)\
**Post date:** [August 12, 2019, 3:52pm UTC](https://community.wowza.com/t/broadcaster-viewer-authentication-and-security-in-webrtc-wowza-streaming-engine/53790/1 "2019-08-12T15:52:48Z")

</div>

How to authenticate a broadcaster in publishing a stream and how to authenticate viewers to view only allowed streams.

---

<div class="post-metadata">

**Author:** ![Jithin\_Wilfred](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Jithin\_Wilfred](https://community.wowza.com/u/Jithin_Wilfred)\
**Post date:** [August 14, 2019, 5:22am UTC](https://community.wowza.com/t/broadcaster-viewer-authentication-and-security-in-webrtc-wowza-streaming-engine/53790/2 "2019-08-14T05:22:13Z")

</div>

Any updates guys… ??

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [August 14, 2019, 5:30pm UTC](https://community.wowza.com/t/broadcaster-viewer-authentication-and-security-in-webrtc-wowza-streaming-engine/53790/3 "2019-08-14T17:30:02Z")

</div>

Hi @Jithin Wilfred, I apologize for the delay. You have several options in our documentation depending on your workflow which I am not 100% sure of, so I’ll share a few different resources and hopefully one of them works for you.

1. The **OnConnectAuthenticate** module is a file-based username/password authentication method you can use with Flash applications that connect to Wowza Streaming Engine™ [media server software](https://www.wowza.com/products/streaming-engine).

[https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-netconnection-connect-onconnectauthenticate](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-netconnection-connect-onconnectauthenticate)

1. The **OnConnectAuthenticate2** module is a file-based username/password authentication method for use with Flash applications that connect to Wowza Streaming Engine™ [media server software](https://www.wowza.com/products/streaming-engine). It uses query parameters in the RTMP URL to connect to server software.

[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)

1. The **ModuleRefererValidate** module for Wowza Streaming Engine™ [media server software](https://www.wowza.com/products/streaming-engine) can be used to control access to your streams based on the referer domain.

[https://www.wowza.com/docs/how-to-control-access-to-your-application-by-checking-referer-domain-modulereferervalidate](https://www.wowza.com/docs/how-to-control-access-to-your-application-by-checking-referer-domain-modulereferervalidate)

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [August 14, 2019, 5:35pm UTC](https://community.wowza.com/t/broadcaster-viewer-authentication-and-security-in-webrtc-wowza-streaming-engine/53790/4 "2019-08-14T17:35:15Z")

</div>

For allowing only certain viewers to access the stream, we have several options as well in our docs, but using a security token is the most common. Viewers can only access the stream link if they permission through the security token “handshake”.

[https://www.wowza.com/docs/how-to-protect-streaming-using-securetoken-in-wowza-streaming-engine](https://www.wowza.com/docs/how-to-protect-streaming-using-securetoken-in-wowza-streaming-engine)

Honestly, this doc will provide you with all your options for both broadcast authentication and playback security.

[https://www.wowza.com/docs/security-options-in-wowza-streaming-engine#rtmp-and-rtsp-authentication](https://www.wowza.com/docs/security-options-in-wowza-streaming-engine#rtmp-and-rtsp-authentication)

---

<div class="post-metadata">

**Author:** ![Jithin\_Wilfred](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Jithin\_Wilfred](https://community.wowza.com/u/Jithin_Wilfred)\
**Post date:** [August 16, 2019, 3:42pm UTC](https://community.wowza.com/t/broadcaster-viewer-authentication-and-security-in-webrtc-wowza-streaming-engine/53790/5 "2019-08-16T15:42:49Z")

</div>

Is there any possible method to publish stream on **Wowza streaming cloud** with a web cam and web browser.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 4, 2019, 9:58pm UTC](https://community.wowza.com/t/broadcaster-viewer-authentication-and-security-in-webrtc-wowza-streaming-engine/53790/6 "2019-09-04T21:58:34Z")

</div>

No not at this time, sorry about that.
