-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: The popup was closed #93
Comments
Hi, it looks like it's not opening the popup from a user action (click action...). can you check #86 (comment) ? btw, if you don't want to change the library you can use Also, if you did not do it yet you have to add |
Thanks. Just as a test, I updated to the latest oauth-js minified script, but even the bog standard login doesn't seem to work: https://steampunkjunkies.net/ (click the "person" icon near the top). This is using the old method (i.e oauth.io). Maybe I have something wrong here?
My full JS script can be seen here: https://steampunkjunkies.net/2017/js/login.js? I get the popup showing, but it them closes right away with the Thanks :) |
Hum, i have no problem to connect on chrome / firefox / safari, macos versions (i have no linux / windows machines available for a while). What browser / os / versions do you use and did you test on another ? |
Mmm this is very weird! I tried it on my Mac, and it works fine. Tried it on IE Edge, Chrome and Safari, and all fine. FF however just doesn't want to play ball. I've cleared my cache, and even tried it in a "Private Window" (this didn't work though, but maybe because you can't store cookies / localStorage in a private session?) I've even tried rebooting Firefox to see if that helped, but I still get the same issue. Odd :/ |
So it's about firefox on mac ? Can you tell me ff version and if you have modules installed ? (you can also try to disable modules to see if it's from that). Tried on mac / ff 50.1 without any module |
Hi, OK, so this is really weird! I disabled all of my add-ons in FF, and it then worked. So I went through and enabled/disabled them, until I found the one causing the issue: https://addons.mozilla.org/en-GB/firefox/addon/grammarly-1/ I'm a bit confused as to why it would be causing an issue though! |
Hi, Mmmm maybe its not that causing it. Now I have the daemon setup on the server, I'm pointing to that. An example URL: https://steampunkjunkies.net/cgi-bin/page.cgi?test=1 (only that URL will use the new code for now) If I test it in IE, Edge or Chrome, it works fine. As soon as I try it in FF it does the same thing (the popup has closed). That is will all of the add-ons disabled, and FF restarted. Very odd issue :/ |
Yeah - there must be something up. On this page: In every browser, I just get a popup opening and then instantly closing. Here is a screencast I took: I tried stepping through it to see the error message coming up, but it opens and closes so fast, I can't see anything. The annoying part is that even in Firebug nothing comes up, as its a new popup |
Looking at the console, i get the error "Error: Origin "https://steampunkjunkies.net/cgi-bin/page.cgi?test=1" does not match any registered domain/url on oauth.steampunkjunkies.net" Did you add the domain on your app on oauthd admin ? |
Hum not sure what happened but it works now (cache?) The error was in the ff console, nothing special. |
Having installed grammarly this does not change and still connects me |
Mmm really? Doesn't work for me :/ In a private window, I logged in with FB, then it came back with our custom error popup:
(from login2.js, with a fail()) I still can't seem to spot anything going on the FF console (it only seems to scope the normal page, and ignore the popup - even with "persistent" enabled)
Yeah, I guess that was a false positive. Not sure why it started working after disabling that, but now it doesn't help if I disable and reboot. Odd one! |
In a private window fb was failing the request https://graph.facebook.com/me?access_token=xxxx because of this https://support.mozilla.org/en-US/kb/tracking-protection-pbm but no problem with twitter or the protection disabled |
Ahhhh got it! There must have been a dud cookie in there. I cleared out my cookies, and now it works for me :) Thanks for sticking at it! |
Hi,
I'm currently setting up a local instance of the oauthd daemon. I've got the daemon booting up, and have configured the social media accounts. In the library that gets included, I changed:
oauthd_url:"https://oauth.io"
to:
oauthd_url:"https://oauth.mydomain.com" (where the sub-domain is)
I then reloaded my page, and tried to login. The popup comes up ok (no errors), but then the window just closes. In Firebug, I get:
I seem to remember reading that if you access it from another domain (like I do, on my dev site), then you sometimes have to delete the app from Facebooks end, to stop it having issues. So I did that, but still no joy :/
Any ideas?
Thanks!
Andy
The text was updated successfully, but these errors were encountered: