Wasim Mulla

Wasim Mulla

  • NA
  • 39
  • 1.1k

Amazon Alexa,Redirection problem after login from my website

Nov 16 2017 2:56 AM
When I click "Enable" for my skill from https://alexa.amazon.com I am redirected to my application login page, after entering email/password and successful authentication I am redirecting user to
 
https://pitangui.amazon.com/api/skill/link/M2SH60C21FLV91?vendorId=M2SH60C21FLV91&state=A2SAAEAEOlVnPYTaS9OqN_iQmxOIpEBkLSBUPLDHJGzHc_ALJ02fPLzMm9OYOMG9mpSuDVg3_O3fgpSE5iCfh3XCLBs0oTay3Eqr6CEXpU7eDf_11PeUJCk839z0cxc8djFlxbLUr_CINPUNtVoHfzpn3Ztwl4OE-2dcKmqLiza6C9cr7Ca8-8UmEdshagKsue4lYkyWFiFwx-Yg452QHIY0DpnG1rtbanQgW5MjgbTaR3-MPy7QBIodnF_SnbtXpWb69_R3HOlGHPoaJgIbi2yr1lc-fIJbJ8B8Zbzm0mMi2IocOg4fDrFlwQ6ZRUXzeWB6ZapbxfeO4UR3h8Cr3P9_efaRFFgD4NZPL3DkAdlSF2XlAmKIpg5xr3u25jt-vHZi50QWJYgZYLDCJFqrnDoGSVIwLGz1vKFnZCkAYm7ioJ_emq5JtkfBVQaxg2mH2_pcvadbE8DgufJCt0QkDMp94eyRbYKp2uKsdVZNuV_PwGdb1AFVQhzDqbiE0pyMfbjSpWjcTM8CAbdfSGsbxJ3ipcSV6LSjbokH1KP5vLAAVr5wQIRSDA&access_token=WFA0UWlxcTFCZVZnTmJmUmdldUF3dVFwdG1VSGM0aWJSODB1OUVkNTdUST06a2F1c2hhbEBuaWNoZXRlY2guaW46NjM2NDY0MzM2OTAwNzU3NjYy&token_type=Bearer
 
but it gives me JSON response
 
"{"httpRedirectLocation":"https://skills-store.amazon.com/api/skill/link/M2SH60C21FLV91?access_token=WFA0UWlxcTFCZVZnTmJmUmdldUF3dVFwdG1VSGM0aWJSODB1OUVkNTdUST06a2F1c2hhbEBuaWNoZXRlY2guaW46NjM2NDY0MzM2OTAwNzU3NjYy&state=A2SAAEAEOlVnPYTaS9OqN_iQmxOIpEBkLSBUPLDHJGzHc_ALJ02fPLzMm9OYOMG9mpSuDVg3_O3fgpSE5iCfh3XCLBs0oTay3Eqr6CEXpU7eDf_11PeUJCk839z0cxc8djFlxbLUr_CINPUNtVoHfzpn3Ztwl4OE-2dcKmqLiza6C9cr7Ca8-8UmEdshagKsue4lYkyWFiFwx-Yg452QHIY0DpnG1rtbanQgW5MjgbTaR3-MPy7QBIodnF_SnbtXpWb69_R3HOlGHPoaJgIbi2yr1lc-fIJbJ8B8Zbzm0mMi2IocOg4fDrFlwQ6ZRUXzeWB6ZapbxfeO4UR3h8Cr3P9_efaRFFgD4NZPL3DkAdlSF2XlAmKIpg5xr3u25jt-vHZi50QWJYgZYLDCJFqrnDoGSVIwLGz1vKFnZCkAYm7ioJ_emq5JtkfBVQaxg2mH2_pcvadbE8DgufJCt0QkDMp94eyRbYKp2uKsdVZNuV_PwGdb1AFVQhzDqbiE0pyMfbjSpWjcTM8CAbdfSGsbxJ3ipcSV6LSjbokH1KP5vLAAVr5wQIRSDA&token_type=Bearer"}"
 
and page stops, it does not enable and redirect back to alexa giving success message.
 
I have to manually copy-paste the url which I get in above json response, then only my account is linked.
 
Can anyone help why I am not directly redirect and getting the successfully linked page? Why I have to manually copy-paste the url?
 
Thanks in advance.

Answers (1)