The easiest XML Role Provider that I can come up with

13. September 2007

I have looked at a lot of versions of xmlroleproviders and this one is the easiest so far.  I just pasted all the code so you can see the entire thing.  Some things to note is that there are self healing "roles" that get added to the role provider regardless what the end users want.  It also creates the file and adds the default roles if the file does not exist.  That is a safeguard for the developer.  We are using this on BE 1.2 and it seems to be going well.  At first I was just going to add a "readonly" approach but saw the light and viola.  Let me know if you have any questions. 

More...

,

BlogEngine.Net updates

24. August 2007

Here are some things that I am working on or have done for the BlogEngine.Net

  1. I added an xmlroleprovider (read only version)
  2. Added a sitemap for the admin pages with security trimming.  Required rewriting the menu.aspx.cs code. 
  3. Updated the Syntax formatting.  It now works.  See the http://www.codeplex.com/blogengine/WorkItem/View.aspx?WorkItemId=3103 for details.
  4. I spoke with Mads about the outstanding issues and the impending release of 1.2.  Oh yeah, we are jamming this one up with lots of goodies.  I think more than we expexted.
  5. Revamped the comments with more administrator controls.  Like approving individual comments on a post and approve all the comments on a post.

I am letting everyone get a chance to play with my current changes to see where there can be improvements, enchancements, changes, etc.  Meanwhile, I will be working on the write version of the xmlroleprovider.  The xmlroleprovider will have the following features.

  • It will make sure there is a roles.xml file everytime it fires up and make sure there are two roles included; administrators and editors. The names are so the ActiveDirectory can be mapped properly without killing the application because of roles.
  • If no existing user is included in the required roles it will add all of the users to the administrators and editors role.  You will be able to remove them later.
  • You will be able to add/remove users from roles.
  • You will be able to create/delete roles.  You will never be able to delete the administrators and editors roles.  We may be tying that into code security executions.

Did I forget anything?

.Net, BlogEngine.Net , ,