In this sample app I'm illustrating the concept of the authentication based on warden widdleware with ruby on rails (rails 4.0.4 & ruby 2.0.0p353) in a very basic manner, with tree actions Sign up, Sign in and Sign out.