Simple implementation of a custom MembershipUser and Membership provider

I've just uploaded a demo which extends the AccessMembershipProvider and the MembershipUser:

        http://projectdistributor.net/Projects/Project.aspx?projectId=73

In this project I create a derived AccessMembershipProvider and a derived MembershipUser to show one quick-n-dirty method of extending a membership user without having to totally rewrite the data access level code that comes out of the box.

The derived member adds a property called Permissions which is a rich type and allows a finer level of permissions than the simple string[].

The Roles API in ASP.NET 2.0 works with a string[] of roles. For example, John Doe might have the following roles: "Administrator", "Editor", etc…

But, what if John has different roles on a per category or per group basis? Like, John is an "Administrator" in Group A but is only an "Editor" in Group B.

That's the use case behind this demo.

1 Comment

Comments have been disabled for this content.