Skip to content
Rails authentication from scratch
Ruby HTML CSS Other
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
bin
config
db
lib
log
public
script/ci
spec
vendor/assets
.gitignore
.rspec
.ruby-version
.travis.yml
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Decent Authentication

Build Status Code Climate Test Coverage

Decent Authentication is a sample application that implements authentication in Rails 4 without the use of a third-party generator or engine. This is essentially a complete reproduction of Ryan Bates' Authentication from Scratch railscast with the addition of my RSpec test suite. In addition to authentication, features include rememberable cookie, password reset, and forwarding to protected routes.

Implementations in older versions of Rails are noted in their respective git tags.

Dependencies

  • Ruby 2.2
  • PostgreSQL

Getting Started

# install gems, create database.yml config, and setup the database
./bin/setup

# run the test suite
./bin/rake
Something went wrong with that request. Please try again.