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 | |
| 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')
2 files changed, 18 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() { 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 <UserName>$machineservice-gateway</UserName> <_SavePWD>True</_SavePWD> <_DestinationType>AzureWebSite</_DestinationType> + <PublishDatabaseSettings> + <Objects xmlns=""> + <ObjectGroup Name="GatewayDbContext" Order="1" Enabled="False"> + <Destination Path="" /> + <Object Type="DbDacFx"> + <PreSource Path="Data Source=localhost\SQLEXPRESS;Initial Catalog=Gateway;Integrated Security=True;Application Name=EntityFramework" includeData="False" /> + <Source Path="$(IntermediateOutputPath)AutoScripts\GatewayDbContext_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" /> + </Object> + <UpdateFrom Type="Web.Config"> + <Source MatchValue="metadata=res://*/DB.GatewayDatabaseModel.csdl|res://*/DB.GatewayDatabaseModel.ssdl|res://*/DB.GatewayDatabaseModel.msl;provider=System.Data.SqlClient;provider connection string="data source=localhost\SQLEXPRESS;initial catalog=Gateway;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" MatchAttributes="$(UpdateFromConnectionStringAttributes)" /> + </UpdateFrom> + </ObjectGroup> + </Objects> + </PublishDatabaseSettings> </PropertyGroup> </Project>
\ No newline at end of file |
