This is an example of a typical custom authentication and authorization setup in our applications at Fingertips. www.fngtps.com
It has been stripped from any unnecessary code, mainly related to the view.
This code uses the following gems:
-
authorization-san: github.com/Fingertips/authorization-san
-
authentication-needed-san: github.com/Fingertips/authentication-needed-san