question

shaqspeare avatar image
shaqspeare asked

proxy parent uri parameter missing

[On behalf of: Halycon Media] Hi guys, when I grant my app access to my amazon data in the popup window the redirect throws this JS error message over and over again on my page. We only have a self signed https certificate. Any idea what the problem is? Followed the instructions from http://login.amazon.com/website. Cheers Christian
login with amazon
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
Hi, thanks for contacting us. Would you mind sharing the URL where you are attempting to integrate so that we can take a look ourselves? If you do not want to post it in the forum, you can e-mail it to us at lwa-support@amazon.com
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
[On behalf of: Halycon Media] I just tried again and it is working. I did not changed anything, but it is working. Maybe a delay in the setup information on sellercentral? I am located in europe. So anyway, thanks for the reply, but it seems to fixed itself ;)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
Hi, glad it is working for you. There is a slight delay between when you modify your applications and when the information will be globally available. This should generally be a matter of seconds, but in some cases it may be a few minutes.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
[On behalf of: Developper Open...] Hi, I get this error of "proxy parent uri parameter missing" too, and despite waiting for about half an hour, I still can't get rid of it. I have a self signed ssl certificate and my return url is https://ecommerce-site.fr/prestashop/index.php?controller=authentication thanks for your attention.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
We had an operational issue slowing down the propagation of configuration changes for a couple hours before your post. We are currently working on preventing a recurrence of the increase propagation delay. I apologize for the inconvenience this caused you. I just went to https://ecommerce-site.fr/prestashop/index.php?controller=authentication and managed to get to the point where we were returning the access token back to your application successfully. Are you still facing integration issues?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
[On behalf of: Developper Open...] I get the error when amazon is trying to return the token to my app, after I successfully log in amazon, at that time i'm stuck on a blank window in the pop up where the url look like this : https://www.amazon.com/ap/oa?openid.assoc_handle=iba&aToken=*****... On my console I only get the error "proxy parent uri parameter missing" every second and neither the redirect_uri nor the return_url are called. I can join my script if you need it to help me, thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
[On behalf of: Developper Open...] After some more test, it appears that the script works fine when browsing on google chrome but returns the error when on mozilla firefox.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
Thanks for clarifying. We can reproduce the error in Firefox. We've tried troubleshooting the problem but have not been able to narrow down the root cause. Please try the following one at a time to help us troubleshoot: Hardcode the return_url and customer_id variables into your JavaScript and remove the AJAX call to obtain these values from your server. Move all JavaScript out of /prestashop/modules/loginwithamazon/js/loginwithamazon.js and hardcode them into the markup of the parent page (/prestashop/ index.php?controller=authentication&back=my-account). Use JQuery's click() instead of live() to process the LWA button's click event. Move all JavaScript out from your (function(d) { ... })(document) scopes to the global scope. Instead of using createElement('script'), hardcode the LWA JavaScript into the markup of the parent page. Instead of using $("form#create-account_form").before(), hardcode the LWA button HTML into the markup of the parent page. Copy the LWA integration onto a page with a URL with no query parameters (?controller=...&back=...). I apologize for the additional integration effort you are experiencing. I hope we can find the root cause after these troubleshooting steps.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
[On behalf of: Florent Fouchier] hi, I figured that the problem comes from the queries argument in the url since my script works fine in any other page finishing in ***.php. I can't really move the button and the script to another page since this is the authentication one, plus the rest of the site isn't secured with https. however, it works fine with any other browser ont this same page. Isn't there a way to make it works whatever the queries arguments from the incoming url on your side ? Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
Thanks for narrowing down the cause. This certainly does look like a bug. We are investigating the bug and planning on fixing the Login with Amazon SDK for JavaScript to allow its use on pages with query parameters. We'll update this thread when we make progress on it. Can you try POSTing to index.php with controller=authentication POST data instead of GETing with controller=authentication as a query parameter? If that won't work, you may have to fallback on redirecting to Amazon signin instead of opening Amazon signin in a popup. The details of redirecting to the Amazon signin endpoint ( https://www.amazon.com/ap/oa) can be found in the Website Developer Guide (pg 14 on the June 4 version).
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.