Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ali-bouali/spring-boot-3-jwt-security
Sample project on how to implement JWT security based using Spring boot 3 and Spring security 6
https://github.com/ali-bouali/spring-boot-3-jwt-security
authentication docker docker-compose intellij-idea jwt jwt-authentication postgressql spring-boot spring-security
Last synced: 5 days ago
JSON representation
Sample project on how to implement JWT security based using Spring boot 3 and Spring security 6
- Host: GitHub
- URL: https://github.com/ali-bouali/spring-boot-3-jwt-security
- Owner: ali-bouali
- License: apache-2.0
- Created: 2022-12-29T13:21:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-01T16:58:29.000Z (7 months ago)
- Last Synced: 2025-01-09T05:07:45.203Z (12 days ago)
- Topics: authentication, docker, docker-compose, intellij-idea, jwt, jwt-authentication, postgressql, spring-boot, spring-security
- Language: Java
- Homepage: https://aliboucoding.com/p/securing-your-spring-boot-3-0-applications-with-json-web-tokens-jwt
- Size: 78.1 KB
- Stars: 1,899
- Watchers: 30
- Forks: 889
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.