繁体   English   中英

重定向时将oAuth2与LinkedIn错误一起使用

[英]Using oAuth2 with LinkedIn error when redirecting

问题


我正在我的应用程序中调用URL到LinkedIn授权页面,但似乎出现错误:

Request.QueryString = {error=unsupported_response_type&error_description=We+only+support+a+response_type+of+%22code%22+but+you+passed+%22%22&state=DCEeFWf45A53sdfKef424}

我已经在开发人员页面上设置了我的应用程序,并获取了ID和Secret。 然后,我想使用以下URL定向到LinkedIn:

Response.Redirect(string.Format("https://www.linkedin.com/oauth/v2/authorization?responsetype=code&client_id={0}&redirect_uri={1}&state=DCEeFWf45A53sdfKef424&scope=r_basicprofile",APIKey,url));

谁能看到一个问题我在做什么?

看一下api,应该是response_type而不是responsetype

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM