asp.net mvc - Password protect a whole .net mvc application? -
hellu,
i want put password protection on entire web application development , testing purposes. simple way (global asax, webconfig etc), means don't have change in rest of application. password , username can stored in code/webconfig or whatever.
since i'm not hosting myself, have limited access server (and can't modify iis in way).
anyone knows good, simple, quick, awesome way achieve (other placing whole thing in "secret" folder)?
simplest thing is:
- use forms authentication...
- ...with simple, xml membership provider
- add
[authorize]
parent controller class , use controllers in app.
Comments
Post a Comment