Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
NodeJs Authentication using PassportJs
Rating: 2.5 out of 5(8 ratings)
116 students
Created byHaider Malik
Last updated 1/2020
English

What you'll learn

  • Authenticate NodeJs Apps using PassportJs
  • Authenticate NodeJs Apps using Twitter
  • Authenticate NodeJs Apps using Google
  • Authenticate NodeJs Apps using Github

Course content

3 sections11 lectures57m total length
  • Getting Started0:17
  • What is PassportJs0:09
  • User Registration with NodeJs, and MongoDB6:37

    In this lesson, we will create a new user in database. I will show you how to implement signup feature in Nodejs and MongoDB

  • User Login with NodeJs, and MongoDB4:05

    In this lesson, we will fetch the user from the databse. A user can login to his account by providing email and password

  • JSON Web Token Authentication using Passport-JWT Strategy6:29

    In this lesson, we will authenticate user by using JSON web token and Passport JWT Strategy. It is a Passport strategy for authenticating with a JSON Web Token.

    This module lets you authenticate endpoints using a JSON web token. It is intended to be used to secure RESTful endpoints without sessions.

  • Twitter Authentication with NodeJs, Express, and PassportJs10:00

    Passport strategy for authenticating with Twitter using the OAuth 1.0a API.

    This module lets you authenticate using Twitter in your Node.js applications. By plugging into Passport, Twitter authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express.

  • Github Authentication with NodeJs, Express and Passport9:37

    Passport strategy for authenticating with GitHub using the OAuth 2.0 API.

    This module lets you authenticate using GitHub in your Node.js applications. By plugging into Passport, GitHub authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express

  • Google Authentication with NodeJs, Express, and PassportJs9:54

    Passport strategy for authenticating with Google using the OAuth 2.0 API.

    This module lets you authenticate using Google in your Node.js applications. By plugging into Passport, Google authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express

Requirements

  • Knowledge of Nodejs is required. This is not a beginner level course
  • Knowledge of ExpressJs is required

Description

What is PassportJs?

Passport is a middleware for express.js. It supports various login types, Basic, Token, Local (username, password), OAuth, OAuth2, etc. We can combine these to allow users to authenticate by signing in with Google, FB, or whatever service with very minimal amount of code. We can also use this to combine external auth services so users can choose to login with one of the selected Strategies, e.g. Google, Twitter. It's much quicker to use passport for authentication than to build one yourself from scratch. This is why we use passport. You don't need passport, it just makes developing quicker

What you will learn in this course:

  • Implement JSON Web token Authentication using Passport-JWT strategy
  • Implement Twitter Authentication using Passport-Twitter Strategy
  • Implement Google Authentication using Passport-Google Strategy
  • Implement Github Authentication using Passport-Github Strategy

Who this course is for:

  • NodeJs Developers who want to learn JSON Web Token Authentication with Passport
  • NodeJs Developers who want to learn Twitter Authentication with Passport
  • NodeJs Developers who want to learn Google Authentication with Passport
  • NodeJs Developers who want to learn Github Authentication with Passport