Reuse sessions from a shared Database for Authentication

I am a newbie to Openfire. I have recently deployed OpenFire on my server with custom database (for another web application) as per the documentation. The Openfire server uses authentication and users from this database. I have a client that logs on to the web application which returns the users session after login to the web app. I want to reuse this session for Openfire authentication. Is there a community plugin or configuration option to achieve this?