Home > Software engineering >  How to enable integrated Windows authentication for Azure web app
How to enable integrated Windows authentication for Azure web app

Time:10-29

I want to move the system on IIS to Azure, and use kudu to add some empty folders (without any code), let the user click on the URL with the browser, and pop out the input box for verifying the account. After the verification is successful, you can see the following A list of screenshot files or folders for downloading files or reading files (text files or PDF). Now I open the Azure webpage and I can see the file list, but the windows integrated verification cannot be used. How can I achieve this? (Because the system will be called by other services, it is not convenient to use Azure AD authentication. Originally on IIS, the login account was written in web.config) enter image description here

web.config:

<configuration>
  <system.web>
   <customErrors mode="On" defaultRedirect="~/error.html" />

   <authentication mode="Windows">
   </authentication>
   <authorization>
     <allow users="Owner" />
     <allow users="User" />
     <deny users="*" />
   </authorization>

  </system.web>
  <system.webServer>
     <directoryBrowse enabled="true" />
  </system.webServer>
</configuration>

CodePudding user response:

  • It is not possible. Windows Authentication is something for on-premise deployments.
  • For Azure Web Sites Azure Active Directory is clearly the best option.
  • Sync from AD to Azure Active Directory is also quite easy to setup.
  • If you still want to use Windows Auth and host your website on Azure, you can create Windows VM and host your website there.
  • You need to join the VM to your AD.
  • For this, both VMs must be in the same network.
  • If your VM is on-premise you will need to create an site-to-site VPN
  • Related