'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.
Solution 1:[1]
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
Solution 2:[2]
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)
Solution 3:[3]
For doing this without the need of Owin setup we can use direct linkedin api's however we have to use two api's for email or other info.One of those is https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))&oauth2_access_token=Your access token here. You will also need to create client id and client secret and you can get complete reference for all the steps at How to Integrate Linkedin Login in Asp.net MVC
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Community |
| Solution 2 | Yannick Blondeau |
| Solution 3 | Shubham |
