Free cookie consent management tool by TermsFeed Policy Generator

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

Last change on this file since 4020 was 4020, checked in by bfarka, 14 years ago

implemented first working authorization test!
(#1046)

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