Meteor Ouath2谷歌流星
我正在尝试使用该软件包连接到谷歌 我已经安装了2个软件包Meteor Ouath2谷歌流星,meteor,oauth,meteor-accounts,service-accounts,Meteor,Oauth,Meteor Accounts,Service Accounts,我正在尝试使用该软件包连接到谷歌 我已经安装了2个软件包 meteor add service-configuration meteor add accounts-google 这就是我的server/config.js文件的外观 ServiceConfiguration.configurations.upsert( { service: "google" }, { $set: { clientId: "xxxxxxxx", loginStyle: "p
meteor add service-configuration
meteor add accounts-google
这就是我的server/config.js
文件的外观
ServiceConfiguration.configurations.upsert(
{ service: "google" },
{
$set: {
clientId: "xxxxxxxx",
loginStyle: "popup",
secret: "xxxxx"
}
}
);
我在谷歌控制台上的设置
Javascript源代码:http://localhost:3000/
重定向URL:http://localhost:3000/_oauth/google?close
但我总是犯同样的错误
很明显,错误会传递到重定向url,因此此http://localhost:3000/_oauth/google?close
我已经按照Slava在中指出的步骤在Google开发者控制台中检查api密钥的设置,确保已添加
http://localhost:3000/
至授权来源地和http://localhost:3000/_oauth/google
和http://localhost:3000/_oauth/google?close
到您的授权重定向URL。在Google开发者控制台中检查api密钥的设置,确保已添加http://localhost:3000/
至授权来源地和http://localhost:3000/_oauth/google
和http://localhost:3000/_oauth/google?close
到您的授权重定向URL。Brian您是it工作完美的人,请回答他接受它很高兴为您工作。谢谢