【问题标题】:Incorrect callback URL with oAuth 1.0a / GoogleoAuth 1.0a / Google 的回调 URL 不正确
【发布时间】:2013-07-28 23:35:26
【问题描述】:

我正在尝试将 oAuth 1.0a 与 Google 一起使用来检索内容(我不能将 2.0 用于此用例)。 我在授权步骤中苦苦挣扎,因为谷歌没有正确重定向我的 URL,我想知道我做错了什么。我正在使用 mashape-oauth 节点模块 (github.com/Mashape/mashape-oauth) 来处理 oauth 内容(签名等)。

这是我的代码:https://github.com/jsilvestre/cozy-data-integrator/blob/master/server/controllers/integrator.coffee#L28-L49

这是结果 + chrome 调试器信息:http://d.pr/i/eQtK 奇怪的是谷歌重定向到 /b/0/theencodedcallback 而不是回调本身。 Google oAuth 1.0 Playground 工作正常(它重定向到回调 URL,而不是 /b/0/callbackurl)。

请注意,即使我使用不同的回调 URL,我仍然得到相同的结果。

如果您能帮助我,请提前感谢您!

【问题讨论】:

    标签: oauth mashape


    【解决方案1】:

    问题是回调 URL 被编码,而它不应该被编码。

    查看https://github.com/Mashape/mashape-oauth/issues/3所有详细信息。

    【讨论】:

      猜你喜欢
      • 2014-05-19
      • 1970-01-01
      • 2017-05-16
      • 2013-04-24
      • 1970-01-01
      • 1970-01-01
      • 2021-04-27
      • 2017-05-25
      • 1970-01-01
      相关资源
      最近更新 更多