Wednesday 6 November 2013

ASP.NET MVC4 SimpleMembership Provider Notes

These are just notes for my benefit at the moment for implementing SimpleMembership Provider in an ASP.NET MVC4 Web Application.

Update 19-12-2013

Eureka! If you're trying to customise your User Profiles using SimpleMembership then read Introduction to Forms based authentication in .NET4.5 MVC4 with C# Part 1 and Introduction to Forms based authentication in .NET4.5 MVC4 with C# Part 2. This is a straightforward step-by-step explanation of how to achieve custom user profile fields, including how to handle the registration method.

Update 18-12-2013

Finally this stuff is starting to make sense!

I've used the techniques outlined in Long Le's Blog Article today and added additional fields to the SimpleMembershipProvider UserProfile table. Can't recommend this enough if you're struggling with this subject.

Resources

Some tools that also look useful.

This solution looks promising http://forums.asp.net/t/1877141.aspx as does this one http://forums.asp.net/t/1915443.aspx and this MVC4 role based controller's action access

SimpleRoleProvider Class