/dropwizard-login

example of a dropwizard api for login providing a session access token

Primary LanguageJava

Dropwizard login

Simple login example using Java Dropwizard.

Requirements

  • Java 1.7
  • Maven

Setup

To build: mvn package

To run jar: java -jar target/login-0.0.1-SNAPSHOT.jar server login-service.yml

  1. Point DB config at database matching the schema sql in db\schema.sql

  2. Create the yaml configuration file containing the DB config, login-service.yml

  3. Post to http://localhost:8080/session with valid values for fields 'username' and 'password' to try out.