AngularJS Authentication: Secure Your App with Auth0

Learn how to add JSON Web Token authentication to your AngularJS app

4.58 (2184 reviews)
Udemy
platform
English
language
Web Development
category
instructor
58,722
students
2 hours
content
Nov 2017
last update
FREE
regular price

What you will learn

Secure AngularJS applications with JSON Web Tokens

Set up JWT middleware on a NodeJS (Express) app

Make authenticated HTTP requests from an AngularJS

Create a user profile area with their avatar

Redirect to a login route when the user becomes unauthenticated

Apply multi-factor authentication to add additional security

Login with social providers like Google and Twitter

Description

Authentication for traditional web applications is fairly straight-forward: we send our credentials to the server, a session is created, and a cookie is returned to be saved in the browser. This method works well for round-trip applications, but it isn't a good way to do authentication in modern single page apps, like those built with AngularJS.

In this course we are going to learn about the challenges associated with traditional authentication and how to use what is arguably the best alternative: the JSON Web Token.

Using that knowledge, we'll implement authentication in an AngularJS app that makes calls to an Express API. We'll cover how to address all the challenges associated with keeping a single page application in check when it comes to stateless authentication. This can be a tricky matter since the front end and backend apps are effectively separated, but we'll find out how to leverage our user's JWT to address the challenges.

We'll use Auth0 as an identity and authentication server so that we don't have to roll our own.

Content

Introduction

Hey there!

Web Application Authentication Background

Traditional Authentication
The Tricky Parts of AngularJS Authentication
JSON Web Tokens

Setting Up the App

Signing Up for Auth0
Setting Up the AngularJS App

Setting Up Authentication in AngularJS

Setting Up Login
Handling the Authentication Result
Setting Up Logout
Showing the User's Profile
Setting up the API
Sending Authenticated HTTP Requests
Cleaning Up the App

Additional Features

Enabling Multi-Factor Authentication
Wrapping Up

Screenshots

AngularJS Authentication: Secure Your App with Auth0 - Screenshot_01AngularJS Authentication: Secure Your App with Auth0 - Screenshot_02AngularJS Authentication: Secure Your App with Auth0 - Screenshot_03AngularJS Authentication: Secure Your App with Auth0 - Screenshot_04

Reviews

Dale
April 5, 2023
Would have like if the resources was not on the Wrapping Up in Section15. Also would be nice to add an Auth0 Logout function to the tutorial.
Leonard
May 31, 2021
The course was very well designed and I shortly learned the most important to connect an AngularJS application with Auth0.
Oscar
September 9, 2018
Ryan always provides easy to follow examples. His tone is also very calming and pleasant to listen to.
Ankit
May 22, 2018
Well, I am new to Auth0. And hence this was, of course, a very knowledgeable session for me. This course gave me a very nice head start. And it will really help me to implement the concept of Auth0 in the application that I am working on. Thanks again for such a wonderful freebie.
Balakrishna
April 1, 2018
Firstly, Thanks for offering this course (esp for free). This course was very helpful in helping me understand the concepts relating to JWT. However, I would like to offer some feedback just with the intention to help you improve the course. I am a beginner to Angular Js. Not sure if I am right audience for this course. This course had so much more code than I can take. I still went through all the course because I was able to relate the concepts I have known. But otherwise, it can be a challenge for beginners. In that case, maybe you wanna consider indicating pre-requisites clearly upfront. Thanks again.
Manoj
March 29, 2018
Instructor explained the concepts in a precise way. Got some good base idea on the implementation. Will really help me to build some cool stuff out of it. Thanks.
Thomas
February 23, 2018
Perfect! Good introduction at the beginning, and then detailed and highly practical coding example how to implement Auth0. Reasonably short.
Maria
February 1, 2018
The course has been understandable and well explained. The instructor voice is nice and easy to understand, the language used is perfect, no too technical but not too basic. It's a great course to better understand the already complete documentation auth0 provides. You can actually ask questions so it's more personal to your needs. I really enjoyed! More courses like this please
Marcelo
January 19, 2018
He explains perfectly the differences between authentication used in the past and the new way of doing it today which seems to be far more easier and securer as well.
Al
December 24, 2017
Terse and to the point. Just how I like it. Working on rebuilding a legacy app in Angular and this helps me also generally understand modern practice for OAuth2 with frontend frameworks in general.
Mehmet
November 13, 2017
Really enjoyed the course. If there will be other courses that i am interested in from Ryan I'll be the first to buy. Thanks.
Gopal
November 3, 2017
I enjoyed this course and Ryan is explaining about auth0 in very nice way but I need to re-watch again the whole course. Still I am struggling with my app because I am getting some error from auth0 like"Opps! something went wrong" and that I don't know where to start look in my app. Thanks Ryan.
Chan
October 31, 2017
I needed to build a simple authentication for an angular project and Ryan made it possible for me to complete the task in an hour. Looking forward to more advanced topics with Auth0
Krishna
October 14, 2017
Gave me good insight about authentication for Angular app with API, and clear insight of how to integrate Auth0 and configure it in a JS client application.
Mario
October 6, 2017
Me parece bueno. Pero los subtitulos no deben interferir con lo que se esta enseñando en la diapositiva, situarlos de tal manera que deje ver lo que se esta explicando en el momento.

Charts

Price

AngularJS Authentication: Secure Your App with Auth0 - Price chart

Rating

AngularJS Authentication: Secure Your App with Auth0 - Ratings chart

Enrollment distribution

AngularJS Authentication: Secure Your App with Auth0 - Distribution chart

Related Topics

808622
udemy ID
3/31/2016
course created date
7/1/2019
course indexed date
Bot
course submited by