O'Reilly logo

Rails, Angular, Postgres, and Bootstrap, 2nd Edition by David B. Copeland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding Authentication with Devise

An authentication system is a great first step into thinking about problems as a full-stack developer—we want the user experience to be great, but we also want the back end to be secure, all the way down to the data layer. We’ll use the Devise[19] gem to handle the middleware bits of authentication.

Creating an authentication system from scratch is rarely a good idea. It’s difficult to get every part of it correct, because security controls can be subverted in unusual and counterintuitive ways. Devise is tried-and-true and handles all of this for us. It’s also quite flexible and will totally suit our needs. Here are the rules we want for our authentication system:

  • Employees who need to use our app will sign ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required