Tag: web app

LDAP Authentication with Dropwizard

Authentication for your application may be crucial to its operation. Dropwizard provides a pretty clear description of different capabilities, but I thought I’d give a simple step-by-step implementation path. 1. Dependencies The good folks at yammer have provided this open source authenticator for Dropwizard specifically for LDAP. Add this to your pom: Please note, I’m […]

Request and Response Filters in Dropwizard

When constructing a Dropwizard application, there may be some pre-processing or post-processing you’d like to do on Resource methods. It’s fairly easy to add request and response filters in Dropwizard through the implementation of ContainerRequestFilter, ContainerResponseFilter, and ResourceFilterFactory, and adding them to the environment.

Dropwizard and SSL

Dropwizard can quickly start up a web server with little configuration required. The default server implementation uses http, running on port 8080 by default. But what if you want users to log into your web application? Dropwizard provides moderately useful documentation on setting up authenticators, but you should also update your server to run over […]

BasicAuthentication with AngularJS and DropWizard

DropWizard is an amazing tool for quickly creating deployable web applications. AngularJS is “HTML enhanced for web apps!” Endeavoring to put them together is pretty easy, but I recently ran into one more complex piece of functionality — user authentication. DropWizard ships with authentication options, the first of which I’ll describe implementing, Basic Authentication. Put […]

Bypassing Spring Security

Today I set out to provide accessible endpoints to a web application already behind Spring Security. My configuration locks down all requests going to the server (as will be shown below), and there is no easy way of adding an excludes parameter to the DelegatingFilterProxy (see various questions on Stack Overflow). My solution is actually […]

Integrating Spring Security pt 3

Injecting Custom Authentication You may recall from my first post in this series that my goal was to use Spring Security to enforce user authentication and authorization through my page while using my custom project Passport. Within Passport, I’ve built user management and an email confirmation component. The first hurdle to overcome was integrating Spring […]

Integrating Spring Security pt 1

Spring Security Coverage In this first part, I’m going to cover integrating Spring Security into a web application to authenticate users stored in a MySQL database. Introduction I’ve developed a project named Passport with which I plan to utilize in any project requiring users. Rather than constantly having to re-write the storage and access faculties, […]