Changeset 5988
- Timestamp:
- 04/08/11 16:04:26 (14 years ago)
- Location:
- branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Controllers/AccountController.cs
r5920 r5988 38 38 public ActionResult LogOn(LogOnModel model, string returnUrl) { 39 39 if (ModelState.IsValid) { 40 QueryServiceClient client = Query.GetClientFactory(model.UserName, model.Password); 41 if (client != null) { 42 Session["Username"] = model.UserName; 43 Session["Password"] = model.Password; 40 // QueryServiceClient client = Query.GetClientFactory(model.UserName, model.Password); 41 42 43 44 if (MembershipService.ValidateUser(model.UserName, model.Password)) { 45 44 46 FormsService.SignIn(model.UserName, model.RememberMe); 45 47 if (!String.IsNullOrEmpty(returnUrl)) { -
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/HLWebPluginHost.csproj
r5986 r5988 1 <?xml version="1.0" encoding="utf-8"?>1 <?xml version="1.0" encoding="utf-8"?> 2 2 <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 3 <PropertyGroup> … … 73 73 <DependentUpon>Global.asax</DependentUpon> 74 74 </Compile> 75 76 75 <Compile Include="Lib\HLServiceMembershipProvider.cs" /> 77 76 <Compile Include="Helpers\Query.cs" /> … … 83 82 <Compile Include="PluginLib\PluginViewEngine.cs" /> 84 83 <Compile Include="Properties\AssemblyInfo.cs" /> 85 <Compile Include="Service References\OKBQueryService\Reference.cs">86 <AutoGen>True</AutoGen>87 <DesignTime>True</DesignTime>88 <DependentUpon>Reference.svcmap</DependentUpon>89 </Compile>90 84 </ItemGroup> 91 85 <ItemGroup> … … 98 92 <Content Include="Global.asax" /> 99 93 <Content Include="Scripts\lbAlgorithmClassOnClick.js" /> 100 <None Include="Service References\OKBQueryService\HLWebPluginHost.OKBQueryService.Filter.datasource">101 <DependentUpon>Reference.svcmap</DependentUpon>102 </None>103 <None Include="Service References\OKBQueryService\HLWebPluginHost.OKBQueryService.Run.datasource">104 <DependentUpon>Reference.svcmap</DependentUpon>105 </None>106 <None Include="Service References\OKBQueryService\QueryService.disco" />107 <None Include="Service References\OKBQueryService\configuration91.svcinfo" />108 <None Include="Service References\OKBQueryService\configuration.svcinfo" />109 <None Include="Service References\OKBQueryService\Reference.svcmap">110 <Generator>WCF Proxy Generator</Generator>111 <LastGenOutput>Reference.cs</LastGenOutput>112 </None>113 94 <Content Include="Views\ServicePrototype\Index.aspx" /> 114 95 <Content Include="Web.config"> … … 153 134 <WCFMetadata Include="Service References\" /> 154 135 </ItemGroup> 155 <ItemGroup>156 <WCFMetadataStorage Include="Service References\OKBQueryService\" />157 </ItemGroup>158 <ItemGroup>159 <None Include="Service References\OKBQueryService\QueryService.wsdl" />160 <None Include="Service References\OKBQueryService\QueryService.xsd">161 <SubType>Designer</SubType>162 </None>163 <None Include="Service References\OKBQueryService\QueryService1.xsd">164 <SubType>Designer</SubType>165 </None>166 <None Include="Service References\OKBQueryService\QueryService2.xsd">167 <SubType>Designer</SubType>168 </None>169 <None Include="Service References\OKBQueryService\QueryService3.xsd">170 <SubType>Designer</SubType>171 </None>172 </ItemGroup>173 136 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 174 137 <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> -
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Lib/HLServiceMembershipProvider.cs
r5800 r5988 119 119 // TODO: Add authentication against the HL-Service as soon as it's available. 120 120 try { 121 121 122 HttpContext.Current.Session["Password"] = password; 123 122 124 return true; 123 125 } catch (Exception) { -
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/Home/Index.aspx
r5920 r5988 6 6 7 7 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 8 <h1><%: ViewData["Message"] %></h1>9 8 10 <h3>Username: <%: Session["Username"] %></h3>11 <h3>Password: <%: Session["Password"] %></h3>12 9 </asp:Content> -
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Web.config
r5920 r5988 60 60 </pages> 61 61 62 < !--<membership defaultProvider="HLServiceMembershipProvider">62 <membership defaultProvider="HLServiceMembershipProvider"> 63 63 <providers> 64 64 <clear/> … … 69 69 applicationName="HeuristicLab.Authentication" /> 70 70 </providers> 71 </membership> -->71 </membership> 72 72 <!-- 73 73 <roleManager enabled="true"> … … 116 116 </security> 117 117 </binding> 118 <binding name="QueryService" closeTimeout="00:01:00" openTimeout="00:01:00"119 receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false"120 transactionFlow="false" hostNameComparisonMode="StrongWildcard"121 maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text"122 textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">123 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"124 maxBytesPerRead="4096" maxNameTableCharCount="16384" />125 <reliableSession ordered="true" inactivityTimeout="00:10:00"126 enabled="false" />127 <security mode="Message">128 <transport clientCredentialType="Windows" proxyCredentialType="None"129 realm="" />130 <message clientCredentialType="UserName" negotiateServiceCredential="true"131 algorithmSuite="Default" />132 </security>133 </binding>134 118 </wsHttpBinding> 135 119 </bindings> … … 142 126 </identity> 143 127 </endpoint> 144 <endpoint address="http://services.heuristiclab.com/OKB.SPR-3.3/QueryService.svc"145 binding="wsHttpBinding" bindingConfiguration="QueryService"146 contract="OKBQueryService.IQueryService" name="QueryService">147 <identity>148 <certificate encodedValue="AwAAAAEAAAAUAAAAwK1+2oAmcy/mI2P2QjyiJRh0y60gAAAAAQAAACoCAAAwggImMIIBj6ADAgECAhAIkseQ2EEhgU720qJA61gqMA0GCSqGSIb3DQEBBAUAMCQxIjAgBgNVBAMTGXNlcnZpY2VzLmhldXJpc3RpY2xhYi5jb20wHhcNMTAwNTExMTExNDAyWhcNMzkxMjMxMjM1OTU5WjAkMSIwIAYDVQQDExlzZXJ2aWNlcy5oZXVyaXN0aWNsYWIuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCq26Bwmwc7k+4W30qLQ2j+FInEL5BuH6opDY6CSlrtt3xQS/anrhvpbf3QghLDVINzcHkzbPmm/SguG4F85QLB6xO+tJaOvRo0iEK5g3c307vMIru7FJwk/OhplEQ5J1hbDgL3zOJlrWlgtqRVxCtVdF3XroI9BctOt1NkeKv9ewIDAQABo1kwVzBVBgNVHQEETjBMgBCjbgdYd4j5JgUuJ1Wo/GxroSYwJDEiMCAGA1UEAxMZc2VydmljZXMuaGV1cmlzdGljbGFiLmNvbYIQCJLHkNhBIYFO9tKiQOtYKjANBgkqhkiG9w0BAQQFAAOBgQAb/2xk2uQad68shSPl/uixWgvFI8WkxOTBopOLaLtDxwCeZ3mWVHdV9VnixHtThubnEBXAhYOCQSIXWtQuXFWO+gH3YyjTRJY5kTmXyuvBRTn3/so5SrQ7Rdlm9hf6E5YVX3tCjAy7ybUyaDUkQfmH5vmvgvpMzRfsJ1qhnUpJiQ==" />149 </identity>150 </endpoint>151 128 </client> 152 129 </system.serviceModel>
Note: See TracChangeset
for help on using the changeset viewer.