• Stars
    star
    1,508
  • Rank 30,111 (Top 0.7 %)
  • Language
    Java
  • Created over 1 year ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sample project on how to implement JWT security based using Spring boot 3 and Spring security 6

Spring Boot 3.0 Security with JWT Implementation

This project demonstrates the implementation of security using Spring Boot 3.0 and JSON Web Tokens (JWT). It includes the following features:

Features

  • User registration and login with JWT authentication
  • Password encryption using BCrypt
  • Role-based authorization with Spring Security
  • Customized access denied handling
  • Logout mechanism
  • Refresh token

Technologies

  • Spring Boot 3.0
  • Spring Security
  • JSON Web Tokens (JWT)
  • BCrypt
  • Maven

Getting Started

To get started with this project, you will need to have the following installed on your local machine:

  • JDK 17+
  • Maven 3+

To build and run the project, follow these steps:

  • Clone the repository: git clone https://github.com/ali-bouali/spring-boot-3-jwt-security.git
  • Navigate to the project directory: cd spring-boot-security-jwt
  • Add database "jwt_security" to postgres
  • Build the project: mvn clean install
  • Run the project: mvn spring-boot:run

-> The application will be available at http://localhost:8080.

More Repositories

1

spring-boot-websocket-chat-app

Chat application using Spring boot and websocket
CSS
89
star
2

oauth2-social-login

This repository contains a Spring Boot 3 project that demonstrates how to secure an API with OAuth 2.0 and provide social login using GitHub, Google, and Facebook.
Java
52
star
3

springboot-3-micro-service-demo

Micro services architecture with spring boot 3
Java
49
star
4

keycloak-integration-with-spring-boot-3

Java
43
star
5

one-to-one-chat-spring-boot-web-socket

Java
29
star
6

spring-boot-for-beginners

Spring boot application for complete beginners. The full course is available on my website
Java
23
star
7

apache-kafka-with-spring-boot-reactive

Java
20
star
8

tfa-spring-boot-3-angular

Two Factor Authentication Flow with Spring boot 3 and Angular
Java
19
star
9

spring-boot-angula-banking-app

Banking application with Spring boot and Angular
TypeScript
16
star
10

ali-bouali

15
star
11

login-registration-with-email-validation

login-registration-with-email-validation
Java
14
star
12

spring-data-jpa-pro-class

Java
14
star
13

spring-boot-3-mongo-db

Java
13
star
14

angular-crash-course

πŸš€ Angular Crash Course for Beginners πŸš€
TypeScript
12
star
15

gestion-de-stock-api

Java
12
star
16

bootcamp-spring-boot

Java
12
star
17

gestion-de-stock-frontend

TypeScript
12
star
18

design_patterns

Java
11
star
19

spring-boot-video-call-app

Video call App using Spring boot and ZegoCloud
HTML
11
star
20

spring-boot-workshops

Java
10
star
21

todo-app-api

Java
10
star
22

spring-boot-bootcamp

Java
10
star
23

spring-boot-file-upload

Java
9
star
24

todo-app-frontend

TypeScript
7
star
25

springboot-3-paypal-integration

Spring boot 3 with Paypal payment integration
HTML
7
star
26

aws-deploy-demo

Java
7
star
27

login-register

Java
6
star
28

spring-reactive-demo

Demo project for working with Spring boot reactive using R2DBC and postgresSQL as a DB
Java
5
star
29

spring-batch-demo

Java
5
star
30

angzlar-bootcamp-e-learning-app

TypeScript
5
star
31

demo

Java
4
star
32

java-tutorial

Java
4
star
33

radioKFM

2
star
34

bootcamp-angular

TypeScript
2
star
35

alibou-spotlight-chrome-extension

JavaScript
2
star
36

angular-bootcamp

TypeScript
2
star
37

springEmptyProject

A Java spring MVC empty project
1
star