Sha256: 5500c6eaa949dac555aad0a01a1629bfdcae9ed2b7c1da9644f5f40cb4d40ba5
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
= Sinatra::Warden A Sinatra (http://github.com/sinatra/sinatra) module that provides authentication for your Sinatra application through Warden (http://github.com/hassox/warden). == Usage require 'sinatra' require 'sinatra_warden' class Application < Sinatra::Base register Sinatra::Warden get '/admin' do authorize!('/login') # require session, redirect to '/login' instead of work haml :admin end get '/dashboard' do authorize! # require a session for this action haml :dashboard end end == More Information Please read the wiki (http://wiki.github.com/jsmestad/sinatra_warden) for more information on more advanced configurations. == Note on Patches/Pull Requests $ git clone git://github.com/jsmestad/sinatra_warden.git $ cd sinatra_warden $ bundle install $ bundle exec rake * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. * Send me a pull request. Bonus points for topic branches. == Contributors * Justin Smestad (http://github.com/jsmestad) * Daniel Neighman (http://github.com/hassox) * Shane Hanna (http://github.com/shanna) * Alex - crhym3 (http://github.com/crhym3) == Copyright Copyright (c) 2009 Justin Smestad. See LICENSE for details.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra_warden-1.0.0 | README.rdoc |
sinatra_warden-0.3.2 | README.rdoc |