https://github.com/hoangthong37/jwt-security-springboot
Project on how to implement JWT security based using Spring boot 3 and Spring security 6.
https://github.com/hoangthong37/jwt-security-springboot
intellij jwt postgresql spring-boot spring-security
Last synced: 5 months ago
JSON representation
Project on how to implement JWT security based using Spring boot 3 and Spring security 6.
- Host: GitHub
- URL: https://github.com/hoangthong37/jwt-security-springboot
- Owner: HoangThong37
- Created: 2024-03-24T18:36:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-27T10:32:18.000Z (over 2 years ago)
- Last Synced: 2025-02-19T05:42:24.779Z (over 1 year ago)
- Topics: intellij, jwt, postgresql, spring-boot, spring-security
- Language: Java
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Security: security/.gitignore
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:
To build and run the project, follow these steps:
* Clone the repository: `git clone https://github.com/HoangThong37/JWT-security-springboot`
* 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.