OAUTH2 REST API created to the USociety project.
This RESTful microservice has the function of the Authorization server, it’s the authentication manager that you have to consume to authenticate a user into the system and get the token that allows the successful interaction with all the APIs.
- Recreate a local database:
docker-compose -f src/main/resources/docker-db.yml up --build
- Compile Spring project and generate jar file:
mvn clean install
- Build local docker image:
docker build -t u-society/authentication .
- Run image into a docker container:
docker-compose up --build -d
- Show container logs:
docker-compose logs -f
- Stop container:
docker-compose down -v
- Base API path:
http://localhost:8075/users
- Swagger documentation:
http://localhost:8075/manager/swagger-ui.html
.
- Spring boot.
- Docker.
- Docker compose.
- RDS (Amazon Relational Database Service).
- Maven manager dependency.
- MySQL.
- OAUTH2.
- Spring Security + JWT.
- Swagger UI.
- Apache tomcat.
- Model mapper.
- Jackson databind.
- Apache commons lang3.
- JUnit 4 + Mockito.
- If you want to change the general server configurations (as port), you can change the environment variables from this file
src/main/resources/development.env
. - When you run the docker db container, the database is going to be populated using the seeders files
src/main/resources/data.sql
andsrc/main/resources/import.sql
(If you want to avoid it remove the entry points localized in the .yaml file).