Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1008 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 1008 Bytes

auth-service

Build Status LINE

Authentication service using spring boot written in Kotlin

Build

./gradlew build

Auth & Registration Endpoints

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.

Database

The service uses Postgres as its primary datasource.

Docker

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.