Passport.js

PassportJS is a javascript framework/middleware designed to assist with authentication/authorization mechanisms in your platform - passportjs.org

# oAuth

Paasport.js is a fully open source library created in 2012 and maintained by Auth0 - auth0.com

It is still maintained but new development has moved (Sept 2020) to the simpler and more open OpenID Connect compatible SDK - auth0.com

- Express Openid Connect - github

One of the ways you can use it is along with an oAuth flow. An other would be to use it only with JWTs. A third way could be to use it alongside simple "cookies".

Similarly you can either use oAuth, JWTs, simple cookies, or anything else that you want to use as authentication / authorization for your application, and passportJS can make it easier for you by handling some stuff, regardless of which "strategy" you choose to implement for your app.

# Auth0 integration

There is an Auth0 authentication strategy for Passport.js. Passport is authentication middleware for Node.js that can be unobtrusively dropped into any Express-based web application - passportjs.org

There is a comprehensive tutorial on how to how to secure Node.js web application built with the Express framework using Auth0 and passport.js over on the Auth0 blog - auth0.com

There is also a Management API. See the Node Auth0 SDK - github .

# Research links

# See also