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

4.60 (128 reviews)
Udemy
platform
English
language
Web Development
category
instructor
19,190
students
7.5 hours
content
Sep 2023
last update
$54.99
regular price

What you will learn

You will learn basics of security like Authentication and Authorization

You will learn everything about JWT(JSON Web Token)

You will learn to Implement JWT with SpringBoot and Spring Security

You will learn to Implement Role Based Authentication & Authorization with JWT & Spring Security

You will learn to setup a SpringBoot project from scratch

You will learn to create API's which will talk to Database using Spring Data JPA

You will learn to protect your API's based on user role

You will get the complete source code

Description

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

Content

Basics of JWT, Authentication, Authorization

Everything about JWT, Authentication, Authorization

Overview and SpringBoot Project and Git setup

JWT use case, Springboot setup, Github setup
Configuration for JWT and Spring security Implementation

JWT Config, UserDetailsService, AuthenticationFilter, Postman Testing

JWTConfig, UserDetailsService, AuthenticationManagerBuilder Implementation
JWTConfig, UserDetailsService, HttpSecurity Implementation
JWT Util Implementation
JwtController, JwtRequest, JwtResponse Implementation
JwtAuthenticationFilter Implementation

Testing secured API with token and Git push

Testing API Endpoints with Postman
Git Commit Push to Github

Database, Entity, Login, Register, Testing

Database-Setup-Entity-Creation
ManyToMany-Relationship
RoleRepository-RoleModel-UserDetails
User-Register-Login-Jwt-Configuration
Testing-APIs-Security-CurrentUser

TokenExpiry, Restrict-API-with-Role-Authority

Saving-Getting-Role-Authority
JWT-Token-Expiration
Restrict-API-with-Role-Authority

Source code

Github link to source code

Screenshots

Implement JWT Authentication with Java & SpringBoot in 2023 - Screenshot_01Implement JWT Authentication with Java & SpringBoot in 2023 - Screenshot_02Implement JWT Authentication with Java & SpringBoot in 2023 - Screenshot_03Implement JWT Authentication with Java & SpringBoot in 2023 - Screenshot_04

Reviews

Gibbsson
September 5, 2023
it would be good to update the course with spring security 6 and spring boot 3, they are the most recent versions, I hope a prompt response from the teacher
Loi
April 23, 2022
Instructor is very good in explaining concept while writing the code as well and does not shy away from hiding any mistake and later also shows how to solve the issue which is good for learning how to solve errors as well, good course

Coupons

DateDiscountStatus
8/29/2021100% OFF
expired
8/30/2021100% OFF
expired
8/31/2021100% OFF
expired
11/23/2021100% OFF
expired
12/10/2021100% OFF
expired
12/26/2021100% OFF
expired
1/12/2022100% OFF
expired
6/3/2022100% OFF
expired
6/4/2022100% OFF
expired
6/13/2022100% OFF
expired
7/1/2022100% OFF
expired
7/4/2022100% OFF
expired
9/13/2023100% OFF
expired

Charts

Price

Implement JWT Authentication with Java & SpringBoot in 2023 - Price chart

Rating

Implement JWT Authentication with Java & SpringBoot in 2023 - Ratings chart

Enrollment distribution

Implement JWT Authentication with Java & SpringBoot in 2023 - Distribution chart

Related Topics

4251842
udemy ID
8/19/2021
course created date
8/29/2021
course indexed date
JasonDavidES
course submited by