RubyGems Navigation menu

authorizer 0.0.1

Authorizer is a gem for Ruby (in conjunction with Rails 2.3) that does authorization for you on a per-object basis. What makes this gem different from e.g. declarative_authorization and cancan is they define one role for the entire application. With Authorizer, you define roles for different users on every Rails object. Let's use a Dropbox analogy. With Dropbox, you can choose which folder you want to share. For instance: Al has a home folder with these subfolders in it: - Music (shared with Bob) - Pictures (shared with Casper and Bob) - News (shared with no-one) This causes Al to have all 3 folders in his Dropbox. Bob has 2 and Casper has only 1 folder called Pictures. In other words, a user has access to a subset of the entire collection of folders. Bob has access to 2 of Al's folders, namely Music and Pictures. But he doesn't even see the News folder, nor can he download files from it. Bob's access to the two folders is both read and write, so let's call that role "admin". Al is the owner of all 3 folders and has a role called "owner". This leads to the following Roles table: folder_name user_name role Music Al owner Bob admin Pictures Al owner Bob admin Casper admin News Al owner Now if we would allow Bob to also access the News folder but only read from it, we could add the role called "reader" to the table: folder_name user_name role News Bob reader This is exactly what Authorizer does for your Rails application.

Gemfile:
= Copier Copié!

installation:
=

Versions:

  1. 0.0.6 - March 05, 2012 (15 ko)
  2. 0.0.5 - December 30, 2011 (15 ko)
  3. 0.0.4 - October 12, 2011 (14,5 ko)
  4. 0.0.3 - October 03, 2011 (14 ko)
  5. 0.0.2 - August 22, 2011 (13 ko)
  6. 0.0.1 - July 26, 2011 (12,5 ko)
Voir toutes les versions (6)

Dépendances de Runtime (1):

options_checker >= 0.0.1

Dépendances de Development (1):

hoe >= 2.8.0

Propriétaires:

Auteurs:

  • CmdJohnson

Total de contrôle SHA 256:

0b2680e4587e85e3322aa4594995f6a60107a52f033042ef0d51b026fec9b435

Total de téléchargements 26 932

Pour cette version 4 349

License:

aucune

Version de Ruby requise: None

Liens: