What are your approaches to give clients the possibility to test a mvc website/application before going live?
I have an asp.net mvc 4 web application. A beta.mydomain.com and a public.mydomain.com - On the beta, only someone with user/password should have access. But the Forms Authentication should still work.
- The best solution would be to be able to deploy the same code to beta and public. Means, e.g. not adding an Authorize Attribute allowing only "Admin" users to access.
My current best solution is:
- In IIS (7) on the website/application I activated only Standard Authentification
- Changed the web.config to Have authentication mode="windows"
- Create a Windows User and give him access to the Application (Directory)
->> The problem is that the user is actually Logged In (means User.IsAuthenticated returns true) - But the App internally uses Forms Authentication. Can both be combined?
I've found some similar questions but no real solution to this:
https://serverfault.com/questions/175643/how-do-i-secure-a-net-mvc-website-prior-to-launch
Password protect a directory in IIS 7 (.Net MVC 2)
IIS Password prompt for given folder ASP.NET MVC
Password protect ASP.NET web application in IIS 7.5
I've read a lot on this topic and cannot believe this is not possible. What is your approach when deploying an alpha/beta for a client to test it before it goes live?