Alex
Alex

Reputation: 33

ASP.NET custom role management

There is Role Management feature in ASP.NET It works on local development machine.

For our project we need customers admin to be able to create new users and manage their roles. So, basically same what aspnet_regsql.exe does.

Question is Should we develop our own pages and forms or use some ready made tool?

Thanks!

Upvotes: 3

Views: 5751

Answers (4)

Martin
Martin

Reputation: 11

I faced the same problem and solved it by integrating the SecurityGuard NuGet package. It has pretty nice user interface and allows you to manage users as well as roles.

Just following the guide at the following link: http://www.mvccentral.net/Story/Details/tools/kahanu/securityguard-nuget-package-for-asp-net-membership

Upvotes: 1

Kevin McFarlane
Kevin McFarlane

Reputation: 113

So that client can add users / manage roles after development is over.

Alex, I had exactly this problem on an application a couple of years ago and I found and adapted this sample:

Microsoft ASP.NET 2.0 Member/Role Management with IIS, Part 2: Implementation

There was a slight bug in the ToggleInRole_Click method that I had to tweak (I can give you my fix if you want) but apart from that it worked well.

Upvotes: 0

Nix
Nix

Reputation: 58522

Here is a guide with code to doing the role manager UI: MSDN article.

Have you seen this Web Admin tool?

It looks like this: alt text

Upvotes: 0

James Westgate
James Westgate

Reputation: 11444

Sounds like you need the SqlRoleProvider.

You can also plug in your own custom Role Provider (and Membership Provider). See How to: Sample Role-Provider Implementation

Upvotes: 0

Related Questions