Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using windows authentication with Azure WebApp/Website

We have an Active Directory domain sitting on a networked Azure VM and have a separate Azure WebApp/Website that is running Orchard CMS on the same virtual network.

Do webapps support windows authentication for connecting to Active Directory? If so, how do I go about setting it up in IIS?

like image 617
Donal Avatar asked Jul 01 '15 09:07

Donal


People also ask

Does Azure App Service Support Windows authentication?

App Service provides authentication, but doesn't restrict authorized access to your site content and APIs. You must authorize users in your app code. (Optional) To restrict access to Microsoft account users, set Action to take when request is not authenticated to Log in with Azure Active Directory.

How do I add authentication to Azure Web App?

In the Azure portal menu, select Resource groups, or search for and select Resource groups from any page. In Resource groups, find and select your resource group. In Overview, select your app's management page. On your app's left menu, select Authentication, and then click Add identity provider.

How do I use Windows authentication on a web application?

On the taskbar, click Start, and then click Control Panel. In Control Panel, click Programs and Features, and then click Turn Windows Features on or off. Expand Internet Information Services, then World Wide Web Services, then Security. Select Windows Authentication, and then click OK.


2 Answers

No, it's not possible. In order to have 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 absolutely use Windows Auth and host your website on Azure, you can create Windows VM and host your website there. You then need to join the VM to your AD. To this, both VMs must be in the same network. So if your VM is on-premise you will need to create an site-to-site VPN

like image 175
yannisgu Avatar answered Sep 20 '22 23:09

yannisgu


Yes, you can connect your web app to Azure Active Directory.

The simplest option is Azure Easy Authentication

http://azure.microsoft.com/en-us/documentation/videos/azure-websites-easy-authentication-and-authorization-with-chris-gillum/.

That's a one click way to authenticate your site.

like image 26
Zain Rizvi Avatar answered Sep 18 '22 23:09

Zain Rizvi