the "Kosher" way to register custom authorization rules

the "Kosher" way to register custom authorization rules

Old forum URL:

breakphreak posted on Thursday, July 29, 2010

hey there :)

Just discovered in the source a static method, called "AddObjectAuthorizationRules()" that every business object type (for example) might implement. I find it very useful for the following pattern (problem description will follow):



Implementation details:






Possible solutions (both not very "Kosher"):



As you might see, neither option is very exciting and looks more like a workaround. Assumed you've considered issues like mine, when designing the cool library, it would be great to hear a bit of advice regarding the better solution that fully complies to the Csla state of mind.


Update: continued here:


Copyright (c) Marimer LLC