SSO with a Login Screen

Hi there I want to create a login screen which after a user has logged in I want to show the user a “portal” with multiple screen, of which one of the screens will be the Openfire chat. How would I go abouts passing the user’s credential to authenticate and the log the user into Openfire.

Sorry perhaps a newbie question.

Regards,

Justin