<authentication mode="Forms"> </authentication> <authorization> <deny users="?"/> </authorization>Place this in your web.config file inside the system.web element. Of course it is likely that for production scenarios you will use something more sophisticated. However, for development purposes sometimes all you want is the minimum to get you started. And that's all the above is about.
Comments, how-to's, examples, tools, techniques and other material regarding .NET and related technologies.
Sunday, November 08, 2009
ASP.NET Forms Based Authentication: Minimum Configuration
Where possible I try to implement functionality with the minimum code I can get away with. Yes, that means that I leave out all 'flexibilities' that are not needed right away even those that others would see as we will need them anyway tomorrow. Sometimes tomorrow never comes. Anyways.
ASP.NET offers several options for authentication. For one application I chose forms based authentication. The minimum working configuration that I found looks as follows:
No comments:
Post a Comment
All comments, questions and other feedback is much appreciated. Thank you!