linkedin oauth2.0授权无效客户端ID错误

问题描述:

我正在使用linkedin api和oauth库。我的授权请求的URL是 https://www.linkedin.com/uas/oauth2/authorization/?client_id=75gq3kju41jx44&redirect_uri=https%3A%2F%2Flocalhost%2FSocial%2Flinkedin%2Fsettings&scope=r_basicprofile%2Cw_share&response_type=code&state=1436579926-c05e44linkedin oauth2.0授权无效客户端ID错误

但它给我页的错误没有发现在那里显示我无效的客户端id.please让我知道我要去的地方wrong.I我在本地主机上的工作。

为了摆脱未找到的页面,请在'?'之前删除'/'

https://www.linkedin.com/uas/oauth2/authorization?client_id=75gq3kju41jx44&redirect_uri=https%3A%2F%2Flocalhost%2FSocial%2Flinkedin%2Fsettings&scope=r_basicprofile%2Cw_share&response_type=code&state=1436579926-c05e44 
+0

Thanks..Yes它为我工作。 –

LinkedIn的OAuth 2.0授权端点:

https://www.linkedin.com/uas/oauth2/authorization # <-- no '/' at the end 

这里面没有结尾的斜线。你应该从你的请求URL中删除尾部的斜杠,它应该可以工作。

最后请求URL:

https://www.linkedin.com/uas/oauth2/authorization?client_id=75gq3kju41jx44&redirect_uri=https%3A%2F%2Flocalhost%2FSocial%2Flinkedin%2Fsettings&scope=r_basicprofile%2Cw_share&response_type=code&state=1436579926-c05e44 
+0

完美..谢谢你 –