Need help in accessing authorization token

In my application, On launching a application URL user is redirected to Identity server URL, where he need to provide user credentials. On successful login user is redirected to application URL, and token gets updated every two minutes. Can any one help me to automate this process. In SoapUI, I was able to use implicit grant and automate script function to pass username and password and set refresh interval to 110 sec.