【发布时间】:2013-11-23 13:07:43
【问题描述】:
是否有人尝试刷新访问令牌(无需用户输入)。
https://developer.linkedin.com/blog/tips-and-tricks-refreshing-access-token
上面链接中的文档表明这似乎仅适用于 OAuth 1.0。
【问题讨论】:
标签: api oauth oauth-2.0 linkedin
是否有人尝试刷新访问令牌(无需用户输入)。
https://developer.linkedin.com/blog/tips-and-tricks-refreshing-access-token
上面链接中的文档表明这似乎仅适用于 OAuth 1.0。
【问题讨论】:
标签: api oauth oauth-2.0 linkedin
您是对的,链接中的文档仅适用于 OAuth 1.0。对于 OAuth 2.0,LinkedIn Document 只是说Access tokens have a life span of 60 days. You should have a mechanism in your code to refresh the tokens before they expire in order to continue using the same access tokens.
我没有在 LinkedIn OAuth 2.0 中找到有关如何在没有用户输入的情况下刷新令牌的任何详细信息。标准 OAuth 2.0 应该支持这个功能。
这里是LinkedIn Developers Forum 的讨论。
【讨论】: