User Authentication with Rails

Treehouse
Course Summary
A common piece of functionality across web applications is having user accounts. In this course, we're going to add user accounts to our existing todo list application ODOT. You'll learn all about creating user accounts, how to securely hash passwords, allowing users to sign in and out of the application, and reset their password. We'll also write tests along the way.
-
+
Course Description
About this Course A common piece of functionality across web applications is having user accounts. In this course, we're going to add user accounts to our existing todo list application ODOT. You'll learn all about creating user accounts, how to securely hash passwords, allowing users to sign in and out of the application, and reset their password. We'll also write tests along the way. What you'll learn
- ruby
- rails
- authentication
- password hashing
About the Teacher
Jason helped launch Treehouse and spent 4 years teaching here before returning to Rails development full time.
-
+
Course Syllabus
Password Hashing and Sign In
Security is very important when creating user accounts in our application. In this stage, we'll learn all about how to safely store login credentials in our application and create our User model. 14 steps- Project Overview 1:11
- How Password Hashing Works 4:49
- How Password Hashing Works 4 questions
- Creating the User Model: Part 1 6:31
- Creating the User model: Part 2 9:50
- Creating the User Model 4 questions
- Using has_secure_password 11:02
- Using has_secure_password 2 questions
- Creating the Sessions Controller 11:28
- Testing Session Creation 10:16
- Creating the Sessions Controller 4 questions
- Testing Session Creation 3 questions
- Integration testing authentication 9:14
- Password Hashing and Sign In 7 questions
Adding User Support to Our Application
Our application is currently written with the concept of a single person using it. We can register for the application and sign in and out, however, todo lists and items do not belong to any particular user. In this stage, we'll refactor our application to add user support. 8 stepsPassword Resets and Testing
Logging in and out of a web application is only half the battle. If a user forgets their password, it is important to have a way for them to reset it. In this stage we'll implement a way of resetting a forgotten password while writing tests along the way. 13 steps