Spring Boot and Single-Page Applications: Securing Your API with a Single-Page Application Frontend, Second Edition

  • 35m
  • Jens Boje
  • Jens Boje
  • 2019

Learn to integrate your Spring Boot application with a single-page application securely in an actionable and hands-on approach within just a few hours!

In this custom-tailored learning plan you get a head start and learn 4 commonly used ways to integrate your Spring Boot backend with your single-page application and secure it.

Revised second edition

In just a few hours, you will know how to implement 4 different types of integration and are ready to make better decisions when applying these principles in your context. You've been there and done that already while other developers are still wading through hundreds of pages of a fluffy compendium and still having no clue of how to solve the problem.You learn best by coding. The way I love learning too. What you will build: We'll put a single-page application written in Angular 4 and Typescript as an Admin UI on top of the microservice built in my book Spring Boot: How To Get Started and Build a Microservice. However, you do NOT need to know or own the other book. We will extend it with a single operation which teaches how to implement Pagination and integrate it with a single-page application securely in 4 different ways. The focus is on the integration and security on the side of Spring Boot. It works with any other Javascript framework too as the concepts are the same.

What you will learn:

  • How to secure your API in Spring Boot 2.1.8 (Works with 1.5 too)
  • How to use pagination for huge lists in your API
  • How to protect your API with basic auth
  • How to use Cross-Origin Resource Sharing (CORS) with Spring Boot
  • How to implement JSON Web Tokens (JWT) in Spring Security
  • How to use stateful authentication for your API and UI
  • How to protect your application against Cross-Site-Request-Forgery (CSRF)
  • How to make better decision when to use which integration type

This book is for you when

  • you have a basic understanding of Spring Boot and want to add a UI on top
  • when you are new to single-page applications with Spring backends
  • you read my Spring Boot starting book and want to continue learning

It is NOT for you if

  • you like reading fluffy compendiums
  • you have not worked with Spring Boot (learn Spring Boot with my other book and come back)
  • you don't know the Java language at all

And if you have questions, do not hesitate to contact me using the email address at the end of the book. I am glad to help.

In this Book

  • Readme
  • Introduction
  • Our Microservice
  • Our Single-Page Application Using Angular 4
  • Four Ways of Integration
  • Stateless Microservice with Basic Auth and CORS
  • Stateless Microservice with JWT Auth and CORS
  • Stateful Microservice with Form Auth, CSRF, and CORS
  • Stateful Microservice with SPA Integrated
  • Conclusion
  • Thank You
  • Move Your Microservice to the Next Level
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.7 of 30 users Rating 4.7 of 30 users (30)
Rating 4.5 of 194 users Rating 4.5 of 194 users (194)
Rating 4.2 of 57 users Rating 4.2 of 57 users (57)