Role based security and Permissions based security
From: Ryan Cromwell (RyanCromwell_at_discussions.microsoft.com)
Date: 11/30/04
- Next message: Mary Chipman: "Re: Is Strong Naming is Tamper-Proof?"
- Previous message: Kaustav: "RE: Storing encrypted SQlConnection string in a XML file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 30 Nov 2004 06:49:08 -0800
We have been using Role based security here for some time, but in general it
has added more support costs than the model used in our old COM systems. We
would very much like to integrate the other model into our .Net world, but
using the security framework provided by .Net for imperitive and declaritive
checks.
I'd like to here suggestions or criticisms to what we believe is the path to
follow.
Similar to the Win2k3 Auth Manager, we define Applications and
Permissions/Areas within those applications. The business is able to create
Groups/Roles and assign Application Permissions to these Groups/roles. This
allows the business to change the authorization boundaries as it's needs
change. We don't have to recompile or be involved when things like
Sarbanes-Oxley require further seperation of duties than previously
anticipated during development.
To support this, we are going to create a custom permission which is an
abstract base class (i.e. BaseCustomPermission) requiring the inheritor to
implement only the Application and Permission identifiers. Each application
can then create unique CustomPermissions for the different areas needed to be
secured. The BaseCustomPermission's implementation of the IPermission class
would check that the Thread.CurrentPrincipal has the appropriate permissions.
Our current Principals could still be used with the PrincipalPermission
checks for specific Role checks, but I would foresee the BaseCustomPrincipal
implementation more often.
I would very much appreciate some comments as I have found little
documentation as to the validity of this venture.
- Next message: Mary Chipman: "Re: Is Strong Naming is Tamper-Proof?"
- Previous message: Kaustav: "RE: Storing encrypted SQlConnection string in a XML file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|