© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. Nardone, C. ScarioniPro Spring Securityhttps://doi.org/10.1007/979-8-8688-0035-1_9

9. JSON Web Token (JWT) Authentication

Massimo Nardone1   and Carlo Scarioni2
(1)
HELSINKI, Finland
(2)
Surbiton, UK
 

This chapter explores REST API and JWT authentication and authorization using Spring Boot 3 and Spring Security 6.

In previous chapters, you saw some types of Spring Security authentication methods. First, let’s look at the REST API and an example of JWT authentication.

The REST API

REST, which stands for REpresentational State Transfer, is an architectural style for designing networked applications. REST has become the predominant way of designing an API (application ...

Get Pro Spring Security: Securing Spring Framework 6 and Boot 3-based Java Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.