Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/08/10 21:48:27 (14 years ago)
Author:
bfarka
Message:

implemented first working authorization test!
(#1046)

Location:
branches/HeuristicLab.Services.Authentication Prototype/Service
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Services.Authentication Prototype/Service/App.config

    r4002 r4020  
    1414  </system.web>
    1515  <system.serviceModel>
     16    <bindings>
     17    <wsHttpBinding>
     18      <binding name="Binding">
     19        <security mode="Message">
     20          <message
     21                clientCredentialType="UserName"/>
     22        </security>
     23      </binding>
     24   </wsHttpBinding>
     25    </bindings>
    1626    <behaviors>
    1727      <serviceBehaviors>
    18         <serviceCredentials>
    19           <userNameAuthentication      membershipProviderName="HeuristiclabMemberShipProvider" />
    20         </serviceCredentials>
    2128        <behavior name="HttpServiceBehavior">
     29          <serviceCredentials>
     30           
     31            <userNameAuthentication membershipProviderName="HeuristiclabMemberShipProvider" userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="Service.Provider.HeuristicLabUsernamePasswordValidator, Service" />
     32            <!-- the name and store of the certificate has to be customized for each server to run-->
     33            <serviceCertificate findValue="MyServerCert" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My" />
     34          </serviceCredentials>
    2235          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://127.0.0.1:8888/metadata" />
    2336          <serviceDebug httpHelpPageUrl="http://127.0.0.1:8888/debug" />
     
    2841      <service behaviorConfiguration="HttpServiceBehavior" name="Service.Services.Administration.AuthorizationManagementService">
    2942        <endpoint address="http://127.0.0.1:8888/AuthorizationManagementEndpoint"
    30           binding="basicHttpBinding" bindingConfiguration="" contract="Service.Services.Administration.IAuthorizationManagementService" />
     43          binding="wsHttpBinding" bindingConfiguration="Binding" contract="Service.Services.Administration.IAuthorizationManagementService" />
    3144        <host>
    3245          <baseAddresses>
  • branches/HeuristicLab.Services.Authentication Prototype/Service/Service.csproj

    r3970 r4020  
    4141      <RequiredTargetFramework>3.5</RequiredTargetFramework>
    4242    </Reference>
     43    <Reference Include="System.IdentityModel">
     44      <RequiredTargetFramework>3.0</RequiredTargetFramework>
     45    </Reference>
     46    <Reference Include="System.IdentityModel.Selectors">
     47      <RequiredTargetFramework>3.0</RequiredTargetFramework>
     48    </Reference>
    4349    <Reference Include="System.Runtime.Serialization">
    4450      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    4551    </Reference>
     52    <Reference Include="System.Security" />
    4653    <Reference Include="System.ServiceModel">
    4754      <RequiredTargetFramework>3.0</RequiredTargetFramework>
     
    5764    <Compile Include="Provider\HeuristicLabMembershipProvider.cs" />
    5865    <Compile Include="Provider\HeuristicLabRoleProvider.cs" />
     66    <Compile Include="Provider\HeuristicLabUsernamePasswordValidator.cs" />
    5967    <Compile Include="Services\Administration\AuthorizationManagementService.cs" />
    6068    <Compile Include="Services\Administration\IAuthorizationManagementService.cs" />
Note: See TracChangeset for help on using the changeset viewer.