如何在Linked In Oauth2中获取刷新令牌? [英] How to get refresh token in Linked In Oauth2?

查看:126
本文介绍了如何在Linked In Oauth2中获取刷新令牌?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面的文档说

https://developer.linkedin.com/docs/Refresh -带有OAuth-2的令牌

在为访问令牌交换授权码时,如果启用了刷新令牌,还将返回以下字段:

When exchanging Authorization Code for an Access Token, If Refresh Tokens are enabled, the following fields will also be returned:

refresh_token

refresh_token

refresh_token_expires_in

refresh_token_expires_in

但是我没有任何适当的文档来启用刷新令牌,因为我获得了access_token和expiry_in但没有刷新令牌.因此,我需要传递如何启用刷新令牌或其他任何参数

But I don't see any proper documentation to enable refresh token, because I get access_token and expiry_in but not refresh token. So How to enable refresh token or any other param do I need to pass to get refresh token

推荐答案

页面顶部指出:

LinkedIn已在OAuth 2.0中引入了刷新令牌.这项特征 目前仅适用于部分合作伙伴.它将被制成 在不久的将来推出GA.

LinkedIn has introduced Refresh Tokens with OAuth 2.0. This feature is currently available for a limited set of partners. It will be made GA in the near future.

因此,我想您必须与他们联系,并要求他们为您的应用配置它,直到他们将其发布为GA.至少这就是我的阅读方式.

So I suppose you have to contact them and ask them to configure it for your app until they make it GA. That's how I read it at least.

对于如此规模的公司,该文档绝对是可怕的!祝你好运.

The documentation is absolutely dreadful for a company that size! Good luck.

这篇关于如何在Linked In Oauth2中获取刷新令牌?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆