From 81657742f610405ccc3c1308ed0f1e083e943b35 Mon Sep 17 00:00:00 2001 From: Dayenne Souza Date: Tue, 10 Dec 2024 17:47:02 -0300 Subject: [PATCH] fix mainTemplate --- deploy/azure/mainTemplate.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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": {