moraskiod / socialauth

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

LinkedInImpl does not seem to return email address of the user #241

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is there a way to get the email address of the user on linkedin? The 
LinkedInImpl does not seem to return back the email address of the user.

I have configured socialauth for facebook and linkedin. Facebook is returning 
me the email address while linkedin is returning me the first name and other 
things also(I suppose) but not the email address of the user.

If there is no option to get the email address using current implementation. 
What all things need to be done to configure a custom linkedInImpl in place of 
socialauth's LinkedInImpl?

Original issue reported on code.google.com by nisha.go...@joshlabs.in on 19 Dec 2012 at 1:51

GoogleCodeExporter commented 8 years ago
Linked in is now providing email address but you have to pass the email scope 
for this while fetching request token.
We have implemented this feature and going to release a latest version in next 
week.

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 31 Dec 2012 at 8:47

GoogleCodeExporter commented 8 years ago
Thats nice to hear that :) I spent lot of my time configuring my own 
linkedinImpl implementation with the socialauth library. Just curious to know 
if we can integrate our custom authProvider Impl with the socialauth library to 
work on any provider ID?

Thanks for pushing this out in the next release. will wait for it eagerly!

Original comment by nisha.go...@joshlabs.in on 31 Dec 2012 at 9:12

GoogleCodeExporter commented 8 years ago
Hi

Yes you can add your custom provider with socialauth.

you have to make entry in oauth_consumer.properties file of your custom 
provider.

e.g 'myprovider' is your provider id and 
'org.brickred.socialauth.provider.GoogleImpl' is your provider implementation. 
provider id should be prefixed here with 'socialauth.'

So you have to make the following entry in oauth_consumer.properties file.

socialauth.myprovider = org.brickred.socialauth.provider.GoogleImpl
myprovider.consumer_key = XXXX
myprovider.consumer_secret = XXXXX

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 3 Jan 2013 at 10:20

GoogleCodeExporter commented 8 years ago
New jar is released which has feature to get user email from Linkedin. You have 
to register new keys on linkedin for getting email.

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 10 Jan 2013 at 7:18

GoogleCodeExporter commented 8 years ago
Hi,

Thanks! will check it out soon :)

Regards,
Nisha

Original comment by nisha.go...@joshlabs.in on 10 Jan 2013 at 7:23