ASP.NET Membership Provider. Specify parameters in the database, not Web.config.
I am using ASP.NET Membership Provider to authenticate users in my web application.
I want to do two things
- So that the client can configure parameters like maxInvalidPasswordAttempts and passwordAttemptWindow without having to know about the web.config (for example via the frontend)
- To be able to share these settings across multiple applications, you can define them once in the SQL database, then all web applications on the server can use the same settings.
I'm not sure if any of them are possible.
0
a source to share
2 answers
Are you implementing your own custom membership provider?
Membership provider properties are wired to the web.config values by default, but if you implement your own version it should be relatively trivial to override the defaults and pull those values from the DB ...
Check out an example implementation on MSDN
+2
a source to share
You can use such a membership provider property MaxInvalidPasswordAttempts and write your own implementation of the seeding settings from the database.
0
a source to share