获取永久 Digg OAuth 凭证
我对 Digg OAuth 令牌没有什么疑问和疑问。 我的目的是为我的应用程序验证用户一次,保存 数据库中的凭据,然后代表用户访问 digg API 当用户离线时。
然而,似乎有一个问题。经过身份验证的令牌 最初工作正常,但一段时间后会过期,导致 API 失败并出现以下错误响应。 { “状态”:401, “时间戳”:1288905135, "message": "OAuth 签名无效。", "code": 5001
}
请告诉我是否有办法获得永久令牌(即 不会过期)。没有这个,我不可能建立一个离线的 挖掘应用程序。或者,有解决方法吗?请建议。
-binit
I have few doubts and queries regarding Digg OAuth Tokens.
My purpose is to authenticate user once for my application, save the
credentials in database and then access digg API on user's behalf even
when user is offline.
However, there seems to be a problem. The authenticated tokens
initially work fine but expire after sometime resulting in the API
failures with the following error response.
{
"status": 401,
"timestamp": 1288905135,
"message": "OAuth signature is invalid.",
"code": 5001
}
Please tell me if there is a way I can get permanent tokens (i.e.
which don't expire). Without this, I cannot possibly build an offline
Digg Application. Or, is there a workaround? Please suggest.
-binit
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您检查过您的/网络服务器时间吗?如果这与实际不同,将导致 OAuth 签名无效。我遇到了这个问题,我的电脑时间相差大约 16 分钟。
Did you check your/web server time? If this is different than actual it will cause OAuth signature is invalid. I had this issue with about 16mins different in my PC time.