YoVDO

Protecting Routes and Securing API Endpoints in Node.js and Express - Part 3

Offered By: Okta via YouTube

Tags

Node.Js Courses Auth0 Courses Authorization Courses API Security Courses Axios Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to protect routes and secure API endpoints in a Node.js/Express application with authentication. Expand on previous knowledge by adding pages accessible only when logged in and creating a secured API called from the web app. Follow along to create a second route in the web app, implement EJS templating, secure routes with Auth0, develop a simple Express-based API with public and private endpoints, integrate API responses using Axios, and configure the web app to request access tokens. Gain practical insights into implementing authentication and authorization in your Node.js projects, enhancing the security of your web applications and APIs.

Syllabus

0:00 Hello!
Create a second route in the Web App
Create a second EJS template for this new route
Use EJS includes to extract common markup into one file
Secure the second route with Auth0
Create a simple Express-based API with a public endpoint
Pull API responses into the Web App using Axios
Create a private endpoint in the API
Pass authorization headers to the API from the Axios call
Configure the Web App to request an Access Token from Auth0
The final result and closing comments


Taught by

Okta

Related Courses

MongoDB for Node.js Developers
MongoDB University
Introduction to Office 365 Development and APIs
Microsoft via edX
Server-side Development with NodeJS
The Hong Kong University of Science and Technology via Coursera
Front-End Web UI Frameworks and Tools
The Hong Kong University of Science and Technology via Coursera
Introduction to MongoDB using the MEAN Stack
MongoDB via edX