Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

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

Okta via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
Builds on an existing authenticated Node.js/Express app to secure an additional page and create an API with public and private endpoints. The app calls the API with Axios and sends an Auth0 access token to access the private endpoint.

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

Reviews

Start your review of Protecting Routes and Securing API Endpoints in Node.js and Express - Part 3

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.