aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService.Gateway
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService.Gateway')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService.Gateway/Controllers/AzureUtilsController.cs8
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService.Gateway/Properties/PublishProfiles/machineservice-gateway - Web Deploy.pubxml14
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=&quot;data source=localhost\SQLEXPRESS;initial catalog=Gateway;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
+ </UpdateFrom>
+ </ObjectGroup>
+ </Objects>
+ </PublishDatabaseSettings>
</PropertyGroup>
</Project> \ No newline at end of file