Is it possible to store AuthorizationRules in the database?

Is it possible to store AuthorizationRules in the database?

Old forum URL: forums.lhotka.net/forums/t/6483.aspx


stiv posted on Sunday, February 22, 2009

Is it possible to store in the database the roles allowed to create, update or delete objects, or to read and write properties?
The idea is to allow the system administrator to create new customs roles without the need of new object compilations.

I understood, from Rocky´s book, that Csla manage custom security like this

Properties

AuthorizationRules.AllowWrite(NameProperty, "ProjectManager");

or

Objects

AuthorizationRules.AllowCreate(typeof(Project), "ProjectManager");

Is it possible at this level of the object life to gain access to the DB to read user permissions?

Thanks in advance,

Stiv

Programmer1987 replied on Monday, February 23, 2009

this is what I need , if you found the answer could forward it to me

thanks :)

tmg4340 replied on Monday, February 23, 2009

There have been discussions in the forum previously concerning this.  Here's a link to (an admittedly older) one:

http://forums.lhotka.net/forums/thread/10400.aspx

Otherwise, if you search the forums for something like "authorization rules database", you should get some decent information.

HTH

- Scott

Copyright (c) Marimer LLC