RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: authentication x
Facebook Authentication
Episode #360Jun 25, 2012196 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 from Scratch (revised)
Episode #250Feb 25, 2012100 comments

Authentication from Scratch (revised)

Simple password authentication is easy to do with has_secure_password. Here you will learn how to make a complete Sign Up, Log In, and Log Out process as well as restrict access to certain actions. (13 minutes)
Authentication with Warden
Episode #305Dec 05, 201144 comments

Authentication with Warden

Warden makes it easy to move authentication up into Rack middleware. This means authentication can be accessed outside of a Rails controller such as in routes or in a mountable engine. (12 minutes)
Authentication in Rails 3.1
Episode #270Jun 13, 2011138 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 #283Sep 12, 201175 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 #250Jan 24, 2011129 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)
Devise and OmniAuth (revised)
Episode #235Jul 13, 2012134 comments

Devise and OmniAuth (revised)

In this episode I build upon a standard Devise setup and show how to add 3rd party authentication using OmniAuth. This includes support for user validations and is compatible with normal password authentication. (10 minutes)
Devise (revised)
Episode #209Jul 06, 201275 comments

Devise (revised)

Devise is one of the most popular authentication plugins for Rails. Here I show how to set it up with a User model and configure the modules, views, routes, and more. (8 minutes)
Securing an API
Episode #352May 23, 201274 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 #274Jul 11, 2011167 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)