问题描述
我的问题是关于Linkedin API的OAuth2访问令牌响应.当我尝试获取此令牌时,会收到以下响应:
My question is about OAuth2 access token response from Linkedin api. When I'm trying to get this token I recieve the following response:
{"access_token":"...","expires_in":...}
但是根据 OAuth2文档(在5.1段落中) ),至少应再有一个必需的参数-"token_type".所以问题是:是否可以通过某种方式对其进行自定义,以便linkedin API会返回带有访问令牌响应的此参数,或者只是背离规则而不会返回此参数?
But the thing is that according to OAuth2 documentation (in 5.1 paragraph) there should be at least one more required parameter - "token_type".So the question is: could it be somehow customized so the linkedin API will return this parameter with access token response or it is just a departure from the rule and this parameter won't be returned?
提前谢谢.
推荐答案
我希望从Linkedin成员那里得到答案,因为他们在自己的站点上指出stackoverflow是提出此类问题的合适场所.但是由于他们没有答案,而且我也没有找到有关此问题的任何相关信息,所以我相信这只是他们实现OAuth 2.0协议的方式.
I hoped to get answer from Linkedin member since they stated on their site that stackoverflow is a proper place for asking such questions. But since there is no answer from them and I didn't find any relevant information regarding this question I believe that it is just the way they implemented OAuth 2.0 protocol.
这篇关于不完整的Linkedin OAuth 2.0访问令牌响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!