Yammer oAuth无效redirect_uri

时间:2015-01-23 03:07:55

标签: yammer

我正在尝试使用yammer按钮使用devise omniauthable实现signin。我正在关注github自述文件的指南。

https://github.com/plataformatec/devise/wiki/OmniAuth:-Overviewhttps://github.com/le0pard/omniauth-yammer

在Yammer中,我使用重定向URI http://127.0.0.1:3000/users/auth/yammer/callback设置了我的应用。

当我访问invalid redirect_uri

时,这会给我http://localhost:3000/users/auth/yammer错误

所有Yammer文档都说重定向URI应该是https://example.com但是在开发和测试中如何工作?

github https://github.com/annado/bigboard上的这个项目有效,我试图跟踪他们的代码广告,他们建议将重定向URI设为http://127.0.0.1:3000

所以我只是困惑?回调URI应该是什么?

1 个答案:

答案 0 :(得分:1)

在本地进行测试

redirect_URL = http://localhost:3000/users/auth/

for development用您的域名替换localhost:3000。