
Learn how to secure a Spring Boot application with JWT using Spring Security, covering authentication and authorization, with a hands-on setup and testing via Postman.
Explore the Spring Security workflow from request interception by an authentication filter to user verification via the authentication manager and provider, using the user details service and an in-memory database.
Explain what JSON web tokens are and how they are represented: a three-part, base64 URL-encoded token with header, payload (claims), and signature, preserving integrity and authenticity.
Define the user entity and repository, use uuid as id, create a role enum with admin and user, implement user details to expose authorities, and plan JWT service and filter.
Set up a spring jwt service by adding jwt dependency to pom.xml, inject secret from application.properties, generate signing key, build tokens with subject and expiry, and validate them.
Learn how to implement a JWT authentication filter in Spring Security, override the default security config, define authentication beans, and secure register and auth endpoints with role-based access.
Update your Spring security JWT service for jjwt 0.12.5 by replacing deprecated builder and signing key usage with verify with, using payload and secret key, and updating pom.xml.
Hello welcome to the spring security with jwt free master course, my name is Isaiah Osarobo and I'm the instructor of this course, for you to get started with this course you should already have a prior knowledge of how to develop a spring boot application and how to make use of github, However if you don't have any prior knowledge of how to create a simple spring boot application don't worry, you can checkout out my other free course on how to create a new spring boot application. In this complete spring security video tutorial we'll learn how to implement proper authorization and authentication logic for our springboot applications using spring security and Jwts following the updated standard. The major key concept we take a look at is how to provide proper configuration for authorization and authentication in a spring boot application. The complete project can be found in the github repository iocods/iocode-jwt-spring-security (Note I can't provide the full link due to Udemy restrictions). To get started with the tutorial and project you'll either have to create a simple spring application that exposes an endpoint or you clone the start branch of the above github repository using the command below: "git clone -b start --single-branch iocods/iocode-jwt-spring-security.git" Note: use the full link of github before the repository part.