Forum: Ruby on Rails [ANN] Consent: a firewall DSL for ActionController

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
(Guest)
on 2009-01-03 22:36
(Received via mailing list)
Hey all,

In response to some ideas from a friend, I've hacked up Consent, a
plugin that provides pre-filtering of incoming requests using a
concise DSL:

http://github.com/jcoglan/consent

It lets you specify rules that tell your app whether to accept an
incoming request, redirect or render a 403. If the request is
rejected, it never hits your controllers; Consent factors all your
access control logic into a single file that acts as an intermediary
between your routes and your controllers.

I've only been working on it a couple of afternoons but it's
reasonably tested and documented to the point where it might be useful
to others and open to feedback. Let me know if you try it out, and if
any of it seems in need of improvement.
This topic is locked and can not be replied to.