RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: authentication xFree Episodes x
Facebook Authentication
Episode #360 – Jun 25, 2012 – 196 comments

Facebook Authentication

This will show how to create a new facebook application and configure it. Then add some authentication with the omniauth-facebook gem and top it off with a client-side authentication using the JavaScript SDK. (12 minutes)
Authentication in Rails 3.1
Episode #270 – Jun 13, 2011 – 138 comments

Authentication in Rails 3.1

Here I show off three new features in Rails 3.1 that will help with authentication: easier HTTP Basic, SecurePassword in the database, and forcing SSL. (7 minutes)
Authentication with Sorcery
Episode #283 – Sep 12, 2011 – 75 comments

Authentication with Sorcery

Sorcery is a full-featured, modular solution to authentication which leaves the controller and view layers up to you. (10 minutes)
Authentication from Scratch
Episode #250 – Jan 24, 2011 – 129 comments

Authentication from Scratch

Password authentication is not too complicated to make from scratch, it will also help to get a better understanding of how it works. (15 minutes)
Securing an API
Episode #352 – May 23, 2012 – 74 comments

Securing an API

There are many approaches to locking down an API. Here I start off with HTTP Basic authentication then move on to generating a unique token which can be passed through a URL parameter or HTTP header. (7 minutes)
Remember Me & Reset Password
Episode #274 – Jul 11, 2011 – 167 comments

Remember Me & Reset Password

It is easy to create authentication from scratch, but how do we extend it with more features? Here I add a "remember me" check box and a "forgotten password" link. (12 minutes)
Dangers of Session Hijacking
Episode #356 – Jun 08, 2012 – 82 comments

Dangers of Session Hijacking

If a user's authentication cookie is sent over an insecure connection it is vulnerable to session hijacking, or more specifically, sidejacking. Learn how this is done, and how you can prevent it. (6 minutes)
restful_authentication
Episode #67 – Aug 20, 2007 – 123 comments

restful_authentication

Need multiple user authentication? If so, the restful_authentication plugin is a great way to go. It will generate some basic authentication code for you which is good starting point to your authentication system. Watch this episode for details. (9 minutes)
Guest User Record
Episode #393 – Nov 21, 2012 – 101 comments

Guest User Record

Instead of presenting a sign up form to the user, consider creating a temporary guest record so the user can try out the application without filling in their information up front. They can then become a permanent member afterwards. (9 minutes)
OmniAuth Part 1
Episode #235 – Oct 11, 2010 – 104 comments

OmniAuth Part 1

OmniAuth is an easy way to add many different authentication services to your app. In this episode we start integrating it with Devise. (10 minutes)