Dj-Corps / gwt-oauth2

Automatically exported from code.google.com/p/gwt-oauth2
Apache License 2.0
0 stars 0 forks source link

LinkedIn oauth2 support #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
LinkedIn supports a different oauth2 flow from most other oauth2 providers. 
Would it be possible to add support for opening a popup window for user 
confirmation that would grab the access code returned by linkedIn? This access 
code could be passed to the server to be used by an alternate, server-side 
oauth2 API (scribe, linkedin-j).

I have done some work to create an alternate AuthRequest url that can be used 
to access the linkedIn confirmation page, but linkedIn returns its 
accessCode/state confirmation code as URL parameters. I think it would be 
possible to have the redirect page parse these url parameters (using javascript 
or even grabbing them as a Place token, if using the google Places/Activities 
API). The state code could be verified the access code could be made available 
to the developer for use (in the same manner as the accessToken is currently 
made available by the gwt-oauth2 api).

I am not very familiar with javascript so I am having some difficulty parsing 
the access code once it has been returned by linked in. I can provide the work 
I have already done on this, if you are interested in collaborating to finish 
it off.

Apologies if anything is unclear, I'm sick with the flu right now.

Original issue reported on code.google.com by laneymi...@gmail.com on 16 Jan 2014 at 2:44