Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HLScript/HeuristicLab.Services.Access/3.3/App.config @ 12417

Last change on this file since 12417 was 8040, checked in by ascheibe, 13 years ago

#1648 integrated server parts of the access service into trunk

File size: 4.2 KB
Line 
1<?xml version="1.0"?>
2<configuration>
3  <connectionStrings>
4    <add name="HeuristicLab.Authentication"
5         connectionString="Data Source=.;Initial Catalog=HeuristicLab.Authentication;Integrated Security=True"
6         providerName="System.Data.SqlClient"/>
7  </connectionStrings>
8  <system.web>
9    <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="20">
10      <providers>
11        <clear />
12        <add name="AspNetSqlMemberShipProvider"
13              type="System.Web.Security.SqlMembershipProvider"
14              connectionStringName="HeuristicLab.Authentication"
15              enablePasswordRetrieval="false"
16              enablePasswordReset="true"
17              requiresQuestionAndAnswer="false"
18              passwordFormat="Hashed"
19              applicationName="HeuristicLab.Authentication"
20              requiresUniqueEmail="false"
21              minRequiredPasswordLength="1"
22              minRequiredNonalphanumericCharacters="0"
23              maxInvalidPasswordAttempts="50" />
24      </providers>
25    </membership>
26    <authentication mode="Windows" />
27    <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
28      <providers>
29        <clear />
30        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
31             connectionStringName="HeuristicLab.Authentication" applicationName="HeuristicLab.Authentication" />
32      </providers>
33    </roleManager>
34  </system.web>
35
36  <!-- When deploying the service library project, the content of the config file must be added to the host's
37  app.config file. System.Configuration does not support config files for libraries. -->
38  <system.serviceModel>
39    <bindings>
40      <wsHttpBinding>
41        <binding name="DefaultWsHttpBinding" maxBufferPoolSize="10000000" maxReceivedMessageSize="200000000">
42          <readerQuotas maxDepth="1000" maxStringContentLength="16000" maxArrayLength="200000000" maxBytesPerRead="200000000" maxNameTableCharCount="16000" />
43          <security mode="Message">
44            <message clientCredentialType="UserName" />
45          </security>
46        </binding>
47      </wsHttpBinding>
48      <mexHttpBinding>
49        <binding name="DefaultMexHttpBinding" />
50      </mexHttpBinding>
51    </bindings>
52
53    <diagnostics performanceCounters="Default">
54      <!--<messageLogging logMalformedMessages="false" logMessagesAtTransportLevel="false" />-->
55    </diagnostics>
56
57    <behaviors>
58      <endpointBehaviors>
59        <behavior name="DefaultEndpointBehavior">
60          <dataContractSerializer maxItemsInObjectGraph="1000000" />
61        </behavior>
62      </endpointBehaviors>
63
64      <serviceBehaviors>
65        <behavior name="DefaultServiceBehavior">
66          <serviceMetadata httpGetEnabled="true" />
67          <serviceDebug includeExceptionDetailInFaults="true" />
68          <serviceCredentials>
69            <serviceCertificate findValue="localhost" storeLocation="LocalMachine"
70                                storeName="My" x509FindType="FindBySubjectName" />
71            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
72                                    membershipProviderName="AspNetSqlMembershipProvider" />
73          </serviceCredentials>
74          <serviceAuthorization principalPermissionMode="UseAspNetRoles"
75                                roleProviderName="AspNetSqlRoleProvider" />
76        </behavior>
77      </serviceBehaviors>
78    </behaviors>
79
80    <services>
81      <service name="HeuristicLab.Services.Access.AccessService" behaviorConfiguration="DefaultServiceBehavior">
82        <endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="DefaultMexHttpBinding" contract="IMetadataExchange" />
83        <endpoint behaviorConfiguration="DefaultEndpointBehavior" binding="wsHttpBinding" bindingConfiguration="DefaultWsHttpBinding"
84                  contract="HeuristicLab.Services.Access.IAccessService" />
85        <host>
86          <baseAddresses>
87            <add baseAddress="http://localhost:81/AccessService" />
88          </baseAddresses>
89        </host>
90      </service>
91    </services>
92  </system.serviceModel>
93</configuration>
Note: See TracBrowser for help on using the repository browser.