Angular Module 5: Security and Deployment

Try for free!

Subscribe and stream all our courses
from just USD19.00 per month
Start my free trial

Angular Module 5: Security and Deployment

Become a full-stack developer building front-ends with Angular

Approx. 3.5 hours

  • This is part 5 of 5 modules which cover building Angular front ends for Java applications.
  • Become a full-stack developer by learning how to build responsive and reactive front-ends with Angular.
  • In this fifth module, we'll learn how to implement security for both the Angular front end and the REST api, and we cover building and deploying the appilcation
Basic Java knowledge is assumed. No prior Javascript / Typescript knowledge is needed. You should complete the earlier modules of this course before starting this module.

Contents

Having problems? check the errata

Login and Route Guards

Introduction to security 2m 47s Watch
An overview of the login functionality 2m 10s Watch
Implementing the AuthService and Login component 4m 17s Watch
Implementing a Route Guard 7m 10s Watch
Redirecting with route guards 6m 19s Watch

Authenticating users via REST (basic authentication)

The concept of Basic Authentication 4m 6s Watch
Implementing Basic Authentication in Spring 9m 35s Watch
Testing basic authentication 1m 59s Watch
Implementing Basic Authentication in Angular 9m 16s Watch
Configuring CORS for basic authentication 6m 54s Watch

Securing the REST API with JWT

Why JWTs are a good idea 5m 31s Watch
What are JWTs 6m 47s Watch
Preparing Spring Boot for JWTs 5m 40s Watch
Generating a JWT 9m 43s Watch
Generating the Payload data 5m 45s Watch
Testing the JWT 4m 47s Watch
Validating a JWT 3m 45s Watch
Configuring Spring to use bearer authentication part 1 8m 5s Watch
Configuring Spring to use bearer authentication part 2 8m 2s Watch
Configuring Spring to use bearer authentication part 3 3m 11s Watch
Testing validation of the JWT 7m 35s Watch

Implementing JWT Authentication in Angular

Storing the JWT received from the server 3m 50s Watch
Sending the Bearer Authorization header 4m 5s Watch
Dealing with the 403 response code 4m 5s Watch
Finding out the user's role 6m 36s Watch

Surviving a browser refresh

The risks of storing a JWT 5m 37s Watch
Setting up a JWT Cookie 2m 8s Watch
Sending a cookie from Angular 6m 12s Watch
Using the cookie for authentication 7m 25s Watch
Securing the cookie and getting the user's role 11m 29s Watch
Surviving the refresh 3m 45s Watch
Using the XMLHttpRequest header 3m 5s Watch
Exercise 1 - Finishing the Application 1m 30s Watch
Exercise 1 - Solution walkthrough part 1 4m 51s Watch
Exercise 1 - Solution walkthrough part 2 10m 13s Watch

Building and Deploying

Compiling an Angular project 2m 56s Watch
A note about using Git with Angular 1m 32s Watch
Deploying an Angular project 3m 17s Watch
Copyright ©2024 VirtualPairProgrammers.com