Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Services.Authentication Prototype/UnitTests/app.config @ 4021

Last change on this file since 4021 was 4021, checked in by bfarka, 14 years ago
File size: 5.3 KB
Line 
1<?xml version="1.0" encoding="utf-8" ?>
2<configuration>
3  <system.web>
4    <compilation debug="true" />
5    <roleManager enabled ="true"
6   defaultProvider ="HeuristicLabRoleProvider" >
7      <providers>
8
9        <add name ="HeuristicLabRoleProvider"
10          type="Service.Provider.HeuristicLabRoleProvider, Service"
11          applicationName="HeuristiclLabServices"/>
12      </providers>
13    </roleManager>
14    <membership defaultProvider="HeuristiclabMemberShipProvider" userIsOnlineTimeWindow="15">
15      <providers>
16        <clear/>
17        <add
18          name="HeuristiclabMemberShipProvider"
19          type="Service.Provider.HeuristicLabMembershipProvider, Service"
20          passwordFormat="Hashed" />
21      </providers>
22    </membership>
23  </system.web>
24  <system.serviceModel>
25    <client>
26      <endpoint address="http://127.0.0.1:8888/AuthorizationManagementEndpoint"
27        binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IAuthorizationManagementService"
28        contract="AuthorizationManagementServiceRemote.IAuthorizationManagementService"
29        name="WSHttpBinding_IAuthorizationManagementService" behaviorConfiguration="myClientBehavior">
30        <identity>
31          <certificate encodedValue="AwAAAAEAAAAUAAAAPQJndve7Q/IcQ7WtwQMm02KvlrsgAAAAAQAAALgBAAAwggG0MIIBYqADAgECAhDDg1lnKGezhkH5Ju3ecmECMAkGBSsOAwIdBQAwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3kwHhcNMTAwNTI2MjE1NDExWhcNMzkxMjMxMjM1OTU5WjAXMRUwEwYDVQQDEwxNeVNlcnZlckNlcnQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANsuzLfWt1O+qHpnxGDkBZCthxB4MMIfx0QSFAbUaw2YTPQu4AaoxKoMo/TeHuFmJKtrRY0Z9UTVts+KCrn+3vozmSv67YgAGh+ney2X8WgoEowmYsfJlcCtJ8OX34OXASMLlu84Q7jFs5Y/VIxNA5pvlw7bCiHus6yDu7o+b86XAgMBAAGjSzBJMEcGA1UdAQRAMD6AEBLkCS0GHR1PAI1hIdwWZGOhGDAWMRQwEgYDVQQDEwtSb290IEFnZW5jeYIQBjdsAKoAZIoRz7jUqlw19DAJBgUrDgMCHQUAA0EADYxnIrj8jVWXvohKWb4N7dc2WQ//3hFdovHbsCiE4Pz7ozi8mR/GixdbLKhm/rCr1M5eoiaz8xNkoa5owMB/xQ==" />
32        </identity>
33      </endpoint>
34    </client>
35    <bindings>
36      <wsHttpBinding>
37        <binding name="Binding">
38          <security mode="Message">
39            <transport>
40              <extendedProtectionPolicy policyEnforcement="Never" />
41            </transport>
42            <message clientCredentialType="UserName" />
43          </security>
44        </binding>
45        <binding name="WSHttpBinding_IAuthorizationManagementService"
46          closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00"
47          sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false"
48          hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288"
49          maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8"
50          useDefaultWebProxy="true" allowCookies="false">
51          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
52            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
53          <reliableSession ordered="true" inactivityTimeout="00:10:00"
54            enabled="false" />
55          <security mode="Message">
56            <transport clientCredentialType="Windows" proxyCredentialType="None"
57              realm="">
58              <extendedProtectionPolicy policyEnforcement="Never" />
59            </transport>
60            <message clientCredentialType="UserName" negotiateServiceCredential="true"
61              algorithmSuite="Default" establishSecurityContext="true" />
62          </security>
63        </binding>
64      </wsHttpBinding>
65    </bindings>
66    <behaviors>
67      <endpointBehaviors>
68        <behavior name="myClientBehavior">
69          <clientCredentials>
70            <serviceCertificate>
71              <authentication certificateValidationMode="Custom" customCertificateValidatorType=" UnitTests.service.MyX509Validator,UnitTests" />
72            </serviceCertificate>
73          </clientCredentials>
74        </behavior>
75      </endpointBehaviors>
76     
77      <serviceBehaviors>
78        <behavior name="HttpServiceBehavior">
79          <serviceAuthorization principalPermissionMode ="UseAspNetRoles"
80                        roleProviderName ="HeuristicLabRoleProvider" />
81          <serviceCredentials>
82            <userNameAuthentication membershipProviderName="HeuristiclabMemberShipProvider" userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="Service.Provider.HeuristicLabUsernamePasswordValidator, Service" />
83            <serviceCertificate findValue="MyServerCert" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My" />
84          </serviceCredentials>
85          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://127.0.0.1:8888/metadata" />
86          <serviceDebug httpHelpPageUrl="http://127.0.0.1:8888/debug" />
87        </behavior>
88      </serviceBehaviors>
89    </behaviors>
90    <services>
91      <service behaviorConfiguration="HttpServiceBehavior" name="Service.Services.Administration.AuthorizationManagementService">
92        <endpoint address="http://127.0.0.1:8888/AuthorizationManagementEndpoint"
93          binding="wsHttpBinding" bindingConfiguration="Binding" contract="Service.Services.Administration.IAuthorizationManagementService" />
94        <host>
95          <baseAddresses>
96            <add baseAddress="http://localhost:8080/AuthorizationManagement"/>
97          </baseAddresses>
98        </host>
99      </service>
100    </services>
101   
102     
103   
104  </system.serviceModel>
105</configuration>
Note: See TracBrowser for help on using the repository browser.