Automatic Login and direct access to the Files page

We have a front end which does the double authentication. The Front end is written in jsp. The username and password passed to this front end would be the username and password for the owncloud. I would like to automatically login without navigating through the login page, may be, by calling a script which takes me to the Files/ Applications page directly. How to achieve the same.

You probably want single sign on, which for ownCloud is an exclusive enterprise function: