【发布时间】:2013-07-31 02:27:54
【问题描述】:
我正在尝试将 Meteor 应用设置为使用 Google 登录, 这是我在 /server/config.js 文件中的设置
Accounts.loginServiceConfiguration.remove({
service: "google"
});
Accounts.loginServiceConfiguration.insert({
service: "google",
clientId: "XXXXXXX",
secret: "XXXXXX"
});
我在 google 上的设置指向 localhost:3000 我在我的流星应用上安装了 accounts-ui 和 accounts-google。
我在我的应用主页上看到了谷歌登录按钮,但是当我点击它时,我得到:
Error: redirect_uri_mismatch The redirect URI in the request:
http://localhost:3000/_oauth/google?close
did not match a registered redirect URI
【问题讨论】: