doulidai6316 2010-01-26 13:19
浏览 52
已采纳

Twitter OAuth使用相同的代码在不同的域上失败签名验证

I wrote a "Sign in with Twitter" option for my webapp on my local machine using this Twitter OAuth library - https://docs.google.com/View?docID=dcf2dzzs_2339fzbfsf4 and it all works great. But when I move the code to the actual production server it fails on getting a Request Token (a.k.a. the first step) with a simple "Failed to validate oauth signature and token".

What doesn make sense to me is the fact that it works flawlessly on local machine but it fails miserably on the production server, keeping in mind that they are configured identically.

So the question comes down to - what possible differences could there be for twitter when receiving my request from a different domain? (yes, I did change the Application Setting on twitter.com but that a) doesn't make a difference b) doesn't seem to matter).

Note: PHP on Apache

  • 写回答

1条回答 默认 最新

  • douxi3085 2010-01-28 13:12
    关注

    http://groups.google.com/group/twitter-development-talk/browse_thread/thread/aadee92bc5c34f29?pli=1

    Turns out my server time was 4 days in the past. xD Setting it properly fixed everything.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据