2

Now that Microsoft has removed support for the ASP.NET Web Application Management tool in Visual Studio 2013, what is the best way to manage users and roles in your ASP.NET applications?

I'm starting on a new web app, and instead of building my own system for authentication and role management, I planned on using ASP.NET. However, what is the easiest way to add roles and members without directly editing the database?

RickAndMSFT
  • 20,912
  • 8
  • 60
  • 78
Justin Adkins
  • 1,214
  • 2
  • 23
  • 41
  • Probably use an old IDE (Vs2010) to do the configuration since you can have both on your system. – codingbiz Dec 07 '13 at 18:46
  • Doesn't seem to work. I tried using the tool in VS2012, and it said that I had 0 users. I know for sure that I have 2 users and 2 roles in the DB, and they are able to successfully log in. – Justin Adkins Dec 07 '13 at 19:02
  • You are probably pointing to the wrong database. What matters is the connection string in the web.config. Make sure the connection string are the same. – codingbiz Dec 08 '13 at 03:42
  • I opened my same VS2013 solution in VS2012. Nothing changed. – Justin Adkins Dec 08 '13 at 03:47

1 Answers1

2

I would suggest following the methodology used in the ASP.NET Identity Sample:

https://github.com/rustd/AspnetIdentitySample/tree/master/AspnetIdentitySample/Controllers

They use two Controllers: RolesAdminController and UserAdminController.

Using this scheme would allow for a seeded administrative account to then manage the roles and users of that site.

I suspect you could probably just copy those straight into a new project using the new Identity scheme with very few modifications to work properly. However, I haven't personally attempted doing that part myself.

James Haug
  • 1,426
  • 12
  • 27