07-26-2011 10:49 PM
I have an entire functioning client side only OAuth flow working on my desktop browser. My next step is to make that work in a PlayBook WebWorks app. I can make it to the twitter authorization page, but after I authenticate Twitter can't redirect me to to my page at local:///index.html
Is there another way to directly access WebWorks app files?
07-27-2011 01:05 PM
I believe something like the snippet below should work for you
window.location = window.location.origin + window.location.pathname.replace("oauth2callback.h
07-27-2011 01:32 PM
Sorry, I don't think I explained my problem well enough. My problem lies in the fact that Twitter wants to redirect me to http://index.html in favour of 'local://' even though I've explicitly stated local:///index.html is where I want to go.
I have this working on a local webserver using localhost, but that's ultimately over HTTP, is there a way to refer to a file in a WebWorks application with an http address?
07-27-2011 02:08 PM
07-27-2011 02:24 PM
Hi interfaSys, I do give a callbackUrl to twitter, but the problem is because that's a page in a local application, twitter doesn't want to redirect to it. I need some way of aliasing local files to HTTP addresses, like localhost on a desktop.
07-28-2011 12:09 AM - edited 07-28-2011 01:19 AM
08-14-2011 04:52 PM