Authentication service using spring boot written in Kotlin
./gradlew build
Every authentication request is served by single endpoint that can be accessed through POST {host}/auth/login
. The service then verifies provided credentials (username, password) and returns either generated API token in case of success or 401 - Unauthorized
otherwise.
Registration is only allowed to user with admin rights.
The service uses Postgres as its primary datasource.
To build and run the service in a container fire one of following commands.
docker build -t pedro_cze/auth_service .
cd ./docker && docker-compose up -d
After that the service is exposed on port 8083
.