with - how to create roles in asp.net membership using c#




Admin pages to manage asp.net membership provider & Role management (4)

Are there any open source projects that provide a front end to asp.net membership provider? Something like the one visual studio exposes through it configuration, but one that can be deployed on production.

Examples of some of the functionality I would like to see in the front end is

  • Add users
  • Delete users
  • Reset password
  • Change roles.
  • Add roles

Etc




I found this MembershipStarterKit From TroyGoode on github:

What is the Asp.Net MVC Membership Starter Kit?

The starter kit currently consists of two things:

  1. A sample website containing the controllers, models, and views needed to administer users & roles.
  2. A library that provides testable interfaces for administering users & roles and concrete implementations of those interfaces that wrap the built-in Asp.Net Membership & Roles providers.

Out of the box, the starter kit gives you the following features:

  • List of Users
  • List of Roles User
  • Account Info
  • Change Email Address
  • Change a User's Roles

It looks like it's based on MVC 2, and I'm not sure it works on anything else. You do have the code though, so it shouldn't be hard to re-use this in MVC 3 or Web Forms.

Update

In the mean time, I forked the project and updated everything to MVC 3 razor. I also packaged the views up into a Portable Area (mvcContrib).

You can find the fork here:

https://github.com/fretje/MembershipStarterKit








membership-provider