MVC 4 DotNetOpenAuth - LinkedIn: Doesn't capture email address

I am using built-in MVC 4 OAuthWebSecurity to enable authentication for LinkedIn.

In my LinkedIn API key, I added r_emailaddress permissions.

enter image description here

The problem is that the email does not end up in the ExtraData dictionary for some reason in the result object.

AuthenticationResult result = OAuthWebSecurity.VerifyAuthentication(Url.Action("ExternalLoginCallback", new { ReturnUrl = returnUrl }));

      

enter image description here

Any ideas on how I can use LinkedIn's built-in provider but get an email address?

UPDATE Turns out the built-in DotNetAuthOpenAuth provider for LinkedIn does not populate the email address field .... Additionally, the username field is also populated with the full username. So this is a bit odd to say the least.

Anyway, I found this link http://deepindera.blogspot.com/2013/08/aspnet-mvc-oauth-linkedin-email-problem.html which shows how to create a custom LinkedIn client for DotNetAuth.

+3
asp.net-mvc-4 dotnetopenauth linkedin


source to share


No one has answered this question yet

Check out similar questions:

442
How to add reference to System.Web.Optimization for MVC-3-convert-to-4 application
8
New LinkedIn Permissions - Scope Not Shared
4
ASP.NET MVC 4 OAuthWebSecurity not working
3
LinkedIn OAUTH - Still can't get email address using DotNetOpenAuth.AspNet
2
What happened to this Oauth process for LinkedIn + email?
1
How to set up Linkedin Autentication with dotnetopenauth on mvc4
1
DotNetOpenAuth not getting email address from Facebook client?
1
how to get twitter related profile info espacially Email to asp.net mvc 4 using Oauth
0
LinkedIn receives emails
-2
DotNetOpenAuth and LinkedIn



All Articles
Loading...
X
Show
Funny
Dev
Pics