【问题标题】:What domain should I whitelist to authenticate Alexa on Raspberry Pi?我应该将哪个域列入白名单以在 Raspberry Pi 上验证 Alexa?
【发布时间】:2021-08-22 18:32:29
【问题描述】:

我正在尝试使用 AlexaPI 在我的 Raspberry Pi Zero W 上安装 Alexa,但是当我尝试在 http://localhost:5050 进行身份验证时,出现“400 Bad Request”错误。它说:“您提供的重定向 URL 尚未被列入您的应用程序的白名单。”并在“请求详细信息”部分中给出:

client_id=amzn1.application-oa2-client.1428c05ba6ed4b8790faf98601f743d1&scope=alexa%3Aall&scope_data=%7B%22alexa%3Aall%22%3A+%7B%22productID%22%3A+%22A3DS27MW3BUU5H%22%2C+%22productInstanceAttributes%22%3A+%7B%22deviceSerialNumber%22%3A+%22e0a9599b09b88cab74600a17f4c568ae3171a65c18835ae3e1df5b395b60c4da%22%7D%7D%7D&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A5050%2Fcode

但是我应该将什么列入白名单? http://localhost:5050 已经被列入白名单。

【问题讨论】:

  • 老实说我不确定你做错了什么,但总的来说这很容易。我在我的 PI 上托管了很多服务。

标签: raspberry-pi alexa whitelist raspberry-pi-zero


【解决方案1】:

列入白名单的重定向网址应为http://localhost:5050/code,而不是http://localhost:5050

【讨论】:

  • 嗯,有问题。也许client_id?请注意,网址必须准确。因此,例如 http 和 https 是不同的。最好添加所有可能的排列。
猜你喜欢
  • 1970-01-01
  • 2014-05-08
  • 1970-01-01
  • 2018-04-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-11-09
相关资源
最近更新 更多