REST API authentication example in Dropwizard
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

An exercise in implementing authentication for a Dropwizard REST API

DISCLAIMER: I'm not a security expert, and this code is not reviewed by a security expert. For production, you should use a hardened library like Spring-Security.

Full blog post explaining rationale.

How to start the dropwizard-api-auth-example application

  1. Run mvn clean install to build your application
  2. Start application with java -jar target/dropwizard-api-auth-example-0.1-SNAPSHOT.jar server config.yml
  3. To check that your application is running enter url http://localhost:8080