Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5920


Ignore:
Timestamp:
04/01/11 01:52:25 (13 years ago)
Author:
cfleisch
Message:

#1439 Authentication process modified to work well with query plugin

Location:
branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost
Files:
15 added
6 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Controllers/AccountController.cs

    r4950 r5920  
    99using System.Web.Security;
    1010using HLWebPluginHost.Models;
     11using HLWebPluginHost.OKBQueryService;
     12using HLWebPluginHost.Helpers;
    1113
    1214namespace HLWebPluginHost.Controllers {
     
    3638    public ActionResult LogOn(LogOnModel model, string returnUrl) {
    3739      if (ModelState.IsValid) {
    38         if (MembershipService.ValidateUser(model.UserName, model.Password)) {
    39           Session["pwd"] = model.Password;
     40        QueryServiceClient client = Query.GetClientFactory(model.UserName, model.Password);
     41        if (client != null) {
     42          Session["Username"] = model.UserName;
     43          Session["Password"] = model.Password;
    4044          FormsService.SignIn(model.UserName, model.RememberMe);
    4145          if (!String.IsNullOrEmpty(returnUrl)) {
     
    5963    public ActionResult LogOff() {
    6064      FormsService.SignOut();
     65      Session.Remove("Username");
     66      Session.Remove("Password");
    6167
    6268      return RedirectToAction("Index", "Home");
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/HLWebPluginHost.csproj

    r5764 r5920  
    7373      <DependentUpon>Global.asax</DependentUpon>
    7474    </Compile>
     75    <Compile Include="Helpers\Query.cs" />
    7576    <Compile Include="Models\AccountModels.cs" />
    7677    <Compile Include="PluginLib\AssemblyResourceProvider.cs" />
     
    8081    <Compile Include="PluginLib\PluginViewEngine.cs" />
    8182    <Compile Include="Properties\AssemblyInfo.cs" />
     83    <Compile Include="Service References\OKBQueryService\Reference.cs">
     84      <AutoGen>True</AutoGen>
     85      <DesignTime>True</DesignTime>
     86      <DependentUpon>Reference.svcmap</DependentUpon>
     87    </Compile>
    8288  </ItemGroup>
    8389  <ItemGroup>
     
    9096    <Content Include="Global.asax" />
    9197    <Content Include="Scripts\lbAlgorithmClassOnClick.js" />
     98    <None Include="Service References\OKBQueryService\HLWebPluginHost.OKBQueryService.Filter.datasource">
     99      <DependentUpon>Reference.svcmap</DependentUpon>
     100    </None>
     101    <None Include="Service References\OKBQueryService\HLWebPluginHost.OKBQueryService.Run.datasource">
     102      <DependentUpon>Reference.svcmap</DependentUpon>
     103    </None>
     104    <None Include="Service References\OKBQueryService\QueryService.disco" />
     105    <None Include="Service References\OKBQueryService\configuration91.svcinfo" />
     106    <None Include="Service References\OKBQueryService\configuration.svcinfo" />
     107    <None Include="Service References\OKBQueryService\Reference.svcmap">
     108      <Generator>WCF Proxy Generator</Generator>
     109      <LastGenOutput>Reference.cs</LastGenOutput>
     110    </None>
    92111    <Content Include="Views\ServicePrototype\Index.aspx" />
    93112    <Content Include="Web.config">
     
    132151    <WCFMetadata Include="Service References\" />
    133152  </ItemGroup>
     153  <ItemGroup>
     154    <WCFMetadataStorage Include="Service References\OKBQueryService\" />
     155  </ItemGroup>
     156  <ItemGroup>
     157    <None Include="Service References\OKBQueryService\QueryService.wsdl" />
     158    <None Include="Service References\OKBQueryService\QueryService.xsd">
     159      <SubType>Designer</SubType>
     160    </None>
     161    <None Include="Service References\OKBQueryService\QueryService1.xsd">
     162      <SubType>Designer</SubType>
     163    </None>
     164    <None Include="Service References\OKBQueryService\QueryService2.xsd">
     165      <SubType>Designer</SubType>
     166    </None>
     167    <None Include="Service References\OKBQueryService\QueryService3.xsd">
     168      <SubType>Designer</SubType>
     169    </None>
     170  </ItemGroup>
    134171  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
    135172  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Views/Home/Index.aspx

    r5072 r5920  
    88    <h1><%: ViewData["Message"] %></h1>
    99
    10     <h3>Password: <%: Session["pwd"]  %></h3>
     10    <h3>Username: <%: Session["Username"]  %></h3>
     11    <h3>Password: <%: Session["Password"]  %></h3>
    1112</asp:Content>
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/Web.config

    r5799 r5920  
    6060    </pages>
    6161 
    62         <membership defaultProvider="HLServiceMembershipProvider">
     62        <!--<membership defaultProvider="HLServiceMembershipProvider">
    6363            <providers>
    6464              <clear/>
     
    6969                   applicationName="HeuristicLab.Authentication" />
    7070            </providers>
    71           </membership>
     71          </membership>-->
    7272<!--
    7373          <roleManager enabled="true">
     
    116116          </security>
    117117        </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>
    118134      </wsHttpBinding>
    119135    </bindings>
     
    126142        </identity>
    127143      </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>
    128151    </client>
    129152  </system.serviceModel>
  • branches/WebApplication/MVC2/HeuristicLabWeb.PluginHost/HLWebPluginHost/obj/Debug/HLWebPluginHost.csproj.FileListAbsolute.txt

    r5763 r5920  
    99D:\Proakt\WebApplication\MVC2\HeuristicLabWeb.PluginHost\HLWebPluginHost\obj\Debug\HLWebPluginHost.dll
    1010D:\Proakt\WebApplication\MVC2\HeuristicLabWeb.PluginHost\HLWebPluginHost\obj\Debug\HLWebPluginHost.pdb
     11D:\FH\Sem06\SPR6T\WebApplication\MVC2\HeuristicLabWeb.PluginHost\HLWebPluginHost\bin\HLWebPluginHost.dll
     12D:\FH\Sem06\SPR6T\WebApplication\MVC2\HeuristicLabWeb.PluginHost\HLWebPluginHost\bin\HLWebPluginHost.pdb
     13D:\FH\Sem06\SPR6T\WebApplication\MVC2\HeuristicLabWeb.PluginHost\HLWebPluginHost\obj\Debug\ResolveAssemblyReference.cache
     14D:\FH\Sem06\SPR6T\WebApplication\MVC2\HeuristicLabWeb.PluginHost\HLWebPluginHost\obj\Debug\HLWebPluginHost.dll
     15D:\FH\Sem06\SPR6T\WebApplication\MVC2\HeuristicLabWeb.PluginHost\HLWebPluginHost\obj\Debug\HLWebPluginHost.pdb
Note: See TracChangeset for help on using the changeset viewer.