I have an Adobe AIR/FLEX app packaged as a native installer application running on the desktop. From there, I need to do the following: a) stay in the "app:" application sandbox so I can load "file://" JPGs into my mx:HTML control b) authenticate with my server (CAKEPHP) to get a valid CAKEPHP Session Cookie, and c) securely GET/POST XHR requests from javascript.
Can I authenticate using something like OAUTH or Facebook Connect without losing the application sandbox? It seems if I redirect from my mx:HTML, I lose my local privileges.
Can I authenticate with my server using a different sandbox (remote?) and safely pass the Session Cookie to my application sandbox?
Are either of these methods safe against scripting attacks?