# User Authentication

**URL:** https://community.wowza.com/t/user-authentication/111
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [May 6, 2007, 11:35pm UTC](https://community.wowza.com/t/user-authentication/111 "2007-05-06T23:35:08Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)
#### Post date: [May 6, 2007, 11:35pm UTC](https://community.wowza.com/t/user-authentication/111/1 "2007-05-06T23:35:08Z")

</div>

[https://www.wowza.com/docs/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)

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [January 4, 2010, 4:21am UTC](https://community.wowza.com/t/user-authentication/111/2 "2010-01-04T04:21:37Z")

</div>

Take a look at the server-side API. There are several variations of the method IClient.rejectConnection that will send back the proper error status.

Charlie

---

<div class="post-metadata">

### Author: ![Aditya\_Goyal](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Aditya\_Goyal](https://community.wowza.com/u/Aditya_Goyal)
#### Post date: [January 4, 2010, 8:47am UTC](https://community.wowza.com/t/user-authentication/111/3 "2010-01-04T08:47:11Z")

</div>

Hi,

is there a way to pass a parameter back to the client which can be used to detect the reason for disconnection?

i would love to be able to tell my client if his connection was rejected due to authentication error / if it was rejected by some other reason (i am using other server side modules too like limiting maximum number of connections). I was hoping to find a way to return a parameter to the client from the onConnect method … when the connection is rejected.

Any help in this direction would be greatly appreciated.

(I am a veteran at java, rookie at wowza and novice at best at action script)

thanks,

Addy

---

<div class="post-metadata">

### Author: ![Omu\_Omuleanu](https://avatars.discourse-cdn.com/v4/letter/o/958977/32.png) [@Omu\_Omuleanu](https://community.wowza.com/u/Omu_Omuleanu)
#### Post date: [January 12, 2010, 11:22am UTC](https://community.wowza.com/t/user-authentication/111/4 "2010-01-12T11:22:36Z")

</div>

can I just call a client Method (which is defined inside the client CustomNetConnection class) inside the onConnect so I would tell the client the reason of rejection/acceptance ?

---

<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: [January 12, 2010, 3:28pm UTC](https://community.wowza.com/t/user-authentication/111/5 "2010-01-12T15:28:05Z")

</div>

omuleanu,

See this post for an example:

[https://www.wowza.com/forums/showthread.php?t=6875](https://www.wowza.com/forums/showthread.php?t=6875)

```auto
sendClientOnStatusError(client, "NetStream.Play.Failed", "The client IP was rejected");

```

Richard

---

<div class="post-metadata">

### Author: ![Aditya\_Goyal](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Aditya\_Goyal](https://community.wowza.com/u/Aditya_Goyal)
#### Post date: [January 4, 2010, 9:30am UTC](https://community.wowza.com/t/user-authentication/111/6 "2010-01-04T09:30:50Z")

</div>

I stumbled upon this method while digesting the wowza apis… am I moving in the right direction? 😕

---

<div class="post-metadata">

### Author: ![Aditya\_Goyal](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Aditya\_Goyal](https://community.wowza.com/u/Aditya_Goyal)
#### Post date: [January 4, 2010, 9:33am UTC](https://community.wowza.com/t/user-authentication/111/7 "2010-01-04T09:33:57Z")

</div>

[https://www.wowza.com/forums/showthread.php?t=7051](https://www.wowza.com/forums/showthread.php?t=7051)

on the above thread Charlie has used the piece of code sendStreamOnStatusError(stream, “NetStream.Play.Failed”, "Access denied: "+streamName);

which looks like some way of telling the client “ACCESS DENIED” … am hoping to find something similar… but inside the onConnect method. In charlie’s code the play method has been overridden.

Help!!

thanks.

Addy

---

<div class="post-metadata">

### Author: ![Aditya\_Goyal](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Aditya\_Goyal](https://community.wowza.com/u/Aditya_Goyal)
#### Post date: [January 12, 2010, 8:52pm UTC](https://community.wowza.com/t/user-authentication/111/8 "2010-01-12T20:52:27Z")

</div>

Thanks!! a ton!!

---

<div class="post-metadata">

### Author: ![Ian\_Beyer](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@Ian\_Beyer](https://community.wowza.com/u/Ian_Beyer)
#### Post date: [September 12, 2010, 10:15am UTC](https://community.wowza.com/t/user-authentication/111/9 "2010-09-12T10:15:41Z")

</div>

That sounds like a job for a content management platform such as Drupal or PHPNuke.

---

<div class="post-metadata">

### Author: ![Ian\_Beyer](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@Ian\_Beyer](https://community.wowza.com/u/Ian_Beyer)
#### Post date: [September 12, 2010, 10:35am UTC](https://community.wowza.com/t/user-authentication/111/10 "2010-09-12T10:35:56Z")

</div>

I’d imagine so, if you can query the user table in the CMS database.

---

<div class="post-metadata">

### Author: ![John\_West](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@John\_West](https://community.wowza.com/u/John_West)
#### Post date: [September 12, 2010, 11:33am UTC](https://community.wowza.com/t/user-authentication/111/11 "2010-09-12T11:33:38Z")

</div>

Hi,

Someone may reply here on the forums and offer to handle your project.

If not, if you need a list of independent consultants who may be willing to bid on your task, please send an email to me at: sales -at- WowzaMedia -dot- com.

Yours,

John West

---

<div class="post-metadata">

### Author: ![george.mikal\_mikal](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@george.mikal\_mikal](https://community.wowza.com/u/george.mikal_mikal)
#### Post date: [April 16, 2010, 3:52am UTC](https://community.wowza.com/t/user-authentication/111/12 "2010-04-16T03:52:55Z")

</div>

thanks rrlanham for sharing link here…use full for me too

---

<div class="post-metadata">

### Author: ![Andrew\_Stewrt](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@Andrew\_Stewrt](https://community.wowza.com/u/Andrew_Stewrt)
#### Post date: [April 30, 2010, 3:32am UTC](https://community.wowza.com/t/user-authentication/111/13 "2010-04-30T03:32:39Z")

</div>

> omuleanu,
> 
> See this post for an example:
> 
> [https://www.wowza.com/forums/showthread.php?t=6875](https://www.wowza.com/forums/showthread.php?t=6875)
> 
> ```auto
> sendClientOnStatusError(client, "NetStream.Play.Failed", "The client IP was rejected");
> 
> ```
> 
> Richard

Thanks! Helped a lot.

---

<div class="post-metadata">

### Author: ![gary\_goodger](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@gary\_goodger](https://community.wowza.com/u/gary_goodger)
#### Post date: [September 12, 2010, 3:43am UTC](https://community.wowza.com/t/user-authentication/111/14 "2010-09-12T03:43:42Z")

</div>

Hi,

I want to add SQL user authentication to my membership website.

Is there anyone who could assist me? On here, email or via msn?

---

<div class="post-metadata">

### Author: ![gary\_goodger](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@gary\_goodger](https://community.wowza.com/u/gary_goodger)
#### Post date: [September 12, 2010, 8:30am UTC](https://community.wowza.com/t/user-authentication/111/15 "2010-09-12T08:30:33Z")

</div>

> That sounds like a job for a content management platform such as Drupal or PHPNuke.

Hi mate,

I run Amember, its similar to PHPnuke and should work in the same way database wise.

Would this script work with it?

---

<div class="post-metadata">

### Author: ![gary\_goodger](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@gary\_goodger](https://community.wowza.com/u/gary_goodger)
#### Post date: [September 12, 2010, 8:55am UTC](https://community.wowza.com/t/user-authentication/111/16 "2010-09-12T08:55:18Z")

</div>

well currently I have icecast linking off the database and it works fine.

Now I need to find someone willing to help me install flash/wowza/authentication as I cant even get flash installed on my servers!

Tried both CentOS and Debian :(!!

---

<div class="post-metadata">

### Author: ![gary\_goodger](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@gary\_goodger](https://community.wowza.com/u/gary_goodger)
#### Post date: [September 12, 2010, 9:46am UTC](https://community.wowza.com/t/user-authentication/111/17 "2010-09-12T09:46:53Z")

</div>

I have emailed you John Thanks 🙂
