Skip to content
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

amazon login fail ? #63

Closed
xiaooquanwu opened this issue Feb 24, 2017 · 11 comments
Closed

amazon login fail ? #63

xiaooquanwu opened this issue Feb 24, 2017 · 11 comments

Comments

@xiaooquanwu
Copy link

“At the first time, you need to authorize the application.

Connect ReSpeaker's Access Point, go to http://192.168.100.1:3000 and tt will redirect you to Amazon to sign up or login in.”

do anyone success for that step ?

@alexeinz
Copy link

see this
respeaker/Alexa#8 (comment)
basically, the documentation is wrong for the ipk
1.to get authenticated, you need to create alexa device and whitelist the internal IP for your device
2.the client and secret needs to be replaced in the /usr/bin/alexa because the data there is a dev left over info....
3.I suggest to create alexa.json in /etc/config because it doesnt create it by itself ( just blank file )

@xiaooquanwu
Copy link
Author

you need to create alexa device and whitelist the internal IP for your device ?

Do not Understand ,Can you tell me how to do ?

@xiaooquanwu
Copy link
Author

For ReSpeaker ,the Web Setting On avs is that:
Allowed Origins: http://192.168.100.1:3000
Allowed Return URLs: http://192.168.100.1:3000/authresponse
right?but still fail

@alexeinz
Copy link

whats the ip of your respeaker?
if you joined it to your local network it will have dhcp assigned ip
whitelist that

@xiaooquanwu
Copy link
Author

xiaooquanwu commented Feb 24, 2017

internet<-->Route<-->(WAN:10.1.1.287)ReSpeaker(LAN:192.168.100.1)<-->Phone(192.168.100.2)

The phone access the URI 192.168.100.1:3000

@xiaooquanwu
Copy link
Author

The Error URL is
https://na.account.amazon.com/ap/oa?appActionToken=qlLKAGlKO9yUm3D9cutHTDUdfdYj3D&appAction=actionField&savedParameters=eyJwIjoiS2FGMVJURXY4RW5RZ3Y1d21FVFlTL2VBSDlkbFY3RzhXb3JyUVFrVDFkRHA3ZkdneTZMeFRVZ0ZwOTZJUVR0STBpOE9leTZ0dTNMZC9kejRFalRCaFNTVHpyTDFVVEpNMTUwMWlhQ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CMytPc0ZFSTRHTXFTUExXN0dtUXZpV2pjOXliST0iLCJldiI6MSwiaHYiOjF9&aToken=Atza%7CIwEBIPDt9rFXCZZRLDAf67H-jIdFTyQi_cFr2TtfP5Ebx1OFpsApEd7zAC-cCBywvRFzgeha2mgWp-dwI4kyPZSm4gcOanGoJxMblplKuaCR7qinfIyOdd8Afx0vObkVTjn8XfdzE-PJruLg_rAqkIU6TQyW6Qejh9eV6CJr8atdtGkyT3FZeQw48dvfuEgQ5p0oOpPMiJ81_yHw3Ix_Ca2Xq_Frs_vbsgBpIUDs7G0TnEIoWuV5bGhV8qRzpDy6me5UM-P2VpZU4mddpiMyU7vIupZ1yyeY8fYLVEQ1ssMvzyAxGMC_gp4VrBCb-JHyq-8bolZdu7_m-8tc3yf8WN4-0Tartbgiv_xL1mXom_QgwsYsNgXeYDiPSbtKPpU3H9VYJiaey5HOstBOtyP3bMDnUYYr&openid.pape.auth_policies=http%3A%2F%2Fschemas.openid.net%2Fpape%2Fpolicies%2F2007%2F06%2Fnone&language=zh_CN&consentApproved=

@xiaooquanwu
Copy link
Author

I try
Allowed Origins: http://10.1.1.287:3000
Allowed Return URLs: http://10.1.1.287:3000/authresponse
is OK ,but the ip is not static ?

@xiongyihui
Copy link
Contributor

Yes, the IP is not static. It will work if it's on your allowed origins list.

By the way, if you just want to use Alexa, you don't have to setup a alexa developer account, you will be able to use it when you login with your amazon account in via http://192.168.100.1:3000

The network connection should be:

ReSepeaker (two IP: 192.168.100.1 and IP from your router dhcp) <------> Your router <----> Internet
  |
  |
Your Computer or phone

Open http://192.168.100.1:3000 in your computer or phone

@ishotjr
Copy link

ishotjr commented Jul 17, 2017

I was able to get it working as @xiongyihui describes above - at first I tried to use the IP on my own network, which was not whitelisted, but by connecting directly and using http://192.168.100.1:3000/ I was able to get Alexa working as a service with my Amazon consumer account/without having to create a new device on my developer account. 😌

@KillingJacky
Copy link
Contributor

Will close this issue, please open a new issue if you have further questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants