- This is simple spring-boot RESTfull app with authorization and registration, save session by jwt tokens.
- Testing via
postman - In first registartion use username
adminfor default creatingadmin_role(we have 2 methods for registration user,or admin) - All table in db is empty,because we up db in docker,so table init when it start`s
- role admin can add only from method
registerAdmin(),done so for safety reasons,but I can change DTO for add role from request - App haven't gui,all tests in
postman - APP DOESN'T WORKING WITHOUT DOCKER (db in docker)
- Screenshots of testing in postman added to resources/Screen
Project is created with:
- Java: 11.0
- Spring-Boot version: 2.51
- auth0 version: 4.0.0
- image postgres for postgresql db: latest
To run this project(WARNING db up in docker-compose,so without docker app doesn`t work. For update jar file of app we have instruction)
docker build -t security-rest-docker.jar .docker compose up- If want to stop,using:
docker compose down
- cmd in folder SpringBootSecurityRest:
./mvnw clear install -DskipTests - in folder target copy
SpringSecurityApp-0.0.1-SNAPSHOT.jarand paste with overwriting in root folder