Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Authentication Module

I wanted to start building some common and useful building blocks for creating sites. First up would be something with authentication and user logins. So here we have an authentication module that allows for 3rd party based logins.

Long story short, you can use this to authenticate the user through places like Twitter, Facebook, Google+, and Mozilla's Persona.

You will need to copy and edit the "src/main/resources/" to "src/main/resources/" and fill in the proper "appid" and "appsecret" values for each service you want to enable. This will require a bit of diligence on your part to go to the service websites, register an app, and harvest the proper values.

During that process, you can tell the application that your request will be coming from http://localhost:8080/authentication/ as that's the default coded into the "src/main/resources/" file. You can change that as you wish though.

Once you have that information in place, you can change the .enabled for each service used to "true" and that should be all the setup you need.

This is my first crack at using maven, so YMMV, but if everything is setup right and I modified everything properly, you should be able to run the the sample application by running:

mvn tomcat7:run

and then load up http://localhost:8080/authentication/ (or whatever you set it to).

Let me know it if works :)

Maven Repository

For now, this repository is hosted on GitHub as:


and it will need to also load in classes from the Core Module.


A module for allowing 3rd party authentications in Java via locations like Twitter, Facebook, and Google+. Requires classes from the Core module:







No packages published