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