I have forms authentication wired up for my MVC 3 application. Normally when a request comes in that requires authentication, they are taken to my Login controller where they have to login.
However, I want a different view for this specific workflow because I plan on utilizing white labeling for my clients. Instead, I want them to go to a different endpoint in my Login controller to display my custom login view.
What options do I have to make this work?
Can you elaborate on what you mean by white-label? What content will be changed and what will it depend on?
In your
Web.configfile look forChange the
loginUrlattribute to what you want it to be. Then, on the login action, select the proper view to return.You’ll need some type of identifier to distinguish clients (subdomain, cookie or something). Use that to select the proper view to return.