Taylohtio/GeneralApi/GeneralApi.WcfService/Web.config

235 lines
13 KiB
XML

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<!--<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
</sectionGroup>-->
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings>
<add key="EmailTo" value="apetuhov@smartru.com"/>
<add key="EmailFrom" value="apetuhov@smartru.com"/>
<add key="CondoStatusChangedSubj" value="Condo status was changed"/>
<add key="CondoStatusChangedBodyTemplate" value="Condo name: $condo.OfficialName.\nDeactivated: $condo.Deactivated"/>
<add key="BoardMemberStatusChangedSubj" value="Board member status was changed"/>
<add key="BoardMemberStatusChangedBodyTemplate" value="Board member: $boardMember.FirstName $boardMember.LastName.\nCondo: $boardMember.Condo.OfficialName\nDeactivated: $boardMember.Deactivated"/>
<add key="BoardMemberNewSubj" value="New board member registered"/>
<add key="BoardMemberNewBodyTemplate" value="Board member: $boardMember.FirstName $boardMember.LastName.\nCondo: $boardMember.Condo.OfficialName\nDeactivated: $boardMember.Deactivated"/>
</appSettings>
<connectionStrings>
<!--<add name="Taloyhtio.GeneralApi.MasterDB" connectionString="Data Source=(local);Initial Catalog=TaloyhtioMaster;User ID=sa;Password=sa" />-->
<add name="Taloyhtio.GeneralApi.MasterDB" connectionString="Data Source=2013server\SHAREPOINT;Initial Catalog=TaloyhtioMaster;Integrated Security=True" />
</connectionStrings>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network host="" port="25" defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>
<system.web>
<compilation debug="false">
<assemblies>
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<authentication mode="Windows">
<forms name="TaloyhtioIntegrationCookie" loginUrl="TaloyhtioIntegration.svc" protection="All" timeout="60" path="/">
<credentials passwordFormat="Clear">
<user name="pmc1" password="123"/>
<user name="pmc2" password="456"/>
</credentials>
</forms>
</authentication>
<authorization>
<allow users="*"/>
</authorization>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="DependencyRegistrarModule" type="Taloyhtio.GeneralApi.Core.Infrastructure.Web.DependencyRegistrarModule, Taloyhtio.GeneralApi.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521"/>
<add name="AutoMapperConfigurationModule" type="Taloyhtio.GeneralApi.Core.Infrastructure.Web.AutoMapperConfigurationModule, Taloyhtio.GeneralApi.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521"/>
<add name="UnitOfWorkModule" type="Taloyhtio.GeneralApi.Core.Infrastructure.Web.UnitOfWorkModule, Taloyhtio.GeneralApi.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521"/>
</httpModules>
<sessionState mode="StateServer"
stateConnectionString="tcpip=SampleStateServer:42424"
cookieless="false"
timeout="20"/>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<system.web.extensions>
<scripting>
<webServices>
</webServices>
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="DependencyRegistrarModule" type="Taloyhtio.GeneralApi.Core.Infrastructure.Web.DependencyRegistrarModule, Taloyhtio.GeneralApi.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521"/>
<add name="UnitOfWorkModule" type="Taloyhtio.GeneralApi.Core.Infrastructure.Web.UnitOfWorkModule, Taloyhtio.GeneralApi.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</handlers>
</system.webServer>
<system.serviceModel>
<!-- Asp.net compatibility is required in order to have Hybrid caching for IUnitOfWork in StructueMap -->
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<extensions>
<behaviorExtensions>
<add name="webAuthentication"
type="WcfRestContrib.ServiceModel.Configuration.WebAuthentication.BehaviorElement, WcfRestContrib, Version=1.0.6.120, Culture=neutral, PublicKeyToken=89183999a8dc93b5"/>
<add name="customWebHttp" type="Taloyhtio.GeneralApi.WcfService.CustomWebHttpBehaviorExtention, Taloyhtio.GeneralApi.WcfService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521" />
</behaviorExtensions>
</extensions>
<!-- bindings -->
<bindings>
<basicHttpBinding>
<binding name="soapBinding">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</basicHttpBinding>
<webHttpBinding>
<binding name="webBinding">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</webHttpBinding>
</bindings>
<!-- behaviors -->
<behaviors>
<endpointBehaviors>
<!-- plain old XML with custom error handler -->
<behavior name="customPoxBehavior">
<customWebHttp/>
</behavior>
<!-- JSON -->
<behavior name="jsonBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="defaultBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
<webAuthentication
authenticationHandlerType="Taloyhtio.GeneralApi.WcfService.CustomAuthenticationHandler, Taloyhtio.GeneralApi.WcfService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521"
usernamePasswordValidatorType="Taloyhtio.GeneralApi.WcfService.CustomCredentialsValidator, Taloyhtio.GeneralApi.WcfService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecbf947198042521"
requireSecureTransport="false"
source="TaloyhtioIntegration"/>
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="Taloyhtio.GeneralApi.WcfService.TaloyhtioIntegration" behaviorConfiguration="defaultBehavior">
<host>
<baseAddresses>
<add baseAddress="https://TaloyhtioIntegrationWcf/TaloyhtioIntegration.svc" />
<!--<add baseAddress="https://localhost/TaloyhtioIntegration.svc"/>-->
</baseAddresses>
</host>
<endpoint address="soap"
binding="basicHttpBinding"
bindingConfiguration="soapBinding"
contract="Taloyhtio.GeneralApi.WcfService.ITaloyhtioIntegration" />
<endpoint address="pox"
binding="webHttpBinding"
bindingConfiguration="webBinding"
behaviorConfiguration="customPoxBehavior"
contract="Taloyhtio.GeneralApi.WcfService.ITaloyhtioIntegration" />
<!--<endpoint address="json"
binding="webHttpBinding"
bindingConfiguration="webBinding"
behaviorConfiguration="jsonBehavior"
contract="Taloyhtio.GeneralApi.WcfService.ITaloyhtioIntegration" />-->
</service>
</services>
</system.serviceModel>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="NHibernate"
publicKeyToken="aa95f207798dfdb4"
culture="neutral" />
<bindingRedirect oldVersion="2.1.0.4000"
newVersion="2.1.2.4000" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>