oauth-io / oauth-phonegap

OAuth.io plugin for Apache Cordova/PhoneGap
195 stars 69 forks source link

Added plugin to Steroids/AppGyver => OAuth.popup problem #45

Open massanu opened 9 years ago

massanu commented 9 years ago

Hi,

I added the plugin to an appgyver/steroids application

When I do a Oauth.getVersion() it returns me the version correctly

Then I do a Oauth.initialize('') with the facebook key But when i call the Oauth.popup('facebook' function I got a : "undefined is not a function" (in the interface I seen a very fast popup opening and closing blink)

I tried for several days to google and find a reason, I have no idea what's happening

Thanks for helping

massanu commented 9 years ago

I can see quicky that the popup is trying to open an Url begining with : https://auth.io/oauth/facebo..

massanu commented 9 years ago

Ok I continued to investigate, I finally fixed the undefined issue but now, the window.open part of the code is run Then the setInterval begin, but the popup open and close immediately

I read that the issue could be the access origin, but it is set to * (star)

So I am really blocked now, i have already spent 4 days to fix this, I dont know what to do anymore

angelxmoreno commented 8 years ago

I do a Oauth.initialize('') with the facebook key. That should not be your Facebook key. It should be your OAuth.io public key