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. --- .../Web/Tango.MachineService/Controllers/AccountController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/AccountController.cs') diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/AccountController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/AccountController.cs index 0a395b00e..44f3ea445 100644 --- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/AccountController.cs +++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/AccountController.cs @@ -37,10 +37,10 @@ namespace Tango.MachineService.Controllers { var authResult = _ad_manager.ValidateUserCredentials(request.Email, request.Password); - if (!_ad_manager.CanUserAccessCurrentEnvironment(request.Email)) - { - throw new AuthenticationException($"You do not have permissions to access the {MachineServiceConfig.DEPLOYMENT_SLOT.ToDescription()} environment."); - } + //if (!_ad_manager.CanUserAccessCurrentEnvironment(request.Email)) + //{ + // throw new AuthenticationException($"You do not have permissions to access the {MachineServiceConfig.DEPLOYMENT_SLOT.ToDescription()} environment."); + //} FormsAuthentication.SetAuthCookie(request.Email, true); -- cgit v1.3.1