How to switch Authentication in MVC Application?

Bryuk picture Bryuk · Nov 22, 2013 · Viewed 35k times · Source

I've created Internet MVC Application with Individual User Accounts Authentication, but now this project should be intranet with windows authentication... How to switch authentication, when project is almost done? I'm not guru in MVC and this is new technology for me, so any help please and if possible with all steps in description=)

Answer

Firearm picture Firearm · Nov 22, 2013

In the Web.config of you project. The first step would be change:

<authentication mode="Forms">
</authentication>

to

<authentication mode="Windows">
</authentication>

Selecting your project and hitting F4 for the properties window allows you to change the authentication method.

However instead of me putting step by step in here just use this very easy to follow tutorial: Enabling Windows Authentication