当我尝试使用oauth进行任何类型的授权时,出现400错误。 我尝试了不同的浏览器和不同的代码实现,但仍然失败。 所以我从Github上的Levelup教程库回复了一个简单的应用程序,并且在从api插入密钥后,我仍然收到400错误 API参数: 授权重定向URI - http:// localhost:3000 / _oauth / google?close 授权的JavaScript起源: http:// localhost:3000 当我从git安装示例Meteor App时,这是第一部分:
这里是第二部分,当我插入谷歌Api凭据,并得到一个错误:
I get an 400 error when I try to do any kind of authorization using oauth. I tried different browsers and different code implementations, but still failed. So I cloned a simple app from Levelup tutorial repo on Github, and after inserting secret key from api's I'm still getting 400 error API parameters: Authorized redirect URIs - http://localhost:3000/_oauth/google?close Authorized JavaScript origins: http://localhost:3000 Here's first part when I'm installing example Meteor App from git:
here's second part when I'm inserting google Api credentials and got an error:
最满意答案
所以经过几天的谷歌搜索,检查等......我在YouTube上观看了一段旧视频,并看到一位导师使用了Authorized redirect URIs而没有结束?close 正确的授权重定向URI - http:// localhost:3000 / _oauth / google 并且我使用了不正确的http:// localhost:3000 / _oauth / google?close
So after a few days of googling, checking and so on... I watched an old video on youtube, and saw that a tutor used Authorized redirect URIs without ending ?close Correct Authorized redirect URIs - http://localhost:3000/_oauth/google And I used incorrect http://localhost:3000/_oauth/google?close
更多推荐
发布评论