Skip to main content

AngularJS Authentication with JWT

31m 11s
English
Paid

JSON Web Tokens (JWT) are a more modern approach to authentication. As the web moves towards a greater separation between the client and server, JWT offers a powerful alternative to traditional cookie-based authentication models. For more information on JWT, visit jwt.io.

Course Overview

In this series, we’ll be building a simple application to retrieve random user information from a Node.js server using an Angular client. We’ll implement JWT to secure the random user resource on the server, and then integrate JWT authentication on the frontend.

Learning Outcomes

By the end of this course, you will:

  • Understand how to use JWT for securing web applications.
  • Have a working app with a simple username/password combination for demonstration.
  • Be able to login, retrieve random users, and logout using token-based authentication.

Why Choose JWT?

JWT is preferred for modern web applications due to its stateless nature, allowing for scalability and flexibility in client-server communication. It enhances security by using signed tokens that ensure the integrity of the data exchanged between parties.

Join this course to enhance your understanding of JWT, and learn practical implementation techniques that can be applied to any web application requiring robust authentication mechanisms.

About the Author: egghead

egghead thumbnail
The egghead.io project presents a huge selection of courses and screencasts for developers of all levels and professions.

Watch Online 7 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 7 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: JSON Web Token (JWT) Introduction
All Course Lessons (7)
#Lesson TitleDurationAccess
1
JSON Web Token (JWT) Introduction Demo
01:24
2
Basic Server Setup for JWT Authentication
01:45
3
Client Setup for JWT Authentication
03:34
4
JWT Authentication Setup
04:16
5
Server JWT Authentication Setup
04:04
6
Auth Interceptor in Angular for JWT
07:54
7
Finalizing JWT Authentication with AngularJS
08:14
Unlock unlimited learning

Get instant access to all 6 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription