diff --git a/deploy/azure/mainTemplate.json b/deploy/azure/mainTemplate.json index 0e4433b..57fd843 100644 --- a/deploy/azure/mainTemplate.json +++ b/deploy/azure/mainTemplate.json @@ -66,7 +66,7 @@ "ftpsState": "FtpsOnly", "linuxFxVersion": "sitecontainers", "siteContainerName": "main", - "redirectUrl": "[concat('https://', parameters('webAppName'), '.azurewebsites.net')]" + "redirectUrl": "[concat('https://', parameters('webAppName'), '.azurewebsites.net/.auth/login/aad')]" }, "resources": [ { @@ -165,7 +165,13 @@ "properties": { "globalValidation": { "requireAuthentication": "[equals(parameters('disableAuth'), 'false')]", - "unauthenticatedClientAction": "RedirectToLoginPage" + "unauthenticatedClientAction": "RedirectToLoginPage", + "redirectToProvider": "AzureActiveDirectory", + "login": { + "loginParameters": { + "redirectUrl": "[variables('redirectUrl')]" + } + } }, "identityProviders": { "azureActiveDirectory": {