Skip to main content

Posts

Showing posts from June, 2019

How to make a Spring Boot application layout with JWT, authorizing users based on roles over the end-points using JPA, and JpaRespository

the main purpose of this project is to be able to set up a Spring Boot application using a security layer with spring-boot-starter-security,JSON web token to protect any path we need, just allowing the endpoints we need according to the roles who have got with the right permissions, the roles we are going to be working with are SUPERADMIN, ADMIN AND USER. we are also going to be using on the project spring-boot-starter-actuator, spring-boot-starter-web, spring-boot-starter-data-jpa,spring-boot-devtools, and mysql-connector-java. as developers we need to take advantage of time just focusing the most that we can on the business logic of the application rather than the standard functionality of the app, it takes a while when starting a project from scratch and even more when we are just starting in a new back-end language, in this case, Spring Boot, so this tutorial is for those ones who are starting in Spring boot and need to start a