# authentication with external authentication systems not working

**URL:** <https://community.wowza.com/t/authentication-with-external-authentication-systems-not-working/47741>\
**Category:** Wowza Streaming Engine\
**Created:** [November 23, 2016, 1:44am UTC](https://community.wowza.com/t/authentication-with-external-authentication-systems-not-working/47741 "2016-11-23T01:44:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grzegorz\_unknown](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@Grzegorz\_unknown](https://community.wowza.com/u/Grzegorz_unknown)\
**Post date:** [November 23, 2016, 1:44am UTC](https://community.wowza.com/t/authentication-with-external-authentication-systems-not-working/47741/1 "2016-11-23T01:44:32Z")

</div>

Hello,

I am trying to do a simple authentication with external service. I used this tutorial: [https://www.wowza.com/docs/how-to-integrate-wowza-user-authentication-with-external-authentication-systems-modulertmpauthenticate](https://www.wowza.com/docs/how-to-integrate-wowza-user-authentication-with-external-authentication-systems-modulertmpauthenticate)

But my code not work. no matter whether the login and the password is correct or not, I have always connect.

My Code:

```auto
public class RTMPAuth extends AuthenticateUsernamePasswordProviderBase {
	@Override
	public String getPassword(String username) {
		// TODO Auto-generated method stub
		//return "bb1a192513ac276d";
		return "fdgfdgdf";
//no matter what return, always accepts stream
	}
	@Override
	public boolean userExists(String username) {
		// TODO Auto-generated method stub
		return false;
	}
}

```

Application.xml

```auto
	<Modules>
			<Module>
				<Name>base</Name>
				<Description>Base</Description>
				<Class>com.wowza.wms.module.ModuleCore</Class>
			</Module>
			<Module>
				<Name>logging</Name>
				<Description>Client Logging</Description>
				<Class>com.wowza.wms.module.ModuleClientLogging</Class>
			</Module>
			<Module>
				<Name>flvplayback</Name>
				<Description>FLVPlayback</Description>
				<Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
			</Module>
			<Module>
				<Name>ModuleRTMPAuth</Name>
				<Description>vcvccx</Description>
				<Class>pl.fotka.wowza.RTMPAuth</Class>
			</Module>
			<Module>
				<Name>ModuleCoreSecurity</Name>
				<Description>Core Security Module for Applications</Description>
				<Class>com.wowza.wms.security.ModuleCoreSecurity</Class>
			</Module>
		</Modules>
<Properties>
			<Property>
				<Name>pushPublishMapPath</Name>
				<Value>${com.wowza.wms.context.VHostConfigHome}/conf/${com.wowza.wms.context.Application}/PushPublishMap.txt</Value>
				<Type>String</Type>
			</Property>
			<Property>
				<Name>usernamePasswordProviderClass</Name>
				<Value>pl.fotka.wowza.RTMPAuth</Value>
				<Type>String</Type>
			</Property>
		</Properties>

```

Why, when I use this line in getPassword, connect not rejected.

```auto
	this.client.rejectConnection();

```

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [December 29, 2016, 10:00pm UTC](https://community.wowza.com/t/authentication-with-external-authentication-systems-not-working/47741/2 "2016-12-29T22:00:33Z")

</div>

Hi,

Please try testing your custom auth module without ModuleCoreSecurity configured on the same application and see if you get the same issues.

Michelle
