Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LinkedIn Login for ASP.NET MVC 5 Application

I am working with an ASP.NET MVC 5 web application. I need to provide the users to login with their LinkedIn accounts. MVC 5 provides the support for Login with Facebook, Google. But I don't have a clear idea of how to implement this with LinkedIn.

There isn't any Katana support for LinkedIn in MVC 5. What would be the approach should I take to implement this specific behavior in MVC 5? Any suggestions would be greatly appreciated. Thanks.

like image 292
Jake Avatar asked Nov 21 '13 12:11

Jake


2 Answers

This isn't specific to MVC 5, but there's a couple of links here on how to implement LinkedIn oAuth.

Custom oAuth LinkedIn Provider

DotNetOpenAuth for MVC, using LinkedIn

Also, I just came across this on SO, LinkedIn full profile details using DotNetOpenAuth in MVC4

like image 160
Christian Phillips Avatar answered Sep 22 '22 05:09

Christian Phillips


As some time has passed since the OP, a more straightforward solution IMHO is to use to the Owin.Security.Providers NuGet package.

Once the package is added to your solution, the use of LinkedIn as a provider is very easy as explain on the author blog.

And, on top of the fact that the project is open sourced, the bonus is that you get at the same time the support for other authentication providers such as GitHub, Yahoo or StackExchange :o)

like image 29
Yannick Blondeau Avatar answered Sep 22 '22 05:09

Yannick Blondeau