Password-protected areas have become standard parts of any web application. Start by getting an overview of the process of authentication and a step-by-step plan for implementing the code needed to add user authentication to the application.
- [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 going to be purchasing tickets…
- Creating and configuring a new Ruby on Rails project
- Generating controllers and views
- Handling server requests
- Using different types of routes
- Rendering and viewing templates
- Generating migrations and models
- Creating, updating, and deleting records
- Finding records with queries
- Understanding relationship types
- Writing controllers for CRUD
- Working with layouts and helpers
- Managing application assets
- Building forms
- Validating data
- Authenticating users
Skill Level Beginner
1. What Is Ruby on Rails?
2. Get Started
3. Controllers, Views, and Dynamic Content
4. Databases and Migrations
5. Models and ActiveRecord
7. CRUD, REST, and Resourceful Routes
8. Controllers and CRUD
9. Layouts, Partials, and View Helpers
12. Data Validation
13. Controller Features
14. User Authentication
15. Improve the Simple CMS
Next steps1m 44s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.