SimpleMembershipProvider

I was working with the new version of ASP.NET MVC3 and was learning the WebSecurity class. I added System.Web.Webpages as a reference and can use the properties and methods of WebSecurity, however I am trying to figure out how to configure it on an ASP.NET page and not on WebMatrix. In the Webconfig file, I noticed in the AppSettings section a new key called enableSimpleMembership with the value set to false. Changing this parameter to true seemed trivial, but they should have a SimpleMembershipProvider in the Members \ providers section of the Webconfig file. Has anyone seen this or tried to include SimpleMembership inside an ASP.NET page, and does anyone know about adding SimpleMembershipProvider to the webconfig file? I referred to this one , but it did not seem to have all the information I was looking for.

+3
source share
2 answers

You can simply set enableSimpleMembership = "true" in appSettings and then remove any link to the default membership provider, for example AspNetSqlMembershipProvider (it will be registered for you).

Just confirmed that he is working with the MV3 RC project.

+4
source

I created a NuGet package to enable SimpleMembership in ASP.NET MVC3: http://nuget.org/List/Packages/SimpleMembership.Mvc3

This should automate all stages.

Enjoy it!

Adam

+4
source

Source: https://habr.com/ru/post/1771390/


All Articles