addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupsimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1outlookpersonJoin Group on CardStartprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Silicon Valley Ruby on Rails Message Board › Authorization Plugin 1.0 rc1 released

Authorization Plugin 1.0 rc1 released

A former member
Post #: 4
If you attended the last meeting, you heard me talk about the authorization plugin. It's been refined and now released into the wild.

I'm releasing 3 test apps with the plugin that will show you how to use the system. A reasonably lengthy description can be found here:

I will also be talking about the plugin's architecture in my RailsConf talk on Saturday in Chicago.

Some features:

- Nice English-like way of expressing permissions through roles and the objects which give the scope of the roles. You can say things like:
permit "(matz or dhh) and interested in Answers"

- The plugin easily handles roles associated with particular model instances. You can handle a moderator of meeting #23 as easily as you can handle a user being a general "site admin".

- You can choose how much database you'll use for the roles (and the complexity of your authorization system) through a choice of mixins. Each mixin provides "acts_as_authorized_user" for your User-like object and "acts_as_authorizable" for your authorizable objects.

- The test apps include an integration test with a simple DSL developed after reading Chad Fowler's most excellent Rails Recipe book. The object_roles_test app might be useful as a scaffold for new apps that want authentication and authorization.

- It's reasonably easy to hook into existing authentication systems.

Powered by mvnForum

Our Sponsors

  • Rocket Fuel

    We are hiring!


    Become a Ruby on Rails Pro w Ryan Bates's Pro Edition!


    Food and Drink Sponsor!

  • JetBrains

    1 RubyMine license to be raffled per month.

  • InformIT

    Up to 35% off every purchase on, Code USERGROUP

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy