Chapter 8. External authentication in Node.js
Login security is a vital aspect of most websites. In addition to having standard security access through whatever provider you choose, users now expect to be able to use a single sign-on to log in to Facebook, Gmail, and so on to integrate customized content. Fortunately, through the use of the Passport npm package, Node.js provides a solution for a vast array of authentication requirements.
To work with Passport, you just provide the request to authenticate. Passport, in return, provides standardized methods for you to then manage what happens if that authentication attempt succeeds or fails. To do this, it employs an extensible set of plug-ins known as strategies. Strategies can range from just ...
Get Node.js for .NET Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.