From the course: Ruby on Rails 5 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Authentication introduction

Authentication introduction - Ruby on Rails Tutorial

From the course: Ruby on Rails 5 Essential Training

Start my 1-month free trial

Authentication introduction

- [Instructor] In this chapter, we will learn to restrict access to a portion of our application so that only users who log in with a valid username and password can have access to them. We call this process user authentication. User authentication is not exactly a beginner topic, but there are a couple of reasons that I think it's worthwhile to include. First is that password-protected areas are extremely common. You're almost guaranteed to need one in any site that you build. Second, if you need it, then it's important to add it correctly, because mistakes in this area can be extremely costly. It also helps reiterate the point that site development choices and site security go hand-in-hand. You need to be mindful of security in every part of your code. Last, it's going to give us a chance to look at a few more features in Rails. Before we dive into the nuts and bolts of authentication, I want to give you an analogy that I think will help you to understand it. Imagine that you're…

Contents