How do i Implement third-party login authentication like Google, Facebook and Twitter into my application at (Login or SignUp)..
The starter site template has a rough implementation of OAuth or OpenId.
The website has to activate SSL before OAuth or OpenID would work right?
There are quite a few different options that you might be referring to, so I’ll try to address each of them below :
- Social / OAuth Authentication - Using sites like Twitter, Facebook, Gmail to Log In to your ASP.NET Applications
- Using Site APIs and SDKs - Some sites like those that you mentioned offer various APIs and SDKs that can be used within ASP.NET to interact with the sites and send / receive data to them.
Social / OAuth Authentication
If you wanted to use Facebook or other Social sites to handle logging in, you might favor something like the SocialAuth library. It features easy-to-use wrappers for nearly all of the major "social"
sites as well as other major networks such as Gmail, Twitter, Facebook, Yahoo, MSN, LinkedIn and more.
You can see a few examples demonstrating this below :
- Integrating SocialAuth into your .NET Application
- Using Social Authentication within MVC
- Using Simple .NET Social Authentication
Some of the newer ASP.NET templates offer some basic utilities for implementing third-party authentication to your applications as
mentioned in this ASP.NET OAuth example.
Using Site-Specific APIs and SDKs
Each of the sites that you mentioned has their own specific APIs for interacting with the sites and using them can allow you to take advantage of many of the features that each API offers (such as logging in / out).
With regards to Facebook, I would recommend visiting the Facebook documentation for .NET linked below:
It features a fairly straight forward walk-through that can be found on the Getting Started area, which should have everything that you need to hook into Facebook to view and post content from
your application and a few other examples that may be worth looking into. It contains information about logging in and authenticating within Facebook that might be helpful.
Facebook also features a jQuery-based API that can be used much like the previously mentioned .NET SDK and might be better suited to handle your particular situation :
Google recently released their .NET Client Library which allows developers to access various Google-specific applications like Gmail and Google Calendars through their .NET applications. You can read
more about using this library here.
Similar to the other sites, Twitter also has an available API and SDKs that can be found at the Twitter Developers site, which should cover just about everything that you would need to do to interact with Twitter. There
are also other libraries out there like LINQ-to-Twitter which can be used to leverage LINQ within .NET to query Twitter.