powered by Jive Software

Openfire 3.8.2 provider.auth.className is not working for smack api login auth


I am using Openfire 3.8.2. We want to use special check of authentication in addition to org.jivesoftware.openfire.auth.DefaultAuthProvider. So I have changed the provider.auth.className to our new class “xxx.yyyy.CustomAuthProvider” which extends DefaultAuthProvider.

This works perfectly fine though login using localhost:9090.

But if I use smack api to login, it is authenticatiing, but not using our CustomAuthProvider. This is the issue.

We have java client which uses smack api to connect to openfire.

So how to force to use CustomAuthProvider in case of smack api calls for login?

Please help… it is urgent.

Even I have tried to give in operfire.xml with following tags


Still no use.

Note here that I cant use HybridAuthProvider as DefaultAuthProvider auth check will be done based on our special logic in CustomAuthProvider.

Solved by creating new property