-
Notifications
You must be signed in to change notification settings - Fork 17
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
?? SOLUTION to 122 (IE problem) ?? #123
Comments
(reference to #122) To just call it inline would most likely solve this, but I think inline JS is forbidden by our security headers. But we can also solve it in /static/forward.js. One of two solution should work:
This assumes the problem is that DomContentLoaded was already executed when that JS is interpreted which is a likely problem with IE. But that is what needs to be tested. Regardless, we can't rely on the current foward.js, as it is bound to happen sometimes that the event was fired before. I got burned by that browser behaviour in two different projects already, should've noticed it before :/ |
Javascript is not my mother tongue nor is RUST. Why don't POST the 'form' directly to the receiving url?Would be simple in Python using http://docs.python-requests.org/en/master/ | $ pip install requests |
Because you want the user to deliver the token via the browser, so that in the end he is directly on the page he tried to login to. I think you got the issue identified, and I'm pretty sure one of my two approaches will fix this. We just need someone to test it, which means running a patched broker and IE 11, if necessary in a VM. @stephank, might that maybe be easiest for you? |
Okay, I see. I'll be happy to test it (running several winboxes 7, 8, 10, can also test it on OSX, Tails/Tor (if I'm able to install Python3), Deb8-Jessy |
I just tried this on a Windows 7 VM with IE 11, downloaded from modern.ie, and it seems to work fine. Tried with the current public broker at broker.portier.io, and with current master branch. I also tested with a real, up-to-date Windows 10 machine we have at the office, and it works in both IE 11 and Edge there. So something else is up, but I'm not sure what. :/ |
@dickschrauwen Can you check if the public demo works for you, on the setup where you see the issue? It's at: https://portier-demo.herokuapp.com/ |
|
@dickschrauwen So the redirect only fails when you try to run the demo locally? I suppose both automatic logins are because you used a |
@stephank Yes, locally the redirect stil fails when i run it locally in IE / chrome is OK |
|
Okay, at the very least we know the event timing is not the problem. Maybe IE11 is blocking the redirect to localhost only? https://stackoverflow.com/questions/17415111/127-0-0-1-will-not-work-in-ie-11 suggests that there might be issues with the security model. If it were that, it'd be out of our hands. |
Anyway, i'm just going to migrate from Persona to Portier. Checked out Janrain and Stormpath but i dont like it |
I tried all 'solutions' in https://stackoverflow.com/questions/17415111/127-0-0-1-will-not-work-in-ie-11 . Didn't help.; forward/redirtect still fails in IE |
Modified forward.mustache
The text was updated successfully, but these errors were encountered: