Taking It to the Next Level with Devise and Capybara
If any of our applications are going to provide an interface for translations, we should make sure this interface is password-protected and that we can properly test its functionality. In this section, let’s look at Devise,[53] a full-stack authentication solution based on Rack, and take a deeper look at how we can use Capybara to test Rack applications.[54]
Adding Cross-Application Authentication
Devise is an interesting solution for authentication because it provides, in very few lines of code, a whole authentication stack, with sign-in, sign-up, password recovery, and more. It uses Warden to move the authentication handling to the middleware stack,[55] allowing any application, whether ...
Get Crafting Rails 4 Applications, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.