Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Services.OKB/3.3/app.config @ 4298

Last change on this file since 4298 was 4298, checked in by swagner, 14 years ago

Worked on OKB user authentication (#1167)

File size: 7.9 KB
Line 
1<?xml version="1.0"?>
2<configuration>
3  <connectionStrings>
4    <add name="HeuristicLab.Authentication"
5         connectionString="data source=localhost;Integrated Security=SSPI;Initial Catalog=HeuristicLab.Authentication"/>
6    <add name="HeuristicLab.Services.OKB.DataAccess.Properties.Settings.OKBConnectionString"
7         connectionString="Data Source=localhost;Initial Catalog=HeuristicLab.OKB;Integrated Security=SSPI"
8         providerName="System.Data.SqlClient" />
9  </connectionStrings>
10
11  <system.web>
12    <authentication mode="Forms" />
13    <compilation debug="true" targetFramework="4.0" />
14
15    <membership>
16      <providers>
17        <clear/>
18        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="HeuristicLab.Authentication"
19             enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
20             maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
21             applicationName="HeuristicLab.Authentication" />
22      </providers>
23    </membership>
24
25    <roleManager enabled="true">
26      <providers>
27        <clear/>
28        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="HeuristicLab.Authentication" applicationName="HeuristicLab.Authentication" />
29      </providers>
30    </roleManager>
31  </system.web>
32
33  <system.serviceModel>
34    <bindings>
35      <netTcpBinding>
36        <binding name="LargeMessages" openTimeout="00:00:30" receiveTimeout="00:00:30" sendTimeout="00:00:30" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
37          <security mode="Message">
38            <message clientCredentialType="UserName"/>
39          </security>
40          <readerQuotas maxArrayLength="2147483647"/>
41          <reliableSession inactivityTimeout="00:00:30" enabled="false"/>
42        </binding>
43      </netTcpBinding>
44    </bindings>
45
46    <client/>
47
48    <behaviors>
49      <serviceBehaviors>
50        <behavior name="RunnerServiceBehaviour">
51          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://localhost:8000/OKB/RunnerMex"/>
52          <serviceDebug includeExceptionDetailInFaults="true"/>
53          <serviceAuthorization principalPermissionMode="UseAspNetRoles"
54                                roleProviderName="AspNetSqlRoleProvider" />
55          <serviceCredentials>
56            <serviceCertificate findValue="localhost" x509FindType="FindBySubjectName" />
57            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
58                                    membershipProviderName="AspNetSqlMembershipProvider"/>
59          </serviceCredentials>
60        </behavior>
61        <behavior name="AdminServiceBehaviour">
62          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://localhost:8000/OKB/AdminMex"/>
63          <serviceDebug includeExceptionDetailInFaults="true"/>
64          <serviceAuthorization principalPermissionMode="UseAspNetRoles"
65                                roleProviderName="AspNetSqlRoleProvider" />
66          <serviceCredentials>
67            <serviceCertificate findValue="localhost" x509FindType="FindBySubjectName" />
68            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
69                                    membershipProviderName="AspNetSqlMembershipProvider"/>
70          </serviceCredentials>
71        </behavior>
72        <behavior name="TableServiceBehaviour">
73          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://localhost:8000/OKB/TableMex"/>
74          <serviceDebug includeExceptionDetailInFaults="true"/>
75          <serviceAuthorization principalPermissionMode="UseAspNetRoles"
76                                roleProviderName="AspNetSqlRoleProvider" />
77          <serviceCredentials>
78            <serviceCertificate findValue="localhost" x509FindType="FindBySubjectName" />
79            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
80                                    membershipProviderName="AspNetSqlMembershipProvider"/>
81          </serviceCredentials>
82        </behavior>
83        <behavior name="QueryServiceBehaviour">
84          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://localhost:8000/OKB/QueryMex"/>
85          <serviceDebug includeExceptionDetailInFaults="true"/>
86          <serviceAuthorization principalPermissionMode="UseAspNetRoles"
87                                roleProviderName="AspNetSqlRoleProvider" />
88          <serviceCredentials>
89            <serviceCertificate findValue="localhost" x509FindType="FindBySubjectName" />
90            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
91                                    membershipProviderName="AspNetSqlMembershipProvider"/>
92          </serviceCredentials>
93        </behavior>
94        <behavior name="DataServiceBehaviour">
95          <serviceMetadata httpGetEnabled="true" httpGetUrl="http://localhost:8000/OKB/DataMex"/>
96          <serviceDebug includeExceptionDetailInFaults="true"/>
97          <serviceAuthorization principalPermissionMode="UseAspNetRoles"
98                                roleProviderName="AspNetSqlRoleProvider" />
99          <serviceCredentials>
100            <serviceCertificate findValue="localhost" x509FindType="FindBySubjectName" />
101            <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
102                                    membershipProviderName="AspNetSqlMembershipProvider"/>
103          </serviceCredentials>
104        </behavior>
105      </serviceBehaviors>
106    </behaviors>
107
108    <services>
109      <service behaviorConfiguration="RunnerServiceBehaviour" name="HeuristicLab.Services.OKB.RunnerService">
110        <endpoint address="http://localhost:8000/OKB/RunnerMex" binding="mexHttpBinding" contract="IMetadataExchange"/>
111        <endpoint address="net.tcp://localhost:8001/OKB/RunnerService" binding="netTcpBinding" bindingConfiguration="LargeMessages" contract="HeuristicLab.Services.OKB.IRunnerService">
112        </endpoint>
113      </service>
114      <service behaviorConfiguration="AdminServiceBehaviour" name="HeuristicLab.Services.OKB.AdminService">
115        <endpoint address="http://localhost:8000/OKB/AdminMex" binding="mexHttpBinding" contract="IMetadataExchange"/>
116        <endpoint address="net.tcp://localhost:8001/OKB/AdminService" binding="netTcpBinding" bindingConfiguration="LargeMessages" contract="HeuristicLab.Services.OKB.IAdminService"/>
117      </service>
118      <service behaviorConfiguration="TableServiceBehaviour" name="HeuristicLab.Services.OKB.TableService">
119        <endpoint address="http://localhost:8000/OKB/TableMex" binding="mexHttpBinding" contract="IMetadataExchange"/>
120        <endpoint address="net.tcp://localhost:8001/OKB/TableService" binding="netTcpBinding" bindingConfiguration="LargeMessages" contract="HeuristicLab.Services.OKB.ITableService"/>
121      </service>
122      <service behaviorConfiguration="QueryServiceBehaviour" name="HeuristicLab.Services.OKB.QueryService">
123        <endpoint address="http://localhost:8000/OKB/QueryMex" binding="mexHttpBinding" contract="IMetadataExchange"/>
124        <endpoint address="net.tcp://localhost:8001/OKB/QueryService" binding="netTcpBinding" bindingConfiguration="LargeMessages" contract="HeuristicLab.Services.OKB.IQueryService"/>
125      </service>
126      <service behaviorConfiguration="DataServiceBehaviour" name="HeuristicLab.Services.OKB.DataService">
127        <endpoint address="http://localhost:8000/OKB/DataMex" binding="mexHttpBinding" contract="IMetadataExchange"/>
128        <endpoint address="net.tcp://localhost:8001/OKB/DataService" binding="netTcpBinding" bindingConfiguration="LargeMessages" contract="HeuristicLab.Services.OKB.IDataService"/>
129      </service>
130    </services>
131  </system.serviceModel>
132<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
Note: See TracBrowser for help on using the repository browser.