Book Image

Building Scalable Apps with Redis and Node.js

By : Joshua Johanan
Book Image

Building Scalable Apps with Redis and Node.js

By: Joshua Johanan

Overview of this book

Table of Contents (17 chapters)
Building Scalable Apps with Redis and Node.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 provider!