From f33925e973cfaa9be4d46abd81f63afe787c6607 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Tue, 22 Apr 2025 21:51:47 +0300 Subject: Prevent AD group check using AD Graph API. --- .../Controllers/AzureUtilsController.cs | 8 ++++---- .../machineservice-gateway - Web Deploy.pubxml | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'Software/Visual_Studio/Web/Tango.MachineService.Gateway') diff --git a/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/AzureUtilsController.cs b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/AzureUtilsController.cs index ae5aa4543..8dee1bdad 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/AzureUtilsController.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/AzureUtilsController.cs @@ -36,10 +36,10 @@ namespace Tango.MachineService.Gateway.Controllers throw new AuthenticationException("The specified email or password is incorrect.", ex); } - if (!adManager.IsUserMemberOf(GatewayConfig.AZURE_UTILS_GROUP, request.Email)) - { - throw new AuthenticationException("The specified user is not authorized to access the resource."); - } + //if (!adManager.IsUserMemberOf(GatewayConfig.AZURE_UTILS_GROUP, request.Email)) + //{ + // throw new AuthenticationException("The specified user is not authorized to access the resource."); + //} return new LoginResponse() { diff --git a/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Properties/PublishProfiles/machineservice-gateway - Web Deploy.pubxml b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Properties/PublishProfiles/machineservice-gateway - Web Deploy.pubxml index 8af9f7fc8..bd195918c 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Properties/PublishProfiles/machineservice-gateway - Web Deploy.pubxml +++ b/Software/Visual_Studio/Web/Tango.MachineService.Gateway/Properties/PublishProfiles/machineservice-gateway - Web Deploy.pubxml @@ -24,5 +24,19 @@ by editing this MSBuild file. In order to learn more about this please visit htt $machineservice-gateway <_SavePWD>True <_DestinationType>AzureWebSite + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.3.1