bnoguchi/everyauth — Issue #93: Redirect path looses authentication tokens
Author: tommedema
Created: 2011-10-08 18:43:56+00:00
State: open

I'm trying to authenticate using facebook. My situation is explained in great detail here:
http://stackoverflow.com/questions/7695715/performing-authorized-through-facebook-rest-requests-to-my-node-js-server-on-a

I've decided to use a ChildBrowser to login and then detect what authentication token was given on a successful login by parsing it from the callback URL. This is explained here:
http://www.mobiledevelopersolutions.com/home/start/twominutetutorials/tmt5p1

Unfortunately, everyauth forces the use of a redirection path as set in:
https://github.com/bnoguchi/everyauth/blob/master/lib/modules/oauth2.js#L203

This makes it impossible for me to inform my application with an authentication token through the callback URL's query string.

I assume this case has not been thought of. Unfortunately it's a must to get a PhoneGap application working with everyauth.

What I need is to set a redirection URL within the authentication success/failure callbacks, so that I can pass tokens and session data to the URL.