0
我想重申,如我的文档过期的访问令牌:如何更新过期的LinkedIn的访问令牌
https://developer.linkedin.com/documents/authentication
我试图做这样的GET请求:
首先得到(用于获取代码):
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=XXX&scope=r_fullprofile&state=hyriedsdsv56uvenn5eouvnjedfgdfgio5&redirect_uri=http://www.MY_DOMAIN.com
这一要求的回报是这样的:
http://www.MY_DOMAIN.com/?code=MY_CODE&state=hyriedsdsv56uvenn5eouvnjedfgdfgio5
在此之后,我不得不做出最后的请求,让我的访问令牌:
https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code&code=XXX&redirect_uri=http://www.MY_DOMAIN.com&client_id=XXX&client_secret=XXX
和LinkedIn将返回此错误消息:
{"error":"invalid_request","error_description":"missing required parameters, includes an invalid parameter value, parameter more then once. : Unable to retrieve access token : appId or redirect uri does not match authorization code or authorization code expired"}
有谁知道我该怎么办解决这个问题?我的授权令牌无法过期,因为我正在使用该授权令牌。
我正在使用正确的密钥和应用程序的秘密。
谢谢! =)
Thanks @Optional ...那就是问题=) – Crasher