This project is an API built using Java, Java Spring, PostgresSQL as the database, and Spring Security and JWT for authentication control.
- 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
- Clone the repository:
git clone https://github.com/YuriAz/spring-jwt-authentication.git
-
Install dependencies with Maven
-
Install PostgresSQL
- Start the application with Maven
- The API will be accessible at http://localhost:8080
The project utilizes PostgresSQL as the database.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request to the repository.
When contributing to this project, please follow the existing code style, commit conventions, and submit your changes in a separate branch.