Node.js: Authentication and Authorization
This course will teach you how to manage authentication and authorization in a Node.js app with Express.
What you'll learn
Many web applications allow users to create an account and login to access certain content or personalize their experience. In this course, Node.js: Authentication and Authorization, you’ll learn two different ways to add authentication and authorization to your Node.js and Express applications. First, you’ll explore session-based auth with the express-session library. Next, you'll learn how to use a third-party service, like Google OAuth2, to authenticate users. Finally, you'll learn how to connect that OAuth2 authentication with sessions and persist a logged-in user. When you’re finished with this course, you’ll have the skills and knowledge of authentication and authorization needed to start to build auth into your Node.js applications.
Table of contents
- Overview of Session-based Auth 1m
- Creating a User Registration Route 2m
- Testing Routes with an API Client 2m
- Creating a Login Route to Authenticate a Registered User 2m
- Storing an Authenticated User in a Session 6m
- Using a Session to Request a Protected Resource 1m
- Destroying a Session with a Logout 1m
- Other Useful Session Cookie Options 2m