source: branches/HeuristicLab.Services.Authentication Prototype/Service/App.config @ 4021

Last change on this file since 4021 was 4021, checked in by bfarka, 11 years ago
File size: 2.7 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<configuration>
3  <system.web>
4    <compilation debug="true" />
5      <membership defaultProvider="HeuristiclabMemberShipProvider" userIsOnlineTimeWindow="15">
6        <providers>
7          <clear/>
8          <add
9            name="HeuristiclabMemberShipProvider"
10            type="Service.Provider.HeuristicLabRoleProvider, Service"
11            applicationName="HeuristicLabServices"
12            passwordFormat= "Hashed"/>
13        </providers>
14      </membership>
15    <roleManager enabled ="true"
16   defaultProvider ="HeuristicLabRoleProvider" >
17      <providers>
18        <clear/>
19        <add name ="HeuristicLabRoleProvider"
20          type="Service.Provider.HeuristicLabRoleProivder, Service"
21          applicationName="HeuristiclLabServices"/>
22      </providers>
23    </roleManager>
24
25  </system.web>
26  <system.serviceModel>
27    <bindings>
28    <wsHttpBinding>
29      <binding name="Binding">
30        <security mode="Message">
31          <message
32                clientCredentialType="UserName"/>
33        </security>
34      </binding>
35   </wsHttpBinding>
36    </bindings>
37    <behaviors>
38      <serviceBehaviors>
39        <behavior name="HttpServiceBehavior">
40          <serviceAuthorization principalPermissionMode ="UseAspNetRoles"
41                        roleProviderName ="HeuristicLabRoleProvider" />
42          <serviceCredentials>
43            <userNameAuthentication membershipProviderName="HeuristiclabMemberShipProvider" userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="Service.Provider.HeuristicLabUsernamePasswordValidator, Service" />
44            <!-- the name and store of the certificate has to be customized for each server to run-->
45            <serviceCertificate findValue="MyServerCert" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My" />
46          </serviceCredentials>
47          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://127.0.0.1:8888/metadata" />
48          <serviceDebug httpHelpPageUrl="http://127.0.0.1:8888/debug" />
49        </behavior>
50      </serviceBehaviors>
51    </behaviors>
52    <services>
53      <service behaviorConfiguration="HttpServiceBehavior" name="Service.Services.Administration.AuthorizationManagementService">
54        <endpoint address="http://127.0.0.1:8888/AuthorizationManagementEndpoint"
55          binding="wsHttpBinding" bindingConfiguration="Binding" contract="Service.Services.Administration.IAuthorizationManagementService" />
56        <host>
57          <baseAddresses>
58            <add baseAddress="http://localhost:8080/AuthorizationManagement"/>
59          </baseAddresses>
60        </host>
61      </service>
62    </services>
63 </system.serviceModel>
64</configuration>
Note: See TracBrowser for help on using the repository browser.