locked
Authenticate with active directory. RRS feed

  • Question

  • User516022031 posted

    Hello.

    I want to know how to implement members authentication with Active Directory using Windows Authentication with ASP.NET Identity 2.0 in MVC5


    Thanks..

    Sunday, April 10, 2016 12:50 PM

Answers

  • User-2057865890 posted

    Hi Eng-Mondy,

    Put the following setting in the Web.config file.

    <system.web>
        <authentication mode="Windows" />
    </system.web>

    After you enable Windows authentication, you can use the [Authorize]  attribute to control access to controllers or controller actions.

    Integrated Windows Authentication

    If your application is hosted on Azure and you have an on-premise Active Directory domain, consider federating your on-premise AD with Azure Active Directory. That way, users can log in with their on-premise credentials, but the authentication is performed by Azure AD.

    Best Regards,

    Chris Zhao

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, April 11, 2016 7:34 AM