Practical JWT Authentication with Java & SpringBoot

  • Ranjan Pandey

  • Duration : 02:11:21
  • Enrolled : 25
  • Level : beginner
  • Views : 1139


What you will learn

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


Ranjan Pandey
Fullstack DevOps software professional with 13+ years of experience

I am a Fullstack DevOps software professional with 13+ years of experience in variety of technologies ranging from web and mobile app development using HTML5, CSS3, JavaScript, JQuery, Bootstrap, Angular, React, Java, Spring, Springboot, Python, Flask, Django, NodeJS, Express, Android, Ionic, React Native, Flutter to Artificial Intelligence and Cloud technologies like Amazon web services and Microsoft Azure. I am also certified in Java, Azure cloud, Backbase product. I have experience in working with multiple MNC's and European clients. I am also a corporate trainer providing a wide range of training.


Total Number of Students 7
Generic placeholder image
John Parkar

Address goes here

Generic placeholder image
John Parkar

Address goes here

Generic placeholder image
John Parkar

Address goes here

Generic placeholder image
John Parkar

Address goes here

Generic placeholder image
John Parkar

Address goes here

Generic placeholder image
John Parkar

Address goes here