Angular Security and Deployment
Angular for Java Developers, Part 5
Matt Greencroft
  • Course duration: 3h 26m
Angular for Java Developers Part Five: Security and Deployment teaches you how to put an Angular frontend into production, ready for real users. In this fifth and final course in the Angular for Java Developers series, you’ll learn how to implement security for both the Angular front end and the REST API, and cover building and deploying your application.

Distributed by Manning Publications

This course was created independently by Angular expert Matt Greencroft and is distributed by Manning through our exclusive liveVideo platform.

About the subject

The Angular framework is used by millions of developers, powering frontends from simple prototypes to Google’s own web apps. Prized for its scalability, Angular also offers lightning fast speed and response times and the chance to reuse code for both web and mobile. Best of all, it can be integrated with backends built in Java.

About the video

Angular for Java Developers is a five course series that teaches Java programmers how to use Angular and JavaScript to build applications that are maintainable, testable, and secure. In Part Five, you’ll implement vital security to keep your front end and API connection safe from attack, and deploy your application to production. You’ll learn about Login and Route Guards, authenticating users via REST, communicating securely using JWTs and how to survive a browser refresh.
Table of Contents detailed table of contents

Login and Route Guards

Introduction to security

An overview of the login functionality

Implementing the AuthService and Login component

Implementing a Route Guard

Redirecting with route guards

Authenticating users via REST (basic authentication)

The concept of Basic Authentication

Implementing Basic Authentication in Spring

Testing basic authentication

Implementing Basic Authentication in Angular

Configuring CORS for basic authentication

Securing the REST API with JWT

Why JWTs are a good idea

What are JWTs

Preparing Spring Boot for JWTs

Generating a JWT

Generating the Payload data

Testing the JWT

Validating a JWT

Configuring Spring to use bearer authentication part 1

Configuring Spring to use bearer authentication part 2

Configuring Spring to use bearer authentication part 3

Testing validation of the JWT

Implementing JWT Authentication in Angular

Storing the JWT received from the server

Sending the Bearer Authorization header

Dealing with the 403 response code

Finding out the user’s role

Surviving a browser refresh

The risks of storing a JWT

Setting up a JWT Cookie

Sending a cookie from Angular

Using the cookie for authentication

Securing the cookie and getting the user’s role

Surviving the refresh

Using the XMLHttpRequest header

Exercise 1 - Finishing the Application

Exercise 1 - Solution walkthrough part 1

Exercise 1 - Solution walkthrough part 2

Building and Deploying

Compiling an Angular project

A note about using Git with Angular

Deploying an Angular project


For viewers with basic Java experience.

What you will learn

  • The final course in the Angular for Java Developers series
  • Implement Basic Authentication in Spring and Angular
  • JSON Web Tokens
  • Securing cookies and surviving browser refresh
  • Compiling an Angular project
  • Using Git with Angular

About the instructor

Matt Greencroft has over twenty years of experience as a programmer, primarily working in the banking sector. Matt now teaches for Virtual Pair Programmers. His specialties are Microservices, Spring Boot, Apache Spark and Kotlin.

placing your order...

Don't refresh or navigate away from the page.
liveVideo $22.50 $45.00
Angular Security and Deployment (liveVideo) added to cart
continue shopping
go to cart

Prices displayed in rupees will be charged in USD when you check out.