Reputation: 5175
I think my question may be a duplicate, but I do not know what to search for.
I was use a functional name "password protect folder" in CPanel (php-apache linux) that when you enter a specific folder or file, you will see a prompt asking for username and password, if your account is in correct you will get a 401 status code returned.
Now I want this function in my asp.net mvc app, but I am not sure where to start. Does this functionality exist in MVC and IIS?
Upvotes: 0
Views: 162
Reputation: 6325
Since you say you're working with ASP.Net MVC, I think reading Chapter 7 of the Music Store Tutorial might be of some use for you. Jon Galloway goes into a lot of detail about using Membership and Authorization on controllers, pages, and using the membership provider in general. After reading this, you should have a pretty good idea of what you need to do to lock down a 'page' in your website.
Hope this helps some.
Upvotes: 1
Reputation: 664
You would include an authentication & authorization sections in your web.config file.
Upvotes: 0