This project uses Spring Boot 3.0 and JSON Web Tokens (JWT) to implement security. The main features and required technologies are listed below.
- User registration and login with JWT authentication
- Password encryption using BCrypt
- Role-based authorization via Spring Security
- Customized access denied handling
- User logout mechanism
- Refresh token
- Spring Boot 3.0
- Spring Security
- JSON Web Tokens (JWT)
- BCrypt
- Maven
Ensure that you have the following installed on your local machine:
- JDK 17+
- Maven 3+
To get started with the project, do the following:
- Clone the repository:
git clone https://github.com/followdeklerk/spring-boot-3-jwt-security.git
- Navigate to the project directory:
cd spring-boot-security-jwt
- Add database "jwt_security" to your Postgres setup
- Build the project:
mvn clean install
- Run the project:
mvn spring-boot:run
The application will now be accessible at https://localhost:8080.