jeisenberg / goauth2

Automatically exported from code.google.com/p/goauth2
Other
0 stars 0 forks source link

LinkedIn OAuth2 Login fails to get token, requires client_secret as parameter #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use OAuth2 with Linkedin Signin
2. Fails on retrieveToken ("https://www.linkedin.com/uas/oauth2/accessToken")

What is the expected output? What do you see instead?
Doesn't get OAuth token, linkedin returns this:
{"error_description":"missing required parameters, includes an invalid 
parameter value, parameter more than once. : 
client_secret","error":"invalid_request"}

What version of the product are you using? On what operating system?
Latest master.  This change introduced the problem 
https://github.com/golang/oauth2/commit/bb8496880f7e4671902be4e7251f40d971c5d535

Please provide any additional information below.
Linkedin needs to be added to the list of busted auths in 
providerAuthHeaderWorks function.  They require "client_secret" as a parameter, 
instead of taking it as basic auth header.  Please add linkedin to the list 
(https://www.linkedin.com/), or give users some way to manually add oauth2 
providers

Original issue reported on code.google.com by timothy....@zefr.com on 10 Sep 2014 at 8:32

GoogleCodeExporter commented 9 years ago
Hi, you should go to https://github.com/golang/oauth2/issues for this issue.

Original comment by cls...@gmail.com on 11 Sep 2014 at 2:41

GoogleCodeExporter commented 9 years ago
Ah thank you

Original comment by timothy....@zefr.com on 11 Sep 2014 at 6:43