Ben Clarke
Ben Clarke

Reputation: 1061

Using oAuth2 with LinkedIn error when redirecting

Issue


I am calling a URL in my application to the LinkedIn authorisation page but i seem to be getting an error:

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

I have set up my application on the developer page and have retreived the ID and Secret. I then want to direct to the LinkedIn using the URL below:

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));

Can anyone see an issue what what i am trying to do?

Upvotes: 0

Views: 428

Answers (1)

Josh
Josh

Reputation: 697

Looking at the api it should be response_type not responsetype.

Upvotes: 1

Related Questions