Identity is tough topic. How do you guarantee secure application authentication, maintain a great user experience, but not have to spend weeks on development?

Introducing Auth0, providing painless Enterprises Single Sign-On, including Active Directory, LDAP and/or SAML based identity systems. As well as simple OAuth provider integration, supporting Google, Facebook, Amazon, Microsoft, Salesforce and many more…

Auth0 have some great getting started guides, however to make life even easier I thought I would share my simple Rails scaffolding.

The Auth0 and Rails Scaffolding is a Ruby on Rails application, with Auth0 and Postgres pre-configured. It’s also ready to be deployed to Heroku, thanks to the rails_12factor gem.

Personally I have been using Auth0 with the Force.com strategy, to drive Single Sign-On for my users, however thanks to the simple Auth0 admin console, it should be easy to add any other strategy, either SAML or OAuth.

Below is the list of the gems bundled with the project:

activerecord-session_store
byebug
coffee-rails
jbuilder
jquery-rails
omniauth
omniauth-auth0
pg
puma
rails
rails_12factor
sass-rails
sdoc
spring
turbolinks
uglifier
web-console


You can find the Auth0 and Rails Scaffolding on GitHub (pull requests welcome).