Have a question?
Message sent Close
4.1
115 reviews

Implement JWT Authentication with Java & SpringBoot in 2023

UPDATED-2023 - Learn to secure your SpringBoot based RESTful API's using Role Based JWT Authentication & Authorization
Instructor
Ranjan Pandey
18,142 Students enrolled
  • Description
  • Curriculum
  • FAQ
  • Reviews

This course has been updated in 2023 as per new Spring Security Features and JWT Specification to implement Role Based Authentication & Authorization of any SpringBoot based Application.

JWT(Json web token) is a standard for securing API’s in a Microservices architecture, using this standard we can secure API’s built in any technology like Nodejs, Python, .NET etc but in this course we will building API’s using Java and SpringBoot and than we will be securing them using JWT and Spring security, we will also use all the industry best practices and standards along the way.

We will start with learning concepts like:

  • What is Authentication
  • What is Authorization
  • Importance of securing RESTful API’s
  • What is JWT(Json Web Token)
  • Various components and terminology associated with JWT
  • Workflow and a diagramatic use case of using JWT

Than we will move on to the actual handson and implementation of JWT in our Springboot project by following below steps:

  • Create springboot project from scratch
  • Adding required maven dependencies
  • Setup project in Github and follow continous integration process
  • Setting up database and establishing connection
  • Create our Hibernate entity classes
  • Create our controller class
  • Create the first API
  • Start configuring JWT and Spring security
  • Create security related classes like configuartion, filters, service
  • Making the secret and expiration time configurable
  • Configuring the allowed and not allowed endpoints
  • Creating user registration and login endpoints
  • Creating Role based classes
  • Create multiple roles
  • Restrict users to functionalities based on Roles
  • Setting up github to push code with token
  • Creating a JWT token
  • Using the JWT token to call a secured API
  • Using Postman to test our API’s
  • Mechanism to check if a particular JWT token is valid or not
  • Extracting user information and role information from JWT token
  • Complete source code
Old: Overview and SpringBoot Project and Git setup
Old: JWT Config, UserDetailsService, AuthenticationFilter, Postman Testing
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.1
115 reviews
Stars 5
67
Stars 4
28
Stars 3
15
Stars 2
1
Stars 1
4
13020
Share
30-Day Money-Back Guarantee
Course details
Video 7 hours
Lectures 3
Certificate of Completion
Full lifetime access
Access on mobile and TV

External Links May Contain Affiliate Links read more

Join our Telegram Channel To Get Latest Notification & Course Updates!
Join Our Telegram For FREE Courses & Canva PremiumJOIN NOW