O'Reilly logo

Learning Node.js for .NET Developers by Harry Cummings

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing social login

For our first example, we'll use Twitter as our third-party authentication provider. If you want to follow along with the example you will need a Twitter account, which is very quick to set up.

Setting up a Twitter application

In order for Twitter to recognize our application, we need to create a new app in Twitter's developer portal:

  1. Visit https://apps.twitter.com/ and click on Create New App.
  2. Fill in the Name, Description, Website, and Callback URL fields:
    • If you've deployed your application to Heroku, you can use its Heroku URL here
    • Otherwise, just fill in placeholder values for both fields (for example, http://test.example.com/callback)
  3. Click on Create your Twitter application.
  4. Click on the Settings tab and ensure that

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required