diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-04-22 21:51:47 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-04-22 21:51:47 +0300 |
| commit | f33925e973cfaa9be4d46abd81f63afe787c6607 (patch) | |
| tree | 8765cbd70e13bcf2386343f1d7475b3bbb306869 /Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/AzureUtilsController.cs | |
| parent | f0d2b8a0c3014aea6030c2ab0847755e5f67a6c0 (diff) | |
| download | Tango-f33925e973cfaa9be4d46abd81f63afe787c6607.tar.gz Tango-f33925e973cfaa9be4d46abd81f63afe787c6607.zip | |
Prevent AD group check using AD Graph API.
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/AzureUtilsController.cs')
| -rw-r--r-- | Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/AzureUtilsController.cs | 8 |
1 files changed, 4 insertions, 4 deletions
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() { |
