The aim of this project was to tinker around with Spring Security and implement JWT using user-defined roles.
- Java
11 - Spring Boot
2.7.4 - PostgreSQL
14
- Update
spring.datasourcevalues inapplication.properties - Update the expiration time for
access_token(default: 10 minutes) andrefresh_token(default: 30 minutes) inFilterUtilsaccording to your needs.
This project will act as a template for my future Spring Boot projects that require JWT-based authentication and authorization. The structure of this project is fairly simple so refactoring can be done with ease, as and when necessary based on the requirements of new projects.