Integrating openfire with our web application

We have installed openfire server and its working fine. The primary purpose of our usage is to integrate this server with our java web application. I have been searching for this in openfire site, and google but not understand how to do it.

We want to auto login the user from browser when the user is login into our site. ( we are using strophe.js)

How to do this? I have tried JDBCAuth provider and placed jar file in lib folder. However it worked for users who login into admin console. Users login from client (say pidgin) are not validated? How to implement this functionality?

Thanks,