﻿<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <runtime>
    <generatePublisherEvidence enabled="false"/>
  </runtime>
  <system.serviceModel>
    <bindings>
      <netNamedPipeBinding>
          <binding name="MSATokenValidation" 
                 closeTimeout="00:00:10" 
                 openTimeout="00:00:10"
                 receiveTimeout="00:00:10" 
                 sendTimeout="00:00:10" 
                 transactionFlow="false"
                 transferMode="Buffered" 
                 transactionProtocol="OleTransactions"
                 hostNameComparisonMode="StrongWildcard" 
                 maxBufferPoolSize="10485760"
                 maxBufferSize="10485760" 
                 maxConnections="100000"
                 maxReceivedMessageSize="10485760">
            <readerQuotas maxStringContentLength="10485760" />
            <security mode="None"/>
          </binding>
      </netNamedPipeBinding>
    </bindings>
    <services>
      <service name="Microsoft.Exchange.Security.Authentication.MSATokenValidationService" behaviorConfiguration="MSATokenServiceBehavior">
        <endpoint name = "MSATokenValidationEndPoint"
            address = "net.pipe://localhost/MSATokenValidation/service.svc"
            binding = "netNamedPipeBinding" 
            contract = "Microsoft.Exchange.Security.Authentication.IMSATokenValidation"
            bindingConfiguration ="MSATokenValidation" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
         <behavior name="MSATokenServiceBehavior">
          <serviceDebug includeExceptionDetailInFaults="true" />
          <dataContractSerializer maxItemsInObjectGraph="262144"/>
          <serviceThrottling
              maxConcurrentInstances="2147483647"
              maxConcurrentCalls="10000"
              maxConcurrentSessions="1000"
          />
         </behavior>
      </serviceBehaviors>
    </behaviors>
    <diagnostics performanceCounters="All" />
  </system.serviceModel>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
  <appSettings>
  </appSettings>
</configuration>
