An example implementation of authentication in Sinatra.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
db
lib
spec
.gitignore
.travis.yml
Gemfile
Gemfile.lock
Rakefile
config.ru
readme.md

readme.md

SinatraAuth

Build Status Dependency Status

This is an example implementation of authentication in Sinatra. It comes complete with integration, and unit tests using RSpec and Capybara, and uses ActiveRecord as an ORM.

My intention is that this code can be used, or built upon in your own Sinatra applications. Feel free to contribute suggestions, fixes, and comments via pull requests, or the issue tracker. :octocat:

Usage

Here is how to use it.

Install it

git clone git@github.com:nickbarth/SinatraAuth.git
cd SinatraAuth
bundle

Generate the database

rake db:migrate

And run it!

$ thin start
>> Using rack adapter
>> Thin web server (v1.5.0 codename Knife)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop

License

WTFPL © 2012 Nick Barth