Phonegap + ChildBrowser + PHP CAS library on external site
===

Im making a phonegap app to Android. The app should use a CAS authentication.

At the moment i have a page which is at address: "www.mysite.com" and that page automatically redirects to CAS server authentication page, when i login to that page, the CAS redirects me to the page that i left from, in this case "www.mysite.com". 

After login i can show the users name that just logged in with CAS php library and a function thats built in there.


Question: when i open www.mysite.com in childbrowser in my phonegap app, after this "loop" can i somehow transfer info from mysite.com to my phonegap app, in this case the username.

The ideal scenario would be: open app and push login button, childbrowser pops up and you login in, phonegap app receives the username and the childbrowser closes.

Any tips are welcome, thanks in advance :)
