Adding more OAuth providers

At this point, hopefully, we can see that adding more authentication providers should be easy with Passport. At the time of writing this book, Passport has 140 authentication packages we can use. Many of them are OAuth wrappers because OAuth is a great way to maintain security and give access to third parties. Each new provider that you add will roughly follow the process we have just done. First, you will sign up with the provider and create an application/client. Most likely, you will get an ID and a secret. Plug those into your application config along with your initial route and callback route. Finally, create the routes using Passport's middleware and add the link to a view. Congratulations! You have added a new ...

Get Building Scalable Apps with Redis and Node.js 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.