https://github.com/juggernaut/dropwizard-api-auth-example
REST API authentication example in Dropwizard
https://github.com/juggernaut/dropwizard-api-auth-example
Last synced: 12 months ago
JSON representation
REST API authentication example in Dropwizard
- Host: GitHub
- URL: https://github.com/juggernaut/dropwizard-api-auth-example
- Owner: juggernaut
- Created: 2018-01-28T10:24:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T03:29:14.000Z (over 8 years ago)
- Last Synced: 2025-01-31T15:42:04.163Z (over 1 year ago)
- Language: Java
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](http://leanjava.co/2018/01/29/exploring-rest-api-authentication-mechanisms/) explaining rationale.
How to start the dropwizard-api-auth-example application
---
1. Run `mvn clean install` to build your application
1. Start application with `java -jar target/dropwizard-api-auth-example-0.1-SNAPSHOT.jar server config.yml`
1. To check that your application is running enter url `http://localhost:8080`