Go to file
Hyojin Ahn 68233402fc [Auth] Changed JWT into Cookie 2026-01-27 13:46:28 -05:00
.mvn/wrapper token, auth, role, permission 2025-11-19 08:21:33 -05:00
src [Auth] Changed JWT into Cookie 2026-01-27 13:46:28 -05:00
.gitignore token, auth, role, permission 2025-11-19 08:21:33 -05:00
LICENSE token, auth, role, permission 2025-11-19 08:21:33 -05:00
README.md token, auth, role, permission 2025-11-19 08:21:33 -05:00
docker-compose.yml token, auth, role, permission 2025-11-19 08:21:33 -05:00
mvnw token, auth, role, permission 2025-11-19 08:21:33 -05:00
mvnw.cmd token, auth, role, permission 2025-11-19 08:21:33 -05:00
pom.xml [auth] Added generating system token. For example, opr-rest-api needs a token to call hcm-rest-api in scheduler. 2026-01-14 11:42:49 -05:00

README.md

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.