Book Image

Practical Bootcamp JWT Authentication with Java and Spring Boot [Video]

By : Ranjan Pandey
Book Image

Practical Bootcamp JWT Authentication with Java and Spring Boot [Video]

By: Ranjan Pandey

Overview of this book

JWT (JSON web token) is a standard for securing APIs in a Microservices architecture; using this standard, we can secure APIs’ built-in technology such as Nodejs, Python, .NET, and so on. But in this course, we will build APIs using Java and Spring Boot and then we will be securing them using JWT and Spring security. We will cover important concepts such as authentication, authorization, the importance of securing RESTful APIs, JWT (Json Web Token), various components and terminology associated with JWT, Workflow, and a diagrammatic use case of using JWT. Along the course, you will learn to implement JWT in our Spring Boot project by creating a Spring Boot project from scratch. We will add the required Maven dependencies and learn to set up projects in GitHub and follow a continuous integration process. You will also learn to create our Hibernate entity classes and start configuring JWT and Spring security. Moving further, we will configure the allowed and not allowed endpoints and create user registration and login endpoints. We will understand how to create role-based classes and create multiple roles as well as restrict users to functionalities based on roles. By the end of the course, you will learn to create security-related classes such as configuration, filters, and services, and learn to use Postman to test our APIs. All resources and code files are placed here: https://github.com/PacktPublishing/Practical-Bootcamp-JWT-Authentication-with-Java-and-Spring-Boot
Table of Contents (6 chapters)
Chapter 6
Token Expiry, Restrict API with Role Authority
Content Locked
Section 2
JWT Token Expiration
This video explains a JWT token expiration.