I am trying to implement right based security... but I am a noob so I'm running into some issues. One of my goals (the only thing giving me problems) is to be able to programatically determine if the current user has a given right or not.
I have built a custom membership provider, custom role provider, and with the help of various online resources I have a set of classes to implement rights. This all tests out well and I am able to secure my code declaratively (i.e. [RightAttribute(System.Security.Permissions.SecurityAction.Demand,RightName="access")] )
I have written a RightPrinciple class t ...
Go to the complete details ...