title: Linkedin OAuth2 authorization code error
body: <p>I´m trying to connect via Linkedin Auth2 from a java web application:</p>
  
  <ol>
  <li>Added my own app in linkedin.</li>
  <li>Generate the authorization URL: <a href="https://www.linkedin.com/uas/oauth2/authorization?response_type=code&amp;client_id=XXX&amp;scope=r_basicprofile%20r_fullprofile%20r_emailaddress&amp;state=DCEEFWF454Us5dffef424&amp;redirect_uri=http://localhost:9090/springmvc/token.htm" rel="nofollow">https://www.linkedin.com/uas/oauth2/authorization?response_type=code&amp;client_id=XXX&amp;scope=r_basicprofile%20r_fullprofile%20r_emailaddress&amp;state=DCEEFWF454Us5dffef424&amp;redirect_uri=http://localhost:9090/springmvc/token.htm</a></li>
  <li>Introduce my login/password for linkedin in the new popup.</li>
  <li>Get back successful the request on the redirect_uri previus, and take the authorization code "code"</li>
  <li>Generate the accessToken URL</li>
  <li>Make a POST with: <a href="https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code&amp;code=YYY&amp;redirect_uri=http://localhost:9090/SpringMVC/token.htm&amp;client_id=XXX&amp;client_secret=ZZZ" rel="nofollow">https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code&amp;code=YYY&amp;redirect_uri=http://localhost:9090/SpringMVC/token.htm&amp;client_id=XXX&amp;client_secret=ZZZ</a></li>
  <li>Get next error in response: {"error_description":"missing required parameters, includes an invalid parameter value, parameter more than once. : Unable to retrieve access token : appId or redirect uri does not match authorization code or authorization code expired","error":"invalid_request"}</li>
  </ol>
  
  <p>I´ve verified url parameters are correct:
   - "code" is the token receive on step 4.</p>
  
  <ul>
  <li><p>"redirect_uri" is the same URL on step 2 and 4. I added this URL on section "OAuth 2.0 redirect URL" on my APP.</p></li>
  <li><p>"client_id" and "client_secret" are the "Client API" and "Secret API" on my APP.</p></li>
  <li><p>Time between first and second request is less than 20 seconds.</p></li>
  </ul>